|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.ServiceSchema
public class ServiceSchema
The ServiceSchema is a class that represents the schema of a service
operation. In particular it handles the generation of the schema through the
getAsElement(Document)
method.
Constructor Summary | |
---|---|
ServiceSchema(java.lang.String operationFullName,
java.lang.String operationName,
java.util.List<ServiceField> requestFields,
java.util.List<ServiceField> responseFields,
java.lang.String path)
constructor. |
Method Summary | |
---|---|
org.w3c.dom.Element |
getAsElement(org.w3c.dom.Document document)
returns a schema element that expresses the schema. |
java.lang.String |
getVersion()
a version that identifies the schema or null if there is none |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceSchema(java.lang.String operationFullName, java.lang.String operationName, java.util.List<ServiceField> requestFields, java.util.List<ServiceField> responseFields, java.lang.String path)
operationFullName
- the full name of the operation. This must be unique within the
contract since it is used to form type names. It is normally the
concatenation of the resource tree and the operation name.operationName
- the name of the operationrequestFields
- the list of fields in the requestresponseFields
- the list of fields in the responsepath
- found. Typically this will consist of the resource name(s)
followed by the $service keyword and the name of the operation,
all separated by the URL separator.Method Detail |
---|
public org.w3c.dom.Element getAsElement(org.w3c.dom.Document document)
SDataSchema
The schema returned is intended either to be made the content of a document or added to a link element etc.
getAsElement
in interface SDataSchema
document
- the element to which to add itselfpublic java.lang.String getVersion()
SDataSchema
getVersion
in interface SDataSchema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |