public class Outcome extends Object implements C2KLocalObject
| Constructor and Description |
|---|
Outcome(int id,
Document dom,
Schema schema) |
Outcome(int id,
String xml,
Schema schema) |
Outcome(String path,
Document data) |
Outcome(String path,
String xml) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClusterType() |
String |
getData() |
Document |
getDOM() |
String |
getField(String name) |
String |
getFieldByXPath(String xpath) |
Integer |
getID() |
String |
getName() |
Node |
getNodeByXPath(String xpathExpr) |
NodeList |
getNodesByXPath(String xpathExpr) |
Schema |
getSchema() |
String |
getSchemaType()
Deprecated.
|
int |
getSchemaVersion()
Deprecated.
|
static Document |
parse(String xml)
Parses the outcome into a DOM tree
|
static String |
serialize(Document doc,
boolean prettyPrint) |
void |
setData(String xml) |
void |
setDOM(Document dom) |
void |
setFieldByXPath(String xpath,
String data) |
void |
setID(Integer ID) |
void |
setName(String name) |
void |
setSchema(Schema schema) |
String |
validate() |
public Outcome(int id,
String xml,
Schema schema)
throws InvalidDataException
InvalidDataExceptionpublic Outcome(String path, String xml) throws PersistencyException, InvalidDataException
public Outcome(String path, Document data) throws PersistencyException, InvalidDataException
public String validate() throws InvalidDataException
InvalidDataExceptionpublic void setID(Integer ID)
public Integer getID()
public void setName(String name)
setName in interface C2KLocalObjectpublic String getName()
getName in interface C2KLocalObjectpublic void setData(String xml) throws SAXException, IOException
SAXExceptionIOExceptionpublic void setDOM(Document dom)
public String getFieldByXPath(String xpath) throws XPathExpressionException, InvalidDataException
public void setFieldByXPath(String xpath, String data) throws XPathExpressionException, InvalidDataException
public String getData()
public Document getDOM()
public Schema getSchema()
public void setSchema(Schema schema)
@Deprecated public String getSchemaType()
@Deprecated public int getSchemaVersion()
public String getClusterType()
getClusterType in interface C2KLocalObjectpublic static Document parse(String xml) throws SAXException, IOException
IOExceptionSAXExceptionpublic NodeList getNodesByXPath(String xpathExpr) throws XPathExpressionException
XPathExpressionExceptionpublic Node getNodeByXPath(String xpathExpr) throws XPathExpressionException
XPathExpressionExceptionCopyright © 1997–2016 CRISTAL-iSE. All rights reserved.