|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.xml.io.DOMTreeEncoderCallback
wt.xml.io.CompositeDOMTreeEncoderCallback
Supported API: false
Extendable: false
Field Summary | |
private Enumeration |
callbacks
|
private static String |
CLASSNAME
|
private DOMTreeEncoderCallback |
currentCallback
|
private Persistable |
persistableObject
|
private static String |
RESOURCE
|
private Vector |
theDOMTreeEncoderCallbacks
|
Fields inherited from class wt.xml.io.DOMTreeEncoderCallback |
|
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 | |
CompositeDOMTreeEncoderCallback()
Initializes theDOMTreeEncoderCallbacks as a new empty
Vector. |
|
CompositeDOMTreeEncoderCallback(DOMTreeEncoderCallback theDOMTreeEncoderCallback)
Initializes theDOMTreeEncoderCallbacks as a new Vector
with the argument as the first element. |
Method Summary | |
void |
addDOMTreeEncoderCallback(DOMTreeEncoderCallback theDOMTreeEncoderCallback)
Supported API: false |
protected Enumeration |
getCallbacks()
Gets the value of the attribute: callbacks; An enumeration of the Vector theDOMTreeEncoderCallbacks . |
protected DOMTreeEncoderCallback |
getCurrentCallback()
Gets the value of the attribute: currentCallback; A placeholder to keep track of the current DOMTreeEncoderCallback object
to be used by the getNextElement() method of this class,
so that state can be kept between subsequent calls of getNextElement() . |
protected Vector |
getDOMTreeEncoderCallbacks()
Gets the object for the association that plays role: theDOMTreeEncoderCallbacks. |
Element |
getNextElement()
Gets the next tree returned by the appropriate callback's getElement()
method. |
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 zipEntryVector for this object, which is the
Vector composed of all the unique elements from all the zipEntryVector s
of all the DOMTreeEncoderCallback objects in the Vector theDOMTreeEncoderCallbacks . |
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. |
protected void |
setCallbacks(Enumeration a_Callbacks)
Sets the value of the attribute: callbacks; An enumeration of the Vector theDOMTreeEncoderCallbacks . |
protected void |
setCurrentCallback(DOMTreeEncoderCallback a_CurrentCallback)
Sets the value of the attribute: currentCallback; A placeholder to keep track of the current DOMTreeEncoderCallback object
to be used by the getNextElement() method of this class,
so that state can be kept between subsequent calls of getNextElement() . |
protected void |
setDOMTreeEncoderCallbacks(Vector a_DOMTreeEncoderCallbacks)
Sets the object for the association that plays role: theDOMTreeEncoderCallbacks. |
void |
setOutputStream(OutputStream os)
Sets the outputStream for this object, and all callbacks in the Vector theDOMTreeEncoderCallbacks . |
protected 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 zev)
Sets the zipEntryVector for this object, and for all
DOMTreeEncoderCallback objects in the Vector theDOMTreeEncoderCallbacks . |
Methods inherited from class wt.xml.io.DOMTreeEncoderCallback |
getDoc, getElement, getOutputStream, setDoc |
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 Enumeration callbacks
private DOMTreeEncoderCallback currentCallback
private Vector theDOMTreeEncoderCallbacks
private Persistable persistableObject
Constructor Detail |
public CompositeDOMTreeEncoderCallback()
theDOMTreeEncoderCallbacks
as a new empty
Vector.
public CompositeDOMTreeEncoderCallback(DOMTreeEncoderCallback theDOMTreeEncoderCallback)
theDOMTreeEncoderCallbacks
as a new Vector
with the argument as the first element.
theDOMTreeEncoderCallback
- Method Detail |
protected Enumeration getCallbacks()
theDOMTreeEncoderCallbacks
. This Enumeration
is for the use of the getNextElement()
method of this
class, so that state can be kept between subsequent calls of getNextElement()
.
This Enumeration is recreated at each call of this class's constructors,
when addDOMTreeEncoderCallback()
is called, and each
time setDOMTreeEncoderCallbacks()
is called.
protected void setCallbacks(Enumeration a_Callbacks)
theDOMTreeEncoderCallbacks
. This Enumeration
is for the use of the getNextElement()
method of this
class, so that state can be kept between subsequent calls of getNextElement()
.
This Enumeration is recreated at each call of this class's constructors,
when addDOMTreeEncoderCallback()
is called, and each
time setDOMTreeEncoderCallbacks()
is called.
a_Callbacks
- protected DOMTreeEncoderCallback getCurrentCallback()
DOMTreeEncoderCallback
object
to be used by the getNextElement()
method of this class,
so that state can be kept between subsequent calls of getNextElement()
.
protected void setCurrentCallback(DOMTreeEncoderCallback a_CurrentCallback)
DOMTreeEncoderCallback
object
to be used by the getNextElement()
method of this class,
so that state can be kept between subsequent calls of getNextElement()
.
a_CurrentCallback
- protected Vector getDOMTreeEncoderCallbacks()
protected void setDOMTreeEncoderCallbacks(Vector a_DOMTreeEncoderCallbacks)
a_DOMTreeEncoderCallbacks
- public void addDOMTreeEncoderCallback(DOMTreeEncoderCallback theDOMTreeEncoderCallback)
theDOMTreeEncoderCallback
- public 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.
initialize
in class DOMTreeEncoderCallback
persistableObject
-
XMLMechanismException
public Element getNextElement() throws XMLMechanismException
getElement()
method.
getNextElement
in class DOMTreeEncoderCallback
XMLMechanismException
public void setOutputStream(OutputStream os) throws WTPropertyVetoException
theDOMTreeEncoderCallbacks
.
setOutputStream
in class DOMTreeEncoderCallback
os
-
WTPropertyVetoException
public Vector getZipEntryVector()
zipEntryVector
for this object, which is the
Vector composed of all the unique elements from all the zipEntryVector
s
of all the DOMTreeEncoderCallback objects in the Vector theDOMTreeEncoderCallbacks
.
getZipEntryVector
in class DOMTreeEncoderCallback
public void setZipEntryVector(Vector zev)
zipEntryVector
for this object, and for all
DOMTreeEncoderCallback objects in the Vector theDOMTreeEncoderCallbacks
.
setZipEntryVector
in class DOMTreeEncoderCallback
zev
- public Persistable getPersistableObject()
writeExternal()
method.
getPersistableObject
in class DOMTreeEncoderCallback
protected void setPersistableObject(Persistable a_PersistableObject)
writeExternal()
method.
setPersistableObject
in class DOMTreeEncoderCallback
a_PersistableObject
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |