Class BlockConfig
- java.lang.Object
 - 
- com.microstrategy.utils.config.AbstractConfigurationElement
 - 
- com.microstrategy.web.blocks.config.BlockConfig
 
 
 
- 
- All Implemented Interfaces:
 ConfigurationElement,ConfigurationFile,java.lang.Cloneable
public class BlockConfig extends AbstractConfigurationElement
THIS CLASS IS NOT SUPPORTED FOR USE IN CUSTOM APPLICATION DEVELOPMENT. THE CLASS IS SUBJECT TO CHANGE IN FUTURE RELEASES AND SOME METHODS AND PROPERTIES MAY NOT BE SUITABLE FOR CUSTOM DEVELOPMENT.- 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.StringATT_ANNOTATIONstatic java.lang.StringATT_BLOCK_NAMEstatic java.lang.StringATT_INHERITSstatic java.lang.StringATT_LISTACTIONstatic java.lang.StringATT_LISTELEMKEYstatic java.lang.StringATT_LISTITEMstatic java.lang.StringNODE_BLOCK- 
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 BlockConfig()BlockConfig(java.lang.String name)BlockConfig(org.w3c.dom.Node root)Constructor that takes a Node parameter. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(Property property)java.lang.StringgetAnnotation()AssignmentsgetAssignment(java.lang.String mode)java.util.List<Assignments>getAssignments()DefinitiongetDefinition()java.util.List<java.lang.String>getDependentBlockNames()protected java.lang.StringgetDTDFileName()Returns the name of a DTD file that will be added as SystemID to the XML resulting from serializing the contents of this ConfigurationElement into a file;nullby default.java.lang.StringgetInherits()java.lang.ObjectgetKey()Default implementation forgetKey().protected java.lang.StringgetKeyAttribute()This method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override thegetKeyandsetKeymethods.java.lang.StringgetListAction()java.lang.StringgetListElementKey()java.lang.StringgetListItem()java.lang.StringgetName()java.util.List<Property>getProperties()PropertygetProperty(java.lang.Object propertyName)protected booleanisKeyAttribute(java.lang.String name)Returnstrueis the name is that of the key attribute.voidsetAnnotation(java.lang.String annotation)voidsetAssignment(Assignments assignment)voidsetDefiniton(Definition definition)voidsetInherits(java.lang.String inherits)voidsetInitPath(java.lang.String path)This method is used only if a new Element is created programmatically using the conifguration editor.voidsetListAction(java.lang.String action)voidsetListElementKey(java.lang.String key)voidsetListItem(java.lang.String item)voidsetName(java.lang.String name)- 
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, getElement, getElement, getElements, getFileLoader, getIntAttribute, getIntAttribute, 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, load, mergeChanges, newChildInstance, newSource, original, populate, printAttributes, printElements, printNodeValue, refreshLists, registerClass, registerElement, registerElement, registerElementList, reload, 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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
NODE_BLOCK
public static final java.lang.String NODE_BLOCK
- See Also:
 - Constant Field Values
 
 
- 
ATT_BLOCK_NAME
public static final java.lang.String ATT_BLOCK_NAME
- See Also:
 - Constant Field Values
 
 
- 
ATT_INHERITS
public static final java.lang.String ATT_INHERITS
- See Also:
 - Constant Field Values
 
 
- 
ATT_LISTELEMKEY
public static final java.lang.String ATT_LISTELEMKEY
- See Also:
 - Constant Field Values
 
 
- 
ATT_LISTITEM
public static final java.lang.String ATT_LISTITEM
- See Also:
 - Constant Field Values
 
 
- 
ATT_LISTACTION
public static final java.lang.String ATT_LISTACTION
- See Also:
 - Constant Field Values
 
 
- 
ATT_ANNOTATION
public static final java.lang.String ATT_ANNOTATION
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getName
public java.lang.String getName()
 
- 
getInherits
public java.lang.String getInherits()
 
- 
getAnnotation
public java.lang.String getAnnotation()
 
- 
getListElementKey
public java.lang.String getListElementKey()
 
- 
getListItem
public java.lang.String getListItem()
 
- 
getListAction
public java.lang.String getListAction()
 
- 
setName
public void setName(java.lang.String name)
 
- 
setInherits
public void setInherits(java.lang.String inherits)
 
- 
setAnnotation
public void setAnnotation(java.lang.String annotation)
 
- 
setListElementKey
public void setListElementKey(java.lang.String key)
 
- 
setListItem
public void setListItem(java.lang.String item)
 
- 
setListAction
public void setListAction(java.lang.String action)
 
- 
getDefinition
public Definition getDefinition()
 
- 
getAssignments
public java.util.List<Assignments> getAssignments()
 
- 
getAssignment
public Assignments getAssignment(java.lang.String mode)
 
- 
setAssignment
public void setAssignment(Assignments assignment)
 
- 
getProperties
public java.util.List<Property> getProperties()
 
- 
getProperty
public Property getProperty(java.lang.Object propertyName)
 
- 
getDependentBlockNames
public java.util.List<java.lang.String> getDependentBlockNames()
 
- 
getKeyAttribute
protected java.lang.String getKeyAttribute()
Description copied from class:AbstractConfigurationElementThis method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override thegetKeyandsetKeymethods.- Specified by:
 getKeyAttributein classAbstractConfigurationElement
 
- 
getDTDFileName
protected java.lang.String getDTDFileName()
Description copied from class:AbstractConfigurationElementReturns the name of a DTD file that will be added as SystemID to the XML resulting from serializing the contents of this ConfigurationElement into a file;nullby default. This method should be extended if the concrete instance of an element has a predefined DTD file associated.- Overrides:
 getDTDFileNamein classAbstractConfigurationElement
 
- 
getKey
public java.lang.Object getKey()
Description copied from class:AbstractConfigurationElementDefault implementation forgetKey(). It assumes a single attribute can be used to uniquely identify this element among its siblings; the attribute to use is specified by thegetKeyAttribute()method.- Specified by:
 getKeyin interfaceConfigurationElement- Overrides:
 getKeyin classAbstractConfigurationElement- Returns:
 - If 
getKeyAttribute()is empty returnsnull, otherwise it returns the value of the given attribute. 
 
- 
isKeyAttribute
protected boolean isKeyAttribute(java.lang.String name)
Description copied from class:AbstractConfigurationElementReturnstrueis the name is that of the key attribute.- Overrides:
 isKeyAttributein classAbstractConfigurationElement- Since:
 - MicroStrategy Web 9.0.1
 
 
- 
setDefiniton
public void setDefiniton(Definition definition)
 
- 
addProperty
public void addProperty(Property property)
 
- 
setInitPath
public void setInitPath(java.lang.String path)
This method is used only if a new Element is created programmatically using the conifguration editor.- Parameters:
 path- The path for newly created BlockConfig- Since:
 - MicroStrategy Web 9.0.1
 
 
 - 
 
 -