Interface LayoutTag

  • All Superinterfaces:
    EnumHTMLTags, Tag

    public interface LayoutTag
    extends Tag
    The LayoutTag interface represents the root tag of a layout source.
    Since:
    MicroStrategy Web 8.0.0
    • Field Detail

      • TAG_NAME_LAYOUT

        static final java.lang.String TAG_NAME_LAYOUT
        The constant name of the LayoutTag.
        See Also:
        Constant Field Values
      • ATTR_NAME_LAYOUT_VERSION

        static final java.lang.String ATTR_NAME_LAYOUT_VERSION
        The constant name of the attribute version of a layout.
        See Also:
        Constant Field Values
    • Method Detail

      • getVersion

        java.lang.String getVersion()
        Returns the version of a layout.
        Returns:
        the version of a layout.
      • setVersion

        void setVersion​(java.lang.String version)
                 throws UnmodifiableException
        Sets the version string of a layout.
        Parameters:
        version - the version of a layout.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • getLayoutSource

        LayoutSource getLayoutSource()
        Returns the layout source where the current tag is defined.
        Returns:
        the layout source
      • setLayoutSource

        void setLayoutSource​(LayoutSource layoutSource)
                      throws UnmodifiableException
        Sets the layout source where the current tag is defined.
        Parameters:
        layoutSource - the layout source
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • getLayoutParser

        LayoutParser getLayoutParser()
        Returns the layout parser used to parse the layout source.
        Returns:
        the layout parser.
      • getLayoutLocation

        java.lang.String getLayoutLocation()
        Returns the location of the layout source.
        Returns:
        the location of the layout source.
      • setLayoutLocation

        void setLayoutLocation​(java.lang.String location)
                        throws UnmodifiableException
        Sets the location of the layout source.
        Parameters:
        location - the location of the layout source.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • addSlotTag

        void addSlotTag​(SlotTag slotTag)
                 throws java.lang.IllegalArgumentException
        Adds slot tag to the layout slot tag collection. If there's a slot with the same name in the collection, it will throw an IllegalArgument exception.
        Parameters:
        slotTag - The tag to be added
        Throws:
        java.lang.IllegalArgumentException - If there's a slot with given name in the collection
        Since:
        MicroStrategy Web 8.0.2
      • getSlotTag

        SlotTag getSlotTag​(java.lang.String slotName)
        Returns the slotTag with the specified name
        Parameters:
        slotName - Name of the slot tag
        Returns:
        SlotTag
        Since:
        MicroStrategy Web 8.0.2