java.lang.Object | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
↳ | com.microstrategy.web.app.WebBeanProperty |
![]() |
The WebBeanProperty class represents a property of a bean defined for a given Page.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ATT_COMPARE | ||||||||||
String | ATT_FEATURE_ID | ||||||||||
String | ATT_NAME | ||||||||||
String | ATT_SOURCE | ||||||||||
String | ATT_TYPE | ||||||||||
String | ATT_VALUE | ||||||||||
String | NODE_PROPERTY |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WebBeanProperty()
Class constructor.
| |||||||||||
WebBeanProperty(String name, int source, String value)
Class constructor.
| |||||||||||
WebBeanProperty(String name, String source, String value)
Class constructor.
| |||||||||||
WebBeanProperty(Node root)
Class constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object[] | getArguments(AppContext appContext, Class target, Object objectInstance) | ||||||||||
Object[] |
getArguments(AppContext appContext)
Returns an array of Object with all the arguments this property needs to set in order to invoke the
object method to set the property.
| ||||||||||
String |
getCompare()
This method is deprecated.
not used anymore. A
Boolean property is true if its value is "true", "1", "1,0" or "0,1"
| ||||||||||
Object |
getContextValue(AppContext appContext)
Returns an object with the value that this property should receive at runtime.
| ||||||||||
String | getFeatureId() | ||||||||||
Object |
getKey()
Default implementation for
getKey() . | ||||||||||
Method |
getMethod(Class target)
Returns the method that should get invoked to apply this property to an
instance of an object of class
target | ||||||||||
String |
getName()
Returns the name of the WebBeanProperty instance, it's used as a unique
identifier of the WebBeanProperty instance.
| ||||||||||
int |
getSource()
Get the source of the WebBeanProperty instance
| ||||||||||
String |
getSourceName()
Get the source name of the WebBeanProperty instance
| ||||||||||
String |
getType()
Get the type of the WebBeanProperty instance
| ||||||||||
String |
getValue()
Get the value of the WebBeanProperty instance
| ||||||||||
void |
setAppContext(AppContext appContext)
This method is deprecated.
The AppContext should not be assigned as part of the definition of a WebBeanProperty. It will be removed in future versions.
| ||||||||||
void |
setCompare(String value)
This method is deprecated.
not used anymore. A
Boolean property is true if its value is "true", "1", "1,0" or "0,1"
| ||||||||||
void |
setFeatureId(String value)
Set the value of the feature property
| ||||||||||
void |
setKey(Element element)
Default implementation for
setKey() . | ||||||||||
void |
setName(String name)
Sets the name of the WebBeanProperty instance, a unique
identifier of the WebBeanProperty instance.
| ||||||||||
void |
setSource(int source)
Set the source of the WebBeanProperty instance
| ||||||||||
void |
setSourceName(String source)
Set the source of the WebBeanProperty instance
| ||||||||||
void |
setType(String type)
Set the type of the WebBeanProperty instance
| ||||||||||
void |
setValue(String value)
Set the value of the WebBeanProperty instance
|
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. | ||||||||||
String | getPropertyNode() | ||||||||||
void |
initDefaultAttributes()
This method can be overridden to set default values for attributes.
| ||||||||||
boolean |
isKeyAttribute(String name)
Returns
true is the name is that of the key attribute. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Class constructor. Initializes a new -empty- instance of the WebBeanProperty class.
Class constructor. Initializes a new instance of the WebBeanProperty with the values passed as parameters
name | String name of the WebBeanProperty. |
---|---|
source | int source of the WebBeanProperty. |
value | String value of the WebBeanProperty.
|
Class constructor. Initializes a new instance of the WebBeanProperty with the values passed as parameters
name | String name of the WebBeanProperty. |
---|---|
source | String source of the WebBeanProperty. |
value | String value of the WebBeanProperty.
|
Class constructor. Initializes a WebBeanProperty instance based on the information included on the XML Node
root | Node instance representing the web bean list information. |
---|
Returns an array of Object with all the arguments this property needs to set in order to invoke the object method to set the property.
appContext | The application context to retrieve the context value of the property |
---|
This method is deprecated.
not used anymore. A Boolean
property is true if its value is "true", "1", "1,0" or "0,1"
Used for Boolean
properties. The actual value is compared to this one to determine if it is true.
Returns an object with the value that this property should receive at runtime. The value depends on the source of the property:
appContext | the AppContext object from where to retrieve the property value. |
---|
Default implementation for getKey()
. It assumes a single attribute
can be used to uniquely identify this element among its siblings; the attribute to use
is specified by the getKeyAttribute()
method.
getKeyAttribute()
is empty returns null
, otherwise it returns the value of the given attribute.
Returns the method that should get invoked to apply this property to an
instance of an object of class target
target | the class which is target of this property |
---|
Returns the name of the WebBeanProperty instance, it's used as a unique identifier of the WebBeanProperty instance.
Get the source of the WebBeanProperty instance
String
value of the source property
Get the source name of the WebBeanProperty instance
String
value of the source property
Get the type of the WebBeanProperty instance
String
type of the value property
Get the value of the WebBeanProperty instance
String
value of the value property
This method is deprecated.
The AppContext should not be assigned as part of the definition of a WebBeanProperty. It will be removed in future versions.
appContext | AppContext instance to associate to this instance |
---|
This method is deprecated.
not used anymore. A Boolean
property is true if its value is "true", "1", "1,0" or "0,1"
Used for Boolean
properties. The actual value is compared to this one to determine if it is true.
value | String |
---|
Set the value of the feature property
value | String with the value to set to the feature property |
---|
Default implementation for setKey()
. It assumes a single attribute
can be used to uniquely identify this element among its siblings and adds this attribute
to the given element; the attribute to use
is specified by the getKeyAttribute()
method.
Sets the name of the WebBeanProperty instance, a unique identifier of the WebBeanProperty instance.
Set the source of the WebBeanProperty instance
source | the String value of the source property
|
---|
Set the source of the WebBeanProperty instance
source | the String value of the source property
|
---|
Set the type of the WebBeanProperty instance
type | the String value of the value property
|
---|
Set the value of the WebBeanProperty instance
value | the String value of the value property
|
---|
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.
This method can be overridden to set default values for attributes. Simply
extend this method and call setAttribute(String, Object)
Returns true
is the name is that of the key attribute.