|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.xml.io.DOMTreeEncoderCallback
Abstract class for callbacks which may be given to a DOMTreeEncoder
in order to provide a way to handle data not externalized via the exported
objects' writeExternal
call stack.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Document |
doc
|
private OutputStream |
outputStream
|
private static String |
RESOURCE
|
private Vector |
zipEntryVector
|
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 | |
DOMTreeEncoderCallback()
|
Method Summary | |
Document |
getDoc()
Gets the value of the attribute: doc; The DOM Document
needed for creating new Elements , etc. |
protected Element |
getElement(Persistable obj)
Gets a new DOMTreeEncoder and passes it to the writeExternal()
method of the Persistable argument. |
abstract Element |
getNextElement()
Gets the next tree returned by the appropriate call of getElement() . |
OutputStream |
getOutputStream()
Gets the value of the attribute: outputStream; The output stream to which to write any data generated by the callback which does not belong in the DOM Document . |
abstract Persistable |
getPersistableObject()
Gets the value of the attribute: persistableObject; The object to be examined by the callback for additional externalization not handled by the object's writeExternal() method. |
Vector |
getZipEntryVector()
Gets the value of the attribute: zipEntryVector; A Vector of Long objects containing the oids used as ZipEntry names for the current Zip archive. |
abstract void |
initialize(Persistable persistableObject)
Sets the object to be examined by the callback for additional exernalization not handled by the object's writeExternal() method, and
does some internal bookkeeping to prepare the callback to have its
getNextElement() method invoked. |
void |
setDoc(Document a_Doc)
Sets the value of the attribute: doc; The DOM Document
needed for creating new Elements , etc. |
void |
setOutputStream(OutputStream a_OutputStream)
Sets the value of the attribute: outputStream; The output stream to which to write any data generated by the callback which does not belong in the DOM Document . |
protected abstract void |
setPersistableObject(Persistable a_PersistableObject)
Sets the value of the attribute: persistableObject; The object to be examined by the callback for additional externalization not handled by the object's writeExternal() method. |
void |
setZipEntryVector(Vector a_ZipEntryVector)
Sets the value of the attribute: zipEntryVector; A Vector of Long objects containing the oids used as ZipEntry names for the current Zip archive. |
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 OutputStream outputStream
private Vector zipEntryVector
private Document doc
Constructor Detail |
public DOMTreeEncoderCallback()
Method Detail |
public OutputStream getOutputStream()
Document
.
public void setOutputStream(OutputStream a_OutputStream) throws WTPropertyVetoException
Document
.
a_OutputStream
-
WTPropertyVetoException
public Vector getZipEntryVector()
public void setZipEntryVector(Vector a_ZipEntryVector)
a_ZipEntryVector
- public abstract Persistable getPersistableObject()
writeExternal()
method.
protected abstract void setPersistableObject(Persistable a_PersistableObject)
writeExternal()
method.
a_PersistableObject
- public abstract void initialize(Persistable persistableObject) throws XMLMechanismException
writeExternal()
method, and
does some internal bookkeeping to prepare the callback to have its
getNextElement()
method invoked. This method should
be called once per persistableObject
before each set
of getNextElement()
calls.
persistableObject
-
XMLMechanismException
protected Element getElement(Persistable obj) throws XMLMechanismException
DOMTreeEncoder
and passes it to the writeExternal()
method of the Persistable
argument. Returns the tree
it gets from the DOMTreeEncoder
.
obj
- The Persistable
to be externalized as a part of the externalization process of the DOMTreeEncoder
using this callback object.
XMLMechanismException
public abstract Element getNextElement() throws XMLMechanismException
getElement()
.
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 |