|
||||||||||
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.TaskResultPage
Stores the HTML of an extended results page (i.e., the serialized XML for a merged WavesetResult representing a range of extended results).
An instance contains an embedded html
element.
Nested Class Summary |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
EL_HTML
|
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
TaskResultPage()
Create an empty task result, ready to be filled. |
|
TaskResultPage(org.w3c.dom.Element e)
Deserialize a task result page. |
|
TaskResultPage(java.lang.String taskId,
int pageNumber,
int fromSeq,
int toSeq,
java.lang.String html)
Build a page with HTML representing a range of task extended results. |
Method Summary | |
protected void |
addSubclassAttributes(java.lang.StringBuffer buf)
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 buf)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
static AttributeCondition[] |
forTask(java.lang.String parentTaskId)
|
static AttributeCondition[] |
forTask(TaskInstance ti)
|
protected WSAttribute |
getAttributeValues(java.lang.String attrName)
|
int |
getFromSequence()
|
java.lang.String |
getHTML()
|
static java.lang.String |
getName(java.lang.String taskId,
int pageNumber)
|
static java.lang.String |
getName(TaskInstance task,
int pageNumber)
|
static java.lang.String |
getNameBase(java.lang.String taskId)
|
int |
getPageNumber()
|
java.lang.String |
getTaskId()
|
int |
getToSequence()
|
Type |
getType()
Returns the associated Type object. |
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 |
setFromSequence(int fromSeq)
|
void |
setHTML(java.lang.String html)
|
void |
setPageNumber(int pageNumber)
|
void |
setTaskId(java.lang.String taskId)
|
void |
setToSequence(int toSeq)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String EL_HTML
Constructor Detail |
public TaskResultPage()
public TaskResultPage(java.lang.String taskId, int pageNumber, int fromSeq, int toSeq, java.lang.String html) throws InvalidArgument
public TaskResultPage(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public java.lang.String getTaskId()
public void setTaskId(java.lang.String taskId) throws InvalidArgument
InvalidArgument
public int getPageNumber()
public void setPageNumber(int pageNumber) throws InvalidArgument
InvalidArgument
public int getFromSequence()
public void setFromSequence(int fromSeq)
public int getToSequence()
public void setToSequence(int toSeq)
public java.lang.String getHTML()
public void setHTML(java.lang.String html)
public Type getType()
getType
in class PersistentObject
public static java.lang.String getName(TaskInstance task, int pageNumber) throws InvalidArgument
InvalidArgument
public static java.lang.String getName(java.lang.String taskId, int pageNumber) throws InvalidArgument
InvalidArgument
public static java.lang.String getNameBase(java.lang.String taskId) throws InvalidArgument
InvalidArgument
public static AttributeCondition[] forTask(TaskInstance ti) throws InvalidArgument
InvalidArgument
public static AttributeCondition[] forTask(java.lang.String parentTaskId) throws InvalidArgument
InvalidArgument
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.
protected void addSubclassAttributes(java.lang.StringBuffer buf)
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 buf)
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 java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |