org.apache.struts.tiles.xmlDefinition
Class XmlAttribute
java.lang.Object
org.apache.struts.tiles.xmlDefinition.XmlAttribute
public class XmlAttribute
extends java.lang.Object
A property key-value pair. This class is used to read configuration files.
private String | direct - Attribute value.
|
private String | name - Attribute name or key.
|
private Object | realValue - Real attribute value.
|
private String | role - Attribute value.
|
private Object | value - Attribute value.
|
private String | valueType - Attribute value.
|
protected Object | computeRealValue() - Compute real value from attributes setting.
|
String | getAttribute() - Another access method for the name property.
|
String | getName() - Access method for the name property.
|
String | getRole() - Access method for the name property.
|
Object | getValue() - Access method for the value property.
|
void | setAttribute(String aName) - Sets the value of the name property.
|
void | setBody(String body) - Sets the value of the value property.
|
void | setContent(Object aValue) - Sets the value of the value property.
|
void | setDirect(String value) - Sets the value of the value property.
|
void | setName(String aName) - Sets the value of the name property.
|
void | setRole(String role) - Sets the value of the name property.
|
void | setType(String value) - Sets the value of the value property.
|
void | setValue(Object aValue) - Sets the value of the value property.
|
direct
private String direct
Attribute value.
name
private String name
Attribute name or key.
realValue
private Object realValue
Real attribute value.
Real value is the value after processing of valueType.
I.e. if a type is defined, realValue contains wrapper for this type.
role
private String role
Attribute value.
value
private Object value
Attribute value.
Value read from description file.
valueType
private String valueType
Attribute value.
XmlAttribute
public XmlAttribute()
Constructor.
XmlAttribute
public XmlAttribute(String name,
Object value)
Constructor.
computeRealValue
protected Object computeRealValue()
Compute real value from attributes setting.
getAttribute
public String getAttribute()
Another access method for the name property.
- the current value of the name property
getName
public String getName()
Access method for the name property.
- The current value of the name property.
getRole
public String getRole()
Access method for the name property.
- The current value of the name property.
getValue
public Object getValue()
Access method for the value property. Return the value or a
QualifiedAttribute containing the value if 'direct' is set.
- The current value of the value property.
setAttribute
public void setAttribute(String aName)
Sets the value of the name property.
aName
- the new value of the name property
setBody
public void setBody(String body)
Sets the value of the value property.
body
- the new value of the value property
setContent
public void setContent(Object aValue)
Sets the value of the value property.
aValue
- the new value of the value property
setDirect
public void setDirect(String value)
Sets the value of the value property.
value
- the new value of the value property
setName
public void setName(String aName)
Sets the value of the name property.
aName
- the new value of the name property.
setRole
public void setRole(String role)
Sets the value of the name property.
role
- the new value of the name property
setType
public void setType(String value)
Sets the value of the value property.
value
- the new value of the value property
setValue
public void setValue(Object aValue)
Sets the value of the value property.
aValue
- the new value of the value property
Copyright B) 2000-2007 - The Apache Software Foundation