|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.PersistentObject
com.waveset.object.TestItem
Nested Class Summary |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
TestItem()
|
|
TestItem(org.w3c.dom.Element e)
|
|
TestItem(java.lang.String xml)
|
|
TestItem(java.lang.String name,
java.lang.String value)
|
|
TestItem(java.lang.String name,
java.lang.String[] values)
|
Method Summary | |
protected void |
addSubclassAttributes(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
protected void |
addSubclassElements(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
void |
addValue(java.lang.String s)
Add a value of the test item. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
Compares two objects for equality of identity. |
java.lang.String |
getArbitraryAttribute(java.lang.String attrName)
|
WSAttributes |
getArbitraryAttributes()
|
protected WSAttribute |
getAttributeValues(java.lang.String attrName)
|
java.lang.String |
getDescription()
|
boolean |
getFailDeserialization()
|
java.lang.String |
getState()
|
long |
getTimeBomb()
|
Type |
getType()
Return the type of this object. |
java.lang.String |
getValue()
|
java.lang.String[] |
getValues()
|
java.util.List |
listQueryableAttributes()
|
java.util.List |
listSummaryAttributes()
Returns the complete list of defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each). |
static void |
main(java.lang.String[] args)
|
protected void |
parseSubclassAttributes(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer). |
protected void |
parseSubclassElements(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer). |
void |
setArbitraryAttribute(java.lang.String attrName,
java.lang.String attrVal)
Set a single arbitrary, single-string-valued attribute. |
void |
setArbitraryAttributes(WSAttributes attrs)
Set arbitrary attributes |
void |
setDescription(java.lang.String d)
Set the description of the test item. |
void |
setFailDeserialization(boolean fail)
|
void |
setFailDeserialization(long when)
|
void |
setState(java.lang.String s)
Set state |
void |
setTimeBomb(long when)
|
void |
setValue(java.lang.String s)
Set the value of the test item. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public TestItem()
public TestItem(java.lang.String name, java.lang.String value)
public TestItem(java.lang.String name, java.lang.String[] values)
public TestItem(java.lang.String xml) throws WavesetException
public TestItem(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public boolean getFailDeserialization()
public void setFailDeserialization(boolean fail)
public void setFailDeserialization(long when)
public long getTimeBomb()
public void setTimeBomb(long when)
public java.lang.Object clone()
public Type getType()
PersistentObject
getType
in class PersistentObject
public java.lang.String[] getValues()
public java.lang.String getValue()
public void setValue(java.lang.String s)
public void addValue(java.lang.String s)
public java.lang.String getDescription()
public void setDescription(java.lang.String d)
public java.lang.String getState()
public void setState(java.lang.String s)
public WSAttributes getArbitraryAttributes()
public void setArbitraryAttributes(WSAttributes attrs)
public void setArbitraryAttribute(java.lang.String attrName, java.lang.String attrVal)
public java.lang.String getArbitraryAttribute(java.lang.String attrName)
public java.util.List listQueryableAttributes()
listQueryableAttributes
in class PersistentObject
defined attributes
that this type of PersistentObject exposes as queryable attributes
(regardless of whether this object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listQueryableAttributes()
to ensure that the subclass includes queryable attributes
that are common to all PersistentObjects.
public java.util.List listSummaryAttributes()
PersistentObject
defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Any subclass that overrides this implementation must also consider the length of the summary string that will be generated from these attributes.
listSummaryAttributes
in class PersistentObject
defined attributes
that this type of PersistentObject exposes as summary attributes
(regardless of whether this object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Constants.MAX_SUMMARY_STRING_LENGTH
,
PersistentObject.getSummaryString()
protected WSAttribute getAttributeValues(java.lang.String attrName)
getAttributeValues
in class PersistentObject
attrName
- - the name of the attribute for which to return values.
WSAttribute
that represents the value (or values)
that this object contains for the specified attribute.
public java.lang.String toString()
toString
in class PersistentObject
public boolean equals(java.lang.Object o)
PersistentObject
This method overrides the java.lang.Object equals method. It determines equality based on whether the two identities of the current object and the object argument are equal, where equal is defined as:
Note that this will makes it impossible to use the equals() method to do content comparison of two object copies. I'm not sure I really like this, its an unusual way to have equals() behave, but it is convenient for searching collections for references.
equals
in class PersistentObject
o
- - a PersistentObject or an ObjectRefprotected void addSubclassAttributes(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.
addSubclassAttributes
in class PersistentObject
protected void addSubclassElements(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassElements() so that the subclass elements are restored.
addSubclassElements
in class PersistentObject
protected void parseSubclassAttributes(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassAttributes
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
protected void parseSubclassElements(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassElements
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
public static void main(java.lang.String[] args) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |