public class

PropertyValue

extends AbstractConfigurationElement
java.lang.Object
   ↳ com.microstrategy.utils.config.AbstractConfigurationElement
     ↳ com.microstrategy.web.app.PropertyValue

Class Overview

The PropertyValue class encapsulates information about the values of the formatting properties

Summary

Constants
String ATT_DEFAULT
String ATT_HTML_VALUE
String ATT_MAPPED_VALUE
String NODE_PROPERTY_VALUE the constant for the PropertyValue
[Expand]
Inherited Constants
From class com.microstrategy.utils.config.AbstractConfigurationElement
Public Constructors
PropertyValue()
Class constructor.
PropertyValue(String htmlVame, String mappedValue)
Class constructor.
PropertyValue(Node root)
Class constructor.
Public Methods
boolean getDefaultValue()
Get the default attribute of the property value
String getHTMLValue()
Get the html value of the Property
String getMappedValue()
Get the mapped value of the Property
void setDefaultValue(boolean value)
Set true if this is the default value of the property
void setHTMLValue(String value)
Set the html value of the Property
void setMappedValue(String value)
Set the mapped value of the Property
Protected Methods
String getKeyAttribute()
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 the getKey and setKey methods.
void initDefaultAttributes()
This method can be overridden to set default values for attributes.
[Expand]
Inherited Methods
From class com.microstrategy.utils.config.AbstractConfigurationElement
From class java.lang.Object
From interface com.microstrategy.utils.config.ConfigurationElement
From interface com.microstrategy.utils.config.ConfigurationFile

Constants

public static final String ATT_DEFAULT

Constant Value: "default"

public static final String ATT_HTML_VALUE

Constant Value: "htmlValue"

public static final String ATT_MAPPED_VALUE

Constant Value: "mappedValue"

public static final String NODE_PROPERTY_VALUE

the constant for the PropertyValue

Constant Value: "propertyValue"

Public Constructors

public PropertyValue ()

Class constructor. Initializes a new -empty- instance of the PropertyValue class.

public PropertyValue (String htmlVame, 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.

public PropertyValue (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.

Public Methods

public boolean getDefaultValue ()

Get the default attribute of the property value

Returns
  • true if this is the default value of the property.

public String getHTMLValue ()

Get the html value of the Property

Returns
  • The HTML value of the property.

public String getMappedValue ()

Get the mapped value of the Property

Returns
  • The mapped value of the property.

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

public void setHTMLValue (String value)

Set the html value of the Property

Parameters
value The html value of the property.

public void setMappedValue (String value)

Set the mapped value of the Property

Parameters
value The mapped value of the property.

Protected Methods

protected String getKeyAttribute ()

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 the getKey and setKey methods.

protected void initDefaultAttributes ()

This method can be overridden to set default values for attributes. Simply extend this method and call setAttribute(String, Object)