public abstract class ResultElementBase
extends java.lang.Object
Constructor and Description |
---|
ResultElementBase() |
Modifier and Type | Method and Description |
---|---|
abstract void |
fromXML(java.lang.String xml)
This method must be able to reconstruct the result elelement from a xml string as returned
by
toXML() |
RecordAttribute[] |
getRecordAttributes()
Retrieves the Attributs of the recors
|
RecordAttribute[] |
getRecordAttributes(java.lang.String attrName)
Retrieveds the record Attributes with the given attribute name
|
static boolean |
isValid(java.lang.String xml)
This operations checkes if the provided xml string is a valid serialization of a record
|
void |
RS_fromXML(java.lang.String xml)
This operation is used to unmarshal a result element from a serialization string only if
this is a valid result serialization as returned by
RS_toXML() . |
java.lang.String |
RS_toXML()
This operation is used to retrieve the searialization of the provided
record element checking if it is a valid serialization.
|
void |
setRecordAttributes(RecordAttribute[] attrs)
Sets the record Attributes
|
abstract java.lang.String |
toXML()
This method must return a valid xml serialization of the result record payload.
|
public abstract java.lang.String toXML() throws java.lang.Exception
java.lang.Exception
- The extending element can specify the Exception that is thrownpublic abstract void fromXML(java.lang.String xml) throws java.lang.Exception
toXML()
xml
- The xml serializationjava.lang.Exception
- The elelement creation could not be performedpublic RecordAttribute[] getRecordAttributes()
public RecordAttribute[] getRecordAttributes(java.lang.String attrName)
attrName
- The name of the attributepublic void setRecordAttributes(RecordAttribute[] attrs)
attrs
- The Attributespublic final java.lang.String RS_toXML() throws java.lang.Exception
java.lang.Exception
- The serialization is not a valid record serializationpublic final void RS_fromXML(java.lang.String xml) throws java.lang.Exception
RS_toXML()
.
It also parses the availalbe atributesxml
- The xml string to be unmarshaledjava.lang.Exception
- The unmarshaling could not be performedpublic static final boolean isValid(java.lang.String xml)
xml
- The serialization that must be checkedtrue
if it is a valid serialization, false
otherwise