|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.object.Property
An object that encapsulates the definition of a "property", which which may be associated with another object. The object to which the properties apply is called the host object. Property objects may be maintined in a list directly on the host object, or they may be aggregated into an intermediate container that is referenced by the host object, an example of an property container is the FieldDisplay object, which is referenced by Form.Field.
A property is essentially a name/value pair, the value may be either static, or calculated with XPRESS.
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
ELEMENT
Name of the serialized XML element. |
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
Property()
|
|
Property(org.w3c.dom.Element e)
Constructor for XmlObjectFactory |
|
Property(org.w3c.dom.Element e,
ExEnvironment env)
Sigh, if you want to call functions or reference variables, you need to pass in an ExEnvironment object, typically one owned by the host object. |
|
Property(java.lang.String name,
ExNode exp)
|
|
Property(java.lang.String name,
java.lang.Object value)
|
Method Summary | |
static void |
clearOwner(java.util.List properties)
Clears the owner for a list of properties |
static void |
clearOwner(Property property)
Clears the owner for a property |
java.lang.String |
getElementName()
Return the element name. |
ExNode |
getExpression()
|
com.sun.idm.debugger.common.Location |
getLocation()
|
java.lang.String |
getName()
Get the property name. |
java.lang.Object |
getOwner()
|
static Property |
getProperty(java.util.List list,
java.lang.String name)
Lookup a Property object maintained in a List. |
static java.lang.Object |
getPropertyValue(java.util.List list,
java.lang.String name)
|
java.lang.String |
getString()
Get the fixed value with coercion. |
java.lang.String |
getString(ExState state)
|
java.lang.Object |
getValue()
Get the fixed value. |
java.lang.Object |
getValue(ExState state)
Get the fixed value, or evaluate the expression. |
void |
link(ExEnvironment env)
|
static void |
link(ExEnvironment env,
java.util.List list)
|
void |
parseXml(org.w3c.dom.Element e,
ExEnvironment env)
|
static java.util.List |
parseXmlList(org.w3c.dom.Element wrapper,
ExEnvironment env)
Parse a wrapper element containing a list of Property elements into a List of Property objects. |
static java.util.Map |
parseXmlMap(org.w3c.dom.Element wrapper,
ExEnvironment env)
Parse a wrapper element containing a list of Property elements into a Map of Property objects. |
void |
setExpression(ExNode ex)
|
void |
setLocation(com.sun.idm.debugger.common.Location l)
|
void |
setName(java.lang.String s)
|
static void |
setOwner(java.util.List properties,
java.lang.Object owner)
Sets the owner for a list of properties |
void |
setOwner(java.lang.Object owner)
|
static void |
setOwner(Property property,
java.lang.Object owner)
Sets the owner for a property |
static java.util.List |
setProperty(java.util.List list,
java.lang.String name,
java.lang.Object value)
Assign a property to a property list. |
void |
setValue(java.lang.Object o)
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize into a buffer with optional indentation. |
static void |
toXml(java.lang.StringBuffer b,
int indent,
java.lang.String wrapper,
java.util.List properties)
Property objects are almost always maintained in a List in its container. |
static void |
toXml(java.lang.StringBuffer b,
int indent,
java.lang.String wrapper,
java.util.Map properties)
Serialize a Map of Property objects. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String ELEMENT
Constructor Detail |
public Property()
public Property(org.w3c.dom.Element e, ExEnvironment env) throws WavesetException
public Property(org.w3c.dom.Element e) throws WavesetException
public Property(java.lang.String name, java.lang.Object value)
public Property(java.lang.String name, ExNode exp)
Method Detail |
public void setName(java.lang.String s)
public void setValue(java.lang.Object o)
public java.lang.Object getOwner()
public void setOwner(java.lang.Object owner)
public void setExpression(ExNode ex)
public void link(ExEnvironment env)
public static void link(ExEnvironment env, java.util.List list)
public void setLocation(com.sun.idm.debugger.common.Location l)
setLocation
in interface com.sun.idm.debugger.common.Locatable
public com.sun.idm.debugger.common.Location getLocation()
getLocation
in interface com.sun.idm.debugger.common.Locatable
public java.lang.String getElementName()
AbstractXmlObject
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public java.lang.String getName()
public java.lang.Object getValue()
public java.lang.String getString()
public ExNode getExpression()
public java.lang.Object getValue(ExState state) throws WavesetException
WavesetException
public java.lang.String getString(ExState state) throws WavesetException
WavesetException
public void toXml(java.lang.StringBuffer b, int indent)
AbstractXmlObject
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
public void parseXml(org.w3c.dom.Element e, ExEnvironment env) throws WavesetException
WavesetException
public static void toXml(java.lang.StringBuffer b, int indent, java.lang.String wrapper, java.util.List properties)
public static void toXml(java.lang.StringBuffer b, int indent, java.lang.String wrapper, java.util.Map properties)
public static java.util.List parseXmlList(org.w3c.dom.Element wrapper, ExEnvironment env) throws WavesetException
The ExEnvironment should be passed in if you want the property
expressions to be able to reference
WavesetException
public static java.util.Map parseXmlMap(org.w3c.dom.Element wrapper, ExEnvironment env) throws WavesetException
The ExEnvironment should be passed in if you want the property
expressions to be able to reference
WavesetException
public static Property getProperty(java.util.List list, java.lang.String name)
public static java.lang.Object getPropertyValue(java.util.List list, java.lang.String name)
public static java.util.List setProperty(java.util.List list, java.lang.String name, java.lang.Object value)
public static void setOwner(Property property, java.lang.Object owner)
public static void clearOwner(Property property)
public static void setOwner(java.util.List properties, java.lang.Object owner)
public static void clearOwner(java.util.List properties)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |