|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.xml.io.DOMTreeDecoderCallback
Abstract class for callbacks which may be given to a DOMTreeDecoder
in order to provide a way to handle data in the DOM tree which isn't
internalized via the imported objects' readExternal
call
stack but is still integral to these imported objects. This data should
have been created by an appropriate DOMTreeDecoderCallback
instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Object |
container
|
private Document |
doc
|
private InputStream |
inputStream
|
private static String |
RESOURCE
|
Fields inherited from interface wt.util.xml.XMLMechanismConstants |
ATTLIST_ATTRIBUTE_NAME, ATTLIST_CLASS_NAME, ATTLIST_ENCODING_TYPE, ATTLIST_OID, DEFAULT_XML_PARSER_IMPLEMENTATION, DOCUMENT_ELEMENT_NAME, SELF_DESCRIBING_XML, XML_FILE_EXT |
Constructor Summary | |
DOMTreeDecoderCallback()
|
Method Summary | |
abstract Vector |
getAncillaryObjects()
Gets the value of the attribute: ancillaryObjects; A vector of objects, or references to objects, to be used by the creator of the callback object to get objects or references to objects created by the callback object as part of its handling of DOM Elements . |
Object |
getContainer()
Gets the value of the attribute: container; The Object from which any necessary data not in the DOM tree given to the callback is read. |
Document |
getDoc()
Gets the value of the attribute: doc; The DOM Document
needed for creating new Elements , etc. |
InputStream |
getInputStream()
Gets the value of the attribute: inputStream; The InputStream from which any necessary data not in the DOM tree given to the callback is read. |
abstract Persistable |
getPersistableObject()
Gets the value of the attribute: persistableObject; The object to be examined by the callback for additional internalization not handled by the object's readExternal() method. |
abstract void |
initialize()
Sets the object to be examined by the callback for additional internalization not handled by the object's readExternal() method, and
may do some internal bookkeeping to allow the callback to handle things
like linking other objects to the main persistable object, etc. |
protected abstract void |
setAncillaryObjects(Vector a_AncillaryObjects)
Sets the value of the attribute: ancillaryObjects; A vector of objects, or references to objects, to be used by the creator of the callback object to get objects or references to objects created by the callback object as part of its handling of DOM Elements . |
void |
setContainer(Object a_Container)
Sets the value of the attribute: container; The Object from which any necessary data not in the DOM tree given to the callback is read. |
void |
setDoc(Document a_Doc)
Sets the value of the attribute: doc; The DOM Document
needed for creating new Elements , etc. |
protected void |
setElement(Persistable obj,
Element tree)
Gets a new DOMTreeDecoder , gives it the tree, and passes
it to the readExternal() method of the Persistable
argument. |
void |
setInputStream(InputStream a_InputStream)
Sets the value of the attribute: inputStream; The InputStream from which any necessary data not in the DOM tree given to the callback is read. |
abstract void |
setNextElement(Element tree)
Gives the tree and an instance of the Persistable to
be created from the tree to the appropriate setElement() method. |
protected abstract void |
setPersistableObject(Persistable a_PersistableObject)
Sets the value of the attribute: persistableObject; The object to be examined by the callback for additional internalization not handled by the object's readExternal() method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Object container
private InputStream inputStream
private Document doc
Constructor Detail |
public DOMTreeDecoderCallback()
Method Detail |
public Object getContainer()
public void setContainer(Object a_Container) throws WTPropertyVetoException
a_Container
-
WTPropertyVetoException
public InputStream getInputStream()
public void setInputStream(InputStream a_InputStream) throws WTPropertyVetoException
a_InputStream
-
WTPropertyVetoException
public abstract Persistable getPersistableObject()
readExternal()
method.
protected abstract void setPersistableObject(Persistable a_PersistableObject)
readExternal()
method.
a_PersistableObject
- public abstract Vector getAncillaryObjects()
Elements
.
protected abstract void setAncillaryObjects(Vector a_AncillaryObjects)
Elements
.
a_AncillaryObjects
- public abstract void initialize() throws XMLMechanismException
readExternal()
method, and
may do some internal bookkeeping to allow the callback to handle things
like linking other objects to the main persistable object, etc. This
method should be called once per persistableObject
being
imported.
XMLMechanismException
protected void setElement(Persistable obj, Element tree) throws XMLMechanismException
DOMTreeDecoder
, gives it the tree, and passes
it to the readExternal()
method of the Persistable
argument.
obj
- The Persistable
to be externalized as a part of the externalization process of the DOMTreeEncoder
using this callback object.tree
-
XMLMechanismException
public abstract void setNextElement(Element tree) throws XMLMechanismException
Persistable
to
be created from the tree to the appropriate setElement() method.
tree
-
XMLMechanismException
public Document getDoc()
Document
needed for creating new Elements
, etc.
getDoc
in interface DOMTreeStreamCallback
public void setDoc(Document a_Doc)
Document
needed for creating new Elements
, etc.
setDoc
in interface DOMTreeStreamCallback
a_Doc
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |