Package com.microstrategy.web.transform
Class StyleMapsImpl
- java.lang.Object
 - 
- com.microstrategy.utils.config.AbstractConfigurationElement
 - 
- com.microstrategy.utils.config.AbstractElementList
 - 
- com.microstrategy.web.transform.AbstractStyleCatalogList
 - 
- com.microstrategy.web.transform.StyleMapsImpl
 
 
 
 
 
- 
- All Implemented Interfaces:
 ConfigurationElement,ConfigurationFile,StyleMaps,java.lang.Cloneable
public class StyleMapsImpl extends AbstractStyleCatalogList implements StyleMaps
This class implements theStyleMapsinterface for the Style Catalog.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
AbstractConfigurationElement.FilteredList 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELEM_NAME_STYLEMAPSThe name of the style maps element.- 
Fields inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
ATT_CONFIG_SRC, ATT_DELETED, ATT_POSITION, ATT_PROTOTYPE, ATT_USE_DEFAULT 
 - 
 
- 
Constructor Summary
Constructors Constructor Description StyleMapsImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ClassgetListClass()Returns theClassitems beloging to this list will be instance of.protected java.lang.StringgetListNodeName()Returns the name of the node representing children of this list.StyleMapgetStyleMap(int index)Gets theStyleMapassociated with supplied index.StyleMapgetStyleMap(java.lang.String name)Gets theStyleMapassociated with a given style name.java.lang.StringmapStyle(java.lang.String origStyleName, StyleRequestContext context)Map an incoming style ('origStyleName') to a new style, based on the definition of the maps and any contextual data.StyleMapnewStyleMap(java.lang.String styleName)Creates a new style map object for the supplied style name.- 
Methods inherited from class com.microstrategy.web.transform.AbstractStyleCatalogList
clearCaches, getCount, getStyleCatalog, newItem, reload, remove, remove 
- 
Methods inherited from class com.microstrategy.utils.config.AbstractElementList
clear, containsKey, get, get, getKeyAttribute, getList, isEmpty, put, put, size 
- 
Methods inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
addFileSource, applyCustomization, applyCustomizations, cleanUpDeletedElements, clone, delete, deltas, deltas, equalAtts, equalElements, equalNodeValues, equals, equalsIncludingDeletedElements, exportAttributesToXML, exportElementsToXML, exportNodeValueToXML, getAttribute, getAttributes, getBoolAttribute, getChildKey, getConfigSrc, getDTDFileName, getElement, getElement, getElements, getFileLoader, getIntAttribute, getIntAttribute, getKey, getLineNumber, getList, getNextKey, getNodeName, getNodeValue, getNodeValue, getOrCreateElement, getParent, getPosition, getPrototype, getRegisteredClass, getSelfInitPath, getSource, getStrAttribute, getUseDefault, getXMLParserParameters, getXMLSerializerParameters, hashCode, hashCodeAtts, hashCodeElements, hashCodeNodeValues, hasRegisteredClass, initAttributesFromXML, initDefaultAttributes, initElementFromXML, initElementsFromXML, initFromFile, initFromResource, initFromXML, initFromXML, initNodeValueFromXML, initPrototype, isActive, isCustomized, isDeleted, isDirty, isInSource, isKeyAttribute, load, mergeChanges, newChildInstance, newSource, original, populate, printAttributes, printElements, printNodeValue, refreshLists, registerClass, registerElement, registerElement, registerElementList, reloadPrototype, removeAttribute, removeDefaults, replaceList, restore, save, save, saveChangesAs, saveConfig, saveFlatXML, saveNode, saveSource, setAttribute, setBoolAttribute, setChildOriginals, setConfigSrc, setCustomized, setElement, setFileLoader, setIntAttribute, setKey, setLineNumber, setNodeName, setNodeValue, setPosition, setPrototype, setSelfInitPath, setStrAttribute, setUseDefault, setUseValidation, throwConfigParseException, toString, toXML, toXML, toXML, toXML, useNodeValue, useValidation 
- 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface com.microstrategy.utils.config.ConfigurationElement
getAttribute, getAttributes, getElement, getElements, getKey, getNodeName, getStrAttribute, initFromXML, reload, toXML 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ELEM_NAME_STYLEMAPS
public static final java.lang.String ELEM_NAME_STYLEMAPS
The name of the style maps element.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getStyleMap
public StyleMap getStyleMap(int index) throws java.lang.IndexOutOfBoundsException
Gets theStyleMapassociated with supplied index. A valid index begins at 0 and continues togetCount() - 1.- Specified by:
 getStyleMapin interfaceStyleMaps- Parameters:
 index- The index of theStyleMapto return.- Returns:
 - The 
StyleMapat the supplied index. - Throws:
 java.lang.IndexOutOfBoundsException- This exception is thown if the argument is outside the range of a valid index.
 
- 
getStyleMap
public StyleMap getStyleMap(java.lang.String name) throws java.lang.IllegalArgumentException
Gets theStyleMapassociated with a given style name.- Specified by:
 getStyleMapin interfaceStyleMaps- Parameters:
 name- The name of the style map object to return.- Returns:
 - The 
StyleMapobject for the associated style. - Throws:
 java.lang.IllegalArgumentException- This exception is thrown if the argument does not match one of the stored names.
 
- 
newStyleMap
public StyleMap newStyleMap(java.lang.String styleName) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Creates a new style map object for the supplied style name.- Specified by:
 newStyleMapin interfaceStyleMaps- Parameters:
 styleName- The name of the style to create a map for.- Returns:
 - The new style map 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.
 
- 
mapStyle
public java.lang.String mapStyle(java.lang.String origStyleName, StyleRequestContext context)Map an incoming style ('origStyleName') to a new style, based on the definition of the maps and any contextual data.- Specified by:
 mapStylein interfaceStyleMaps- Parameters:
 origStyleName- The original name of the style being requested.context- TheStyleRequestContextthat can be used to determine whether a mapping should be performed.- Returns:
 - The name of the mapped style.
 
 
- 
getListClass
protected java.lang.Class getListClass()
Description copied from class:AbstractElementListReturns theClassitems beloging to this list will be instance of.- Specified by:
 getListClassin classAbstractElementList
 
- 
getListNodeName
protected java.lang.String getListNodeName()
Description copied from class:AbstractElementListReturns the name of the node representing children of this list.- Specified by:
 getListNodeNamein classAbstractElementList
 
 - 
 
 -