Package com.microstrategy.web.app
Class PropertyValue
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.web.app.PropertyValue
-
- All Implemented Interfaces:
ConfigurationElement,ConfigurationFile,java.lang.Cloneable
public class PropertyValue extends AbstractConfigurationElement
The PropertyValue class encapsulates information about the values of the formatting properties- Since:
- MicroStrategy Web 8.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_DEFAULTstatic java.lang.StringATT_HTML_VALUEstatic java.lang.StringATT_MAPPED_VALUEstatic java.lang.StringNODE_PROPERTY_VALUEthe constant for the PropertyValue-
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 PropertyValue()Class constructor.PropertyValue(java.lang.String htmlVame, java.lang.String mappedValue)Class constructor.PropertyValue(org.w3c.dom.Node root)Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDefaultValue()Get the default attribute of the property valuejava.lang.StringgetHTMLValue()Get the html value of the Propertyprotected 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.StringgetMappedValue()Get the mapped value of the Propertyprotected voidinitDefaultAttributes()This method can be overridden to set default values for attributes.voidsetDefaultValue(boolean value)Set true if this is the default value of the propertyvoidsetHTMLValue(java.lang.String value)Set the html value of the PropertyvoidsetMappedValue(java.lang.String value)Set the mapped value of the Property-
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, 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, 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_PROPERTY_VALUE
public static final java.lang.String NODE_PROPERTY_VALUE
the constant for the PropertyValue- See Also:
- Constant Field Values
-
ATT_HTML_VALUE
public static final java.lang.String ATT_HTML_VALUE
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_MAPPED_VALUE
public static final java.lang.String ATT_MAPPED_VALUE
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
ATT_DEFAULT
public static final java.lang.String ATT_DEFAULT
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyValue
public PropertyValue()
Class constructor. Initializes a new -empty- instance of the PropertyValue class.
-
PropertyValue
public PropertyValue(java.lang.String htmlVame, java.lang.String mappedValue)Class constructor. Initializes a new instance of the PropertyValue class with the information given as parameters- Parameters:
htmlVame- The HTML value of the formatting property.mappedValue- The mapped value of the formatting property.
-
PropertyValue
public PropertyValue(org.w3c.dom.Node root)
Class constructor. Initializes a PropertyValue instance based on the information included on the XML Node- Parameters:
root- Node instance representing the PropertyValue information.
-
-
Method Detail
-
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- Since:
- MicroStrategy Web 9.0.0
-
initDefaultAttributes
protected void initDefaultAttributes()
Description copied from class:AbstractConfigurationElementThis method can be overridden to set default values for attributes. Simply extend this method and callAbstractConfigurationElement.setAttribute(java.lang.String, java.lang.Object)- Overrides:
initDefaultAttributesin classAbstractConfigurationElement- Since:
- MicroStrategy Web 9.0.0
-
getHTMLValue
public java.lang.String getHTMLValue()
Get the html value of the Property- Returns:
- The HTML value of the property.
-
setHTMLValue
public void setHTMLValue(java.lang.String value)
Set the html value of the Property- Parameters:
value- The html value of the property.
-
getMappedValue
public java.lang.String getMappedValue()
Get the mapped value of the Property- Returns:
- The mapped value of the property.
-
setMappedValue
public void setMappedValue(java.lang.String value)
Set the mapped value of the Property- Parameters:
value- The mapped value of the property.
-
getDefaultValue
public boolean getDefaultValue()
Get the default attribute of the property value- Returns:
- true if this is the default value of the property.
-
setDefaultValue
public void setDefaultValue(boolean value)
Set true if this is the default value of the property- Parameters:
value- true if this is the default value of the property
-
-