Package com.microstrategy.web.transform
Class TransformDefnsImpl
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.utils.config.AbstractElementList
-
- com.microstrategy.web.transform.AbstractStyleCatalogList
-
- com.microstrategy.web.transform.TransformDefnsImpl
-
- All Implemented Interfaces:
ConfigurationElement
,ConfigurationFile
,TransformDefns
,java.lang.Cloneable
public class TransformDefnsImpl extends AbstractStyleCatalogList implements TransformDefns
- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
AbstractConfigurationElement.FilteredList
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
NODE_TRANSFORM_DEFNS
-
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 TransformDefnsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTransformDefn(TransformDefn transform)
protected java.lang.Class
getListClass()
Returns theClass
items beloging to this list will be instance of.protected java.lang.String
getListNodeName()
Returns the name of the node representing children of this list.TransformDefn
getTransformDefn(int index)
Retrieves a specific TransformDefn object by its numeric index.TransformDefn
getTransformDefn(java.lang.String name)
Retrives a specific TransformDefn object by its name.TransformDefn
newTransformDefn(java.lang.String transformName)
Creates a new TransformDefn object and adds it to the collection.void
remove(int index)
Removes an element from the collection.void
remove(int index, boolean removeStyles)
Removes the TransformDefn object at the specified position in the collection.void
remove(java.lang.String name)
Removes an element from the collectionvoid
remove(java.lang.String name, boolean removeStyles)
Removes the TransformDefn object with the specified name from the collection.-
Methods inherited from class com.microstrategy.web.transform.AbstractStyleCatalogList
clearCaches, getCount, getStyleCatalog, newItem, reload
-
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
-
Methods inherited from interface com.microstrategy.web.transform.TransformDefns
clear, getCount
-
-
-
-
Field Detail
-
NODE_TRANSFORM_DEFNS
protected static final java.lang.String NODE_TRANSFORM_DEFNS
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTransformDefn
public TransformDefn getTransformDefn(int index) throws java.lang.IndexOutOfBoundsException
Description copied from interface:TransformDefns
Retrieves a specific TransformDefn object by its numeric index.- Specified by:
getTransformDefn
in interfaceTransformDefns
- Parameters:
index
- the index of the TransformDefn object in collection.- Returns:
- the
TransformDefn
object in the collection with the given index. - Throws:
java.lang.IndexOutOfBoundsException
- thrown if the index is invalid.
-
getTransformDefn
public TransformDefn getTransformDefn(java.lang.String name) throws java.lang.IllegalArgumentException
Description copied from interface:TransformDefns
Retrives a specific TransformDefn object by its name.- Specified by:
getTransformDefn
in interfaceTransformDefns
- Parameters:
name
- the name of the TransformDefn object.- Returns:
- the
TransformDefn
object in the collection with the given name. - Throws:
java.lang.IllegalArgumentException
- thrown if no transform definition has the given name in the collection.
-
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 interfaceTransformDefns
- Overrides:
remove
in classAbstractStyleCatalogList
- Parameters:
index
- The position within the valid elements of the element to remove.- Throws:
java.lang.UnsupportedOperationException
- thrown if the collection is read-only.java.lang.IndexOutOfBoundsException
-
remove
public void remove(int index, boolean removeStyles) throws java.lang.IndexOutOfBoundsException, java.lang.UnsupportedOperationException
Description copied from interface:TransformDefns
Removes the TransformDefn object at the specified position in the collection.- Specified by:
remove
in interfaceTransformDefns
- Parameters:
index
- the index of the TransformDefn object to remove.removeStyles
- whether you want to remove the styles associated with the TransformDefn object deleted or not.- Throws:
java.lang.UnsupportedOperationException
- thrown if the collection is read-only.java.lang.IndexOutOfBoundsException
-
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 interfaceTransformDefns
- Overrides:
remove
in classAbstractStyleCatalogList
- Parameters:
name
- the key of the object to remove- Throws:
java.lang.IllegalArgumentException
- thrown if no transform definition has the given name in the collection.java.lang.UnsupportedOperationException
- thrown if the collection is read-only.
-
remove
public void remove(java.lang.String name, boolean removeStyles) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Description copied from interface:TransformDefns
Removes the TransformDefn object with the specified name from the collection.- Specified by:
remove
in interfaceTransformDefns
- Parameters:
name
- the name of the TransformDefn object to remove.removeStyles
- whether you want to remove the styles associated with the TransformDefn object deleted or not.- Throws:
java.lang.IllegalArgumentException
- thrown if no transform definition has the given name in the collection.java.lang.UnsupportedOperationException
- thrown if the collection is read-only.
-
newTransformDefn
public TransformDefn newTransformDefn(java.lang.String transformName) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Description copied from interface:TransformDefns
Creates a new TransformDefn object and adds it to the collection.- Specified by:
newTransformDefn
in interfaceTransformDefns
- Parameters:
transformName
- the name of the new TransformDefn object.- Returns:
- the
TransformDefn
object just created. - Throws:
java.lang.IllegalArgumentException
- thrown if the transform definition name is used by another TransformDefn object in the collection or if the style name is empty.java.lang.UnsupportedOperationException
- thrown if the collection is read-only.
-
getListClass
protected java.lang.Class getListClass()
Description copied from class:AbstractElementList
Returns theClass
items beloging to this list will be instance of.- Specified by:
getListClass
in classAbstractElementList
- 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 classAbstractElementList
- Since:
- MicroStrategy Web 9.0.0
-
addTransformDefn
public void addTransformDefn(TransformDefn transform)
-
-