Package com.microstrategy.web.transform
Interface LayoutParserDefns
- 
- All Superinterfaces:
 java.lang.Cloneable,ConfigurationElement
- All Known Implementing Classes:
 LayoutParserDefnsImpl
public interface LayoutParserDefns extends ConfigurationElement
The LayoutParserDefns interface represents a collection of layout parser defined by this Style Catalog. This is a standard collection interface that includes a method to return the "global" layout parser.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears the collection of layout parser definition objects.intgetCount()Returns the number ofLayoutParserDefnobjects in this collection.LayoutParserDefngetGlobalParserDefn()Returns the "global" layout parser definition object associated with this Style Catalog.java.lang.StringgetGlobalParserName()Returns the name of the global parser currently associated with this collectionLayoutParserDefngetLayoutParserDefn(int index)Gets theLayoutParserDefnassociated with supplied index.LayoutParserDefngetLayoutParserDefn(java.lang.String name)Gets theLayoutParserDefnassociated with a given name.LayoutParserDefnnewLayoutParserDefn(java.lang.String layoutParserName)Creates a new layout parser definition object with the supplied name.voidremove(int index)Removes theLayoutParserDefnobject at the specified index.voidremove(java.lang.String name)Removes theLayoutParserDefnobject at the specified index.voidsetGlobalParserName(java.lang.String value)Sets the name of the global parser.- 
Methods inherited from interface com.microstrategy.utils.config.ConfigurationElement
getAttribute, getAttributes, getElement, getElements, getKey, getNodeName, getStrAttribute, initFromXML, reload, toXML 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getCount
int getCount()
Returns the number ofLayoutParserDefnobjects in this collection.- Returns:
 - The count of layout parser definition objects.
 
 
- 
getLayoutParserDefn
LayoutParserDefn getLayoutParserDefn(int index) throws java.lang.IndexOutOfBoundsException
Gets theLayoutParserDefnassociated with supplied index. A valid index begins at 0 and continues togetCount() - 1.- Parameters:
 index- The index of theLayoutParserDefnto return.- Returns:
 - The 
LayoutParserDefnat the supplied index. - Throws:
 java.lang.IndexOutOfBoundsException- This exception is thown if the argument is outside the range of a valid index.
 
- 
getLayoutParserDefn
LayoutParserDefn getLayoutParserDefn(java.lang.String name) throws java.lang.IllegalArgumentException
Gets theLayoutParserDefnassociated with a given name.- Parameters:
 name- The name of the layout parser definition object to return.- Returns:
 - The 
LayoutParserDefnobject with the supplied name. - Throws:
 java.lang.IllegalArgumentException- This exception is thrown if the argument does not match one of the stored names.
 
- 
clear
void clear() throws java.lang.UnsupportedOperationExceptionClears the collection of layout parser definition objects.- Throws:
 java.lang.UnsupportedOperationException- This exception is thrown if the Style Catalog is in "read only" mode.
 
- 
remove
void remove(int index) throws java.lang.IndexOutOfBoundsException, java.lang.UnsupportedOperationExceptionRemoves theLayoutParserDefnobject at the specified index.- Parameters:
 index- The index of the layout parser definition object 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
void remove(java.lang.String name) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationExceptionRemoves theLayoutParserDefnobject at the specified index.- Parameters:
 name- The name of the layout parser definition 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
LayoutParserDefn newLayoutParserDefn(java.lang.String layoutParserName) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Creates a new layout parser definition object with the supplied name.- Parameters:
 layoutParserName- The name of the newLayoutParserDefnobject 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.
 
- 
getGlobalParserDefn
LayoutParserDefn getGlobalParserDefn()
Returns the "global" layout parser definition object associated with this Style Catalog. If there is only layout parser definition stored in this collection, then it becomes the global parser defintion, by default. If there are more than one, then one of them is designated as the "global" parser using thesetGlobalParserName(java.lang.String)method.- Returns:
 - The global layout parser definition object.
 
 
- 
getGlobalParserName
java.lang.String getGlobalParserName()
Returns the name of the global parser currently associated with this collection- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setGlobalParserName
void setGlobalParserName(java.lang.String value)
Sets the name of the global parser. This is the one used by default if not parser definition is associated with a transform definition.- Since:
 - MicroStrategy Web 9.0.0
 
 
 - 
 
 -