wt.xml.io
Class CompositeDOMTreeDecoderCallback

java.lang.Object
  extended bywt.xml.io.DOMTreeDecoderCallback
      extended bywt.xml.io.CompositeDOMTreeDecoderCallback
All Implemented Interfaces:
DOMTreeStreamCallback, XMLMechanismConstants

public class CompositeDOMTreeDecoderCallback
extends DOMTreeDecoderCallback



Supported API: false

Extendable: false


Field Summary
private  Vector ancillaryObjects
           
private static String CLASSNAME
           
private  Persistable persistableObject
           
private static String RESOURCE
           
private  Vector theDOMTreeDecoderCallbacks
           
 
Fields inherited from class wt.xml.io.DOMTreeDecoderCallback
 
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
CompositeDOMTreeDecoderCallback()
          Initializes theDOMTreeDecoderCallbacks as a new empty Vector.
CompositeDOMTreeDecoderCallback(DOMTreeDecoderCallback theDOMTreeDecoderCallback)
          Initializes theDOMTreeDecoderCallbacks as a new Vector with the argument as the first element.
 
Method Summary
 void addDOMTreeDecoderCallback(DOMTreeDecoderCallback theDOMTreeDecoderCallback)
          

Supported API: false
 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.
protected  Vector getDOMTreeDecoderCallbacks()
          Gets the object for the association that plays role: theDOMTreeDecoderCallbacks.
 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.
 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  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 obj)
          Sets the container for this object, and all callbacks in the Vector theDOMTreeDecoderCallbacks.
protected  void setDOMTreeDecoderCallbacks(Vector a_DOMTreeDecoderCallbacks)
          Sets the object for the association that plays role: theDOMTreeDecoderCallbacks.
 void setInputStream(InputStream is)
          Sets the inputStream for this object, and all callbacks in the Vector theDOMTreeDecoderCallbacks.
 void setNextElement(Element tree)
          Gives the tree and an instance of the appropriate Persistable to the appropriate callback's setElement() method.
protected  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 wt.xml.io.DOMTreeDecoderCallback
getContainer, getDoc, getInputStream, setDoc, setElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

theDOMTreeDecoderCallbacks

private Vector theDOMTreeDecoderCallbacks

persistableObject

private Persistable persistableObject

ancillaryObjects

private Vector ancillaryObjects
Constructor Detail

CompositeDOMTreeDecoderCallback

public CompositeDOMTreeDecoderCallback()
Initializes theDOMTreeDecoderCallbacks as a new empty Vector.

Supported API: false


CompositeDOMTreeDecoderCallback

public CompositeDOMTreeDecoderCallback(DOMTreeDecoderCallback theDOMTreeDecoderCallback)
Initializes theDOMTreeDecoderCallbacks as a new Vector with the argument as the first element.

Supported API: false

Parameters:
theDOMTreeDecoderCallback -
Method Detail

getDOMTreeDecoderCallbacks

protected Vector getDOMTreeDecoderCallbacks()
Gets the object for the association that plays role: theDOMTreeDecoderCallbacks.

Supported API: false

Returns:
Vector

setDOMTreeDecoderCallbacks

protected void setDOMTreeDecoderCallbacks(Vector a_DOMTreeDecoderCallbacks)
Sets the object for the association that plays role: theDOMTreeDecoderCallbacks.

Supported API: false

Parameters:
a_DOMTreeDecoderCallbacks -

initialize

public void initialize()
                throws XMLMechanismException
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. This method should be called once per persistableObject being imported.

Supported API: false

Specified by:
initialize in class DOMTreeDecoderCallback
Throws:
XMLMechanismException

setNextElement

public void setNextElement(Element tree)
                    throws XMLMechanismException
Gives the tree and an instance of the appropriate Persistable to the appropriate callback's setElement() method.

Supported API: false

Specified by:
setNextElement in class DOMTreeDecoderCallback
Parameters:
tree -
Throws:
XMLMechanismException

addDOMTreeDecoderCallback

public void addDOMTreeDecoderCallback(DOMTreeDecoderCallback theDOMTreeDecoderCallback)


Supported API: false

Parameters:
theDOMTreeDecoderCallback -

setContainer

public void setContainer(Object obj)
                  throws WTPropertyVetoException
Sets the container for this object, and all callbacks in the Vector theDOMTreeDecoderCallbacks.

Supported API: false

Overrides:
setContainer in class DOMTreeDecoderCallback
Parameters:
obj -
Throws:
WTPropertyVetoException

setInputStream

public void setInputStream(InputStream is)
                    throws WTPropertyVetoException
Sets the inputStream for this object, and all callbacks in the Vector theDOMTreeDecoderCallbacks.

Supported API: false

Overrides:
setInputStream in class DOMTreeDecoderCallback
Parameters:
is -
Throws:
WTPropertyVetoException

getPersistableObject

public 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.

Supported API: false

Specified by:
getPersistableObject in class DOMTreeDecoderCallback
Returns:
Persistable

setPersistableObject

protected 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.

Supported API: false

Specified by:
setPersistableObject in class DOMTreeDecoderCallback
Parameters:
a_PersistableObject -

getAncillaryObjects

public 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.

Supported API: false

Specified by:
getAncillaryObjects in class DOMTreeDecoderCallback
Returns:
Vector

setAncillaryObjects

protected 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.

Supported API: false

Specified by:
setAncillaryObjects in class DOMTreeDecoderCallback
Parameters:
a_AncillaryObjects -