Package com.microstrategy.web.transform
Class BeanDefnsImpl
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.utils.config.AbstractElementList
-
- com.microstrategy.web.transform.AbstractStyleCatalogList
-
- com.microstrategy.web.transform.BeanDefnsImpl
-
- All Implemented Interfaces:
ConfigurationElement
,ConfigurationFile
,BeanDefns
,java.lang.Cloneable
public class BeanDefnsImpl extends AbstractStyleCatalogList implements BeanDefns
This class implements the BeanDefns interface, which is a collection of BeanDefn objects.- 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_BEAN_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 BeanDefnsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanDefn
getBeanDefn(int index)
Retrieves a specific BeanDefn object by its numeric index.BeanDefn
getBeanDefn(java.lang.String name)
Retrives a specific BeanDefn object by its name.BeanDefn
getBeanDefnByClass(java.lang.String className)
Retrives a specific BeanDefn object by its class name.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.BeanDefn
newBeanDefn(java.lang.String beanName, java.lang.String className)
Creates a new BeanDefn object and adds it to the collection.-
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.web.transform.BeanDefns
clear, getCount, remove, remove
-
Methods inherited from interface com.microstrategy.utils.config.ConfigurationElement
getAttribute, getAttributes, getElement, getElements, getKey, getNodeName, getStrAttribute, initFromXML, reload, toXML
-
-
-
-
Field Detail
-
NODE_BEAN_DEFNS
protected static final java.lang.String NODE_BEAN_DEFNS
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBeanDefn
public BeanDefn getBeanDefn(int index) throws java.lang.IndexOutOfBoundsException
Description copied from interface:BeanDefns
Retrieves a specific BeanDefn object by its numeric index.- Specified by:
getBeanDefn
in interfaceBeanDefns
- Parameters:
index
- the index of the BeanDefn object in collection.- Returns:
- the
BeanDefn
object in the collection with the given index. - Throws:
java.lang.IndexOutOfBoundsException
- thrown if the index is invalid.
-
getBeanDefn
public BeanDefn getBeanDefn(java.lang.String name) throws java.lang.IllegalArgumentException
Description copied from interface:BeanDefns
Retrives a specific BeanDefn object by its name.- Specified by:
getBeanDefn
in interfaceBeanDefns
- Parameters:
name
- the name of the BeanDefn object.- Returns:
- the
BeanDefn
object in the collection with the given name. - Throws:
java.lang.IllegalArgumentException
- thrown if no bean definition has the given name in the collection.
-
getBeanDefnByClass
public BeanDefn getBeanDefnByClass(java.lang.String className)
Description copied from interface:BeanDefns
Retrives a specific BeanDefn object by its class name.- Specified by:
getBeanDefnByClass
in interfaceBeanDefns
- Parameters:
className
- the bean class name.- Returns:
- the
BeanDefn
object in the collection with the given class name.
-
newBeanDefn
public BeanDefn newBeanDefn(java.lang.String beanName, java.lang.String className) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Description copied from interface:BeanDefns
Creates a new BeanDefn object and adds it to the collection.- Specified by:
newBeanDefn
in interfaceBeanDefns
- Parameters:
beanName
- the name of the new BeanDefn object.- Returns:
- the
BeanDefn
object just created. - Throws:
java.lang.IllegalArgumentException
- thrown if the bean definition name is used by another BeanDefn 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
-
-