wt.transfer.delegate
Class ContentItemDOMTreeEncoderCallback

java.lang.Object
  extended bywt.xml.io.DOMTreeEncoderCallback
      extended bywt.transfer.delegate.ContentItemDOMTreeEncoderCallback
All Implemented Interfaces:
DOMTreeStreamCallback, XMLMechanismConstants

public class ContentItemDOMTreeEncoderCallback
extends DOMTreeEncoderCallback



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private  Enumeration contentItems
           
private  Persistable persistableObject
           
private static String RESOURCE
           
 
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
private ContentItemDOMTreeEncoderCallback()
          No-arg constructor.
  ContentItemDOMTreeEncoderCallback(Document doc)
          

Supported API: false
 
Method Summary
protected  Enumeration getContentItems()
          Gets the value of the attribute: contentItems; An enumeration of ContentItems.
 Element getNextElement()
          Gets the next tree returned by the appropriate call of getElement().
 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.
 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.
private  void outputStreamValidate(OutputStream a_OutputStream)
           
protected  void setContentItems(Enumeration a_ContentItems)
          Sets the value of the attribute: contentItems; An enumeration of ContentItems.
 void setOutputStream(OutputStream a_OutputStream)
          Sets the value of the attribute: outputStream; The ZipOutputStream to which to write files referred to by ContentItems.
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.
 
Methods inherited from class wt.xml.io.DOMTreeEncoderCallback
getDoc, getElement, getOutputStream, getZipEntryVector, setDoc, setZipEntryVector
 
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

contentItems

private Enumeration contentItems

persistableObject

private Persistable persistableObject
Constructor Detail

ContentItemDOMTreeEncoderCallback

private ContentItemDOMTreeEncoderCallback()
No-arg constructor. Private so a constructor with an argument must be used.


ContentItemDOMTreeEncoderCallback

public ContentItemDOMTreeEncoderCallback(Document doc)


Supported API: false

Parameters:
doc -
Method Detail

setOutputStream

public void setOutputStream(OutputStream a_OutputStream)
                     throws WTPropertyVetoException
Sets the value of the attribute: outputStream; The ZipOutputStream to which to write files referred to by ContentItems.

Supported API: false

Overrides:
setOutputStream in class DOMTreeEncoderCallback
Parameters:
a_OutputStream -
Throws:
WTPropertyVetoException

outputStreamValidate

private void outputStreamValidate(OutputStream a_OutputStream)
                           throws WTPropertyVetoException
Parameters:
a_OutputStream -
Throws:
WTPropertyVetoException

getContentItems

protected Enumeration getContentItems()
Gets the value of the attribute: contentItems; An enumeration of ContentItems. Storage until they can be externalized as DOM Elements.

Supported API: false

Returns:
Enumeration

setContentItems

protected void setContentItems(Enumeration a_ContentItems)
Sets the value of the attribute: contentItems; An enumeration of ContentItems. Storage until they can be externalized as DOM Elements.

Supported API: false

Parameters:
a_ContentItems -

initialize

public void initialize(Persistable persistableObject)
                throws XMLMechanismException
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. This method should be called once per persistableObject before each set of getNextElement() calls.

Supported API: false

Specified by:
initialize in class DOMTreeEncoderCallback
Parameters:
persistableObject -
Throws:
wt.xml.XMLMechanismException
XMLMechanismException

getNextElement

public Element getNextElement()
                       throws XMLMechanismException
Gets the next tree returned by the appropriate call of getElement().

Supported API: false

Specified by:
getNextElement in class DOMTreeEncoderCallback
Returns:
Element
Throws:
wt.xml.XMLMechanismException
XMLMechanismException

getPersistableObject

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

Supported API: false

Specified by:
getPersistableObject in class DOMTreeEncoderCallback
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 externalization not handled by the object's writeExternal() method.

Supported API: false

Specified by:
setPersistableObject in class DOMTreeEncoderCallback
Parameters:
a_PersistableObject -