Class LayoutParserDefnsImpl

    • Field Detail

      • ATT_GLOBAL_PARSER

        protected static final java.lang.String ATT_GLOBAL_PARSER
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • NODE_LAYOUT_PARSER_DEFNS

        protected static final java.lang.String NODE_LAYOUT_PARSER_DEFNS
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • LayoutParserDefnsImpl

        public LayoutParserDefnsImpl()
        Since:
        MicroStrategy Web 9.0.0
    • Method Detail

      • clearCaches

        protected void clearCaches()
        Description copied from class: AbstractStyleCatalogList
        This method is invoked whenever the structure of the style catalog has changed and caches to other objects in the structure needs to be updated.
        Overrides:
        clearCaches in class AbstractStyleCatalogList
        Since:
        MicroStrategy Web 9.0.0
      • getGlobalParserName

        public java.lang.String getGlobalParserName()
        Description copied from interface: LayoutParserDefns
        Returns the name of the global parser currently associated with this collection
        Specified by:
        getGlobalParserName in interface LayoutParserDefns
        Since:
        MicroStrategy Web 9.0.0
      • setGlobalParserName

        public void setGlobalParserName​(java.lang.String value)
        Description copied from interface: LayoutParserDefns
        Sets the name of the global parser. This is the one used by default if not parser definition is associated with a transform definition.
        Specified by:
        setGlobalParserName in interface LayoutParserDefns
        Since:
        MicroStrategy Web 9.0.0
      • getLayoutParserDefn

        public LayoutParserDefn getLayoutParserDefn​(int index)
                                             throws java.lang.IndexOutOfBoundsException
        Description copied from interface: LayoutParserDefns
        Gets the LayoutParserDefn associated with supplied index. A valid index begins at 0 and continues to getCount() - 1.
        Specified by:
        getLayoutParserDefn in interface LayoutParserDefns
        Parameters:
        index - The index of the LayoutParserDefn to return.
        Returns:
        The LayoutParserDefn at the supplied index.
        Throws:
        java.lang.IndexOutOfBoundsException - This exception is thown if the argument is outside the range of a valid index.
      • getLayoutParserDefn

        public LayoutParserDefn getLayoutParserDefn​(java.lang.String name)
                                             throws java.lang.IllegalArgumentException
        Description copied from interface: LayoutParserDefns
        Gets the LayoutParserDefn associated with a given name.
        Specified by:
        getLayoutParserDefn in interface LayoutParserDefns
        Parameters:
        name - The name of the layout parser definition object to return.
        Returns:
        The LayoutParserDefn object with the supplied name.
        Throws:
        java.lang.IllegalArgumentException - This exception is thrown if the argument does not match one of the stored names.
      • remove

        public void remove​(int index)
                    throws java.lang.IndexOutOfBoundsException,
                           java.lang.UnsupportedOperationException
        Description copied from class: AbstractStyleCatalogList
        Removes an element from the collection.
        Specified by:
        remove in interface LayoutParserDefns
        Overrides:
        remove in class AbstractStyleCatalogList
        Parameters:
        index - The position within the valid elements of the element to remove.
        Throws:
        java.lang.IndexOutOfBoundsException - This exception is thown if the argument is outside the range of a valid index.
        java.lang.UnsupportedOperationException - This exception is thrown if the Style Catalog is in "read only" mode.
      • remove

        public void remove​(java.lang.String name)
                    throws java.lang.IllegalArgumentException,
                           java.lang.UnsupportedOperationException
        Description copied from class: AbstractStyleCatalogList
        Removes an element from the collection
        Specified by:
        remove in interface LayoutParserDefns
        Overrides:
        remove in class AbstractStyleCatalogList
        Parameters:
        name - the key of the object to remove
        Throws:
        java.lang.IllegalArgumentException - This exception is thrown if the argument does not match one of the stored names.
        java.lang.UnsupportedOperationException - This exception is thrown if the Style Catalog is in "read only" mode.
      • newLayoutParserDefn

        public LayoutParserDefn newLayoutParserDefn​(java.lang.String layoutParserName)
                                             throws java.lang.IllegalArgumentException,
                                                    java.lang.UnsupportedOperationException
        Description copied from interface: LayoutParserDefns
        Creates a new layout parser definition object with the supplied name.
        Specified by:
        newLayoutParserDefn in interface LayoutParserDefns
        Parameters:
        layoutParserName - The name of the new LayoutParserDefn object to create.
        Returns:
        The new layout parser definition object.
        Throws:
        java.lang.IllegalArgumentException - This exception is thrown if the argument already matches one of the stored names.
        java.lang.UnsupportedOperationException - This exception is thrown if the Style Catalog is in "read only" mode.
      • getListClass

        protected java.lang.Class getListClass()
        Description copied from class: AbstractElementList
        Returns the Class items beloging to this list will be instance of.
        Specified by:
        getListClass in class AbstractElementList
        Since:
        MicroStrategy Web 9.0.0
      • getListNodeName

        protected java.lang.String getListNodeName()
        Description copied from class: AbstractElementList
        Returns the name of the node representing children of this list.
        Specified by:
        getListNodeName in class AbstractElementList
        Since:
        MicroStrategy Web 9.0.0