|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.DOMBasedXArchImplementation
This is the IXArchImplementation class that corresponds to
the DOM-based data binding library. Documents created and
manipulated by this implementation object will use an in-memory DOM
model as their data store.
| Constructor Summary | |
DOMBasedXArchImplementation()
|
|
| Method Summary | |
IXArch |
cloneXArch(IXArch xArch)
Clone a DOM-based xArch document. |
IXArch |
cloneXArch(IXArch xArch,
Object params)
Clone a DOM-based xArch document. |
IXArchContext |
createContext(IXArch xArch,
String contextType)
Creates a new DOM-based context object for a given document and context type. |
IXArch |
createXArch()
Creates a DOM-based XArch document. |
IXArch |
createXArch(Object params)
Creates a DOM-based XArch document. |
static DOMImplementation |
getDOMImplementation()
Gets the DOMImplementation for the preferred parser. |
boolean |
isContainedIn(IXArch xArch,
IXArchElement elt)
Determines if a given IXArchElement is contained (a child of) a given IXArch. |
IXArch |
parse(Object documentSource)
Parse a document into data bindings. |
String |
serialize(IXArch xArch,
Object params)
Serializes a DOM-based xArch document into XML. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DOMBasedXArchImplementation()
| Method Detail |
public static DOMImplementation getDOMImplementation()
public IXArch createXArch()
createXArch in interface IXArchImplementationpublic IXArch createXArch(Object params)
createXArch in interface IXArchImplementationparams - (unused).
public IXArchContext createContext(IXArch xArch,
String contextType)
createContext in interface IXArchImplementationxArch - Document for which to create the context object.contextType - The type of context to create. For example,
if the schema is called "types.xsd" then this should be "types".
IllegalArgumentException - if the context type is invalid.public IXArch cloneXArch(IXArch xArch)
cloneXArch in interface IXArchImplementationxArch - Top-level element of the document to clone.
IllegalArgumentException - if the xArch document is not DOM-based.
public IXArch cloneXArch(IXArch xArch,
Object params)
cloneXArch in interface IXArchImplementationxArch - Top-level element of the document to clone.params - (unused).
IllegalArgumentException - if the xArch document is not DOM-based.
public IXArch parse(Object documentSource)
throws XArchParseException
java.io.Reader) or a
DOM Document.
parse in interface IXArchImplementationdocumentSource - The data source from which to parse.
XArchParseException - if parsing failed for some reason. In the
case of a Reader the chained exception will either be a
SAXException or IOException.
IllegalArgumentException - if the document source was not
supported.
public boolean isContainedIn(IXArch xArch,
IXArchElement elt)
isContainedIn in interface IXArchImplementationxArch - IXArch to check for the element.elt - Element to check for parentage.
true if the element is attached,
false otherwise.
public String serialize(IXArch xArch,
Object params)
throws XArchSerializeException
serialize in interface IXArchImplementationxArch - Top-level element of document to serialize.params - (ignored)
XArchSerializeException - if the serialization failed. In
this implementation, the chained exception is generally a
DOMException.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||