wt.workflow.notebook
Class NotebookTemplateHandlerDelegate

java.lang.Object
  extended bywt.workflow.notebook.NotebookTemplateHandlerDelegate
All Implemented Interfaces:
CollabTemplateHandlerDelegate, Externalizable, Serializable

public class NotebookTemplateHandlerDelegate
extends Object
implements CollabTemplateHandlerDelegate, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static String BOOKMARK
           
private static String CLASSNAME
           
static String DOC_TYPE
           
static String DTD_LOCATION
           
static long EXTERNALIZATION_VERSION_UID
           
static String FOLDER
           
static String NAME
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static String SKELETONOBJECT
           
static String TYPE
           
static String URL
           
private static boolean VERBOSE
           
static String WINDCHILLBOOKMARK
           
static String WINDCHILLOBJECT
           
static String XML_VERSION
           
 
Constructor Summary
NotebookTemplateHandlerDelegate()
           
 
Method Summary
private  NodeList getChildNodes(Node node, short[] types)
          Return a NodeList that contains the children of the specified node that are of the specified types.
 String getOidString(String url)
           
private  String getTextNodeValue(Node node, short[] types)
          Returns value of the node.
private  boolean isOfType(Node node, short[] types)
          Return true if the type of the specified node is included in the specified list of node types.
 boolean isValidTemplate(CollaborationTemplate template)
          

Supported API: false
 CollaborationContainer populateContainer(CollaborationContainer container, CollaborationTemplate template)
          

Supported API: false
private  void populateSubContainer(NodeList list, CollaborationContainer parent, Document doc)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(NotebookTemplateHandlerDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
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

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

FOLDER

public static final String FOLDER
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

BOOKMARK

public static final String BOOKMARK
See Also:
Constant Field Values

WINDCHILLBOOKMARK

public static final String WINDCHILLBOOKMARK
See Also:
Constant Field Values

URL

public static final String URL
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

WINDCHILLOBJECT

public static final String WINDCHILLOBJECT
See Also:
Constant Field Values

SKELETONOBJECT

public static final String SKELETONOBJECT
See Also:
Constant Field Values

XML_VERSION

public static final String XML_VERSION
See Also:
Constant Field Values

DTD_LOCATION

public static final String DTD_LOCATION
See Also:
Constant Field Values

DOC_TYPE

public static final String DOC_TYPE
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE
Constructor Detail

NotebookTemplateHandlerDelegate

public NotebookTemplateHandlerDelegate()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(NotebookTemplateHandlerDelegate thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

isValidTemplate

public boolean isValidTemplate(CollaborationTemplate template)
                        throws WTException


Supported API: false

Specified by:
isValidTemplate in interface CollabTemplateHandlerDelegate
Parameters:
template -
Returns:
boolean
Throws:
WTException

populateContainer

public CollaborationContainer populateContainer(CollaborationContainer container,
                                                CollaborationTemplate template)
                                         throws WTException


Supported API: false

Specified by:
populateContainer in interface CollabTemplateHandlerDelegate
Parameters:
container -
template -
Returns:
CollaborationContainer
Throws:
WTException

populateSubContainer

private void populateSubContainer(NodeList list,
                                  CollaborationContainer parent,
                                  Document doc)
                           throws WTException,
                                  WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

getOidString

public String getOidString(String url)

getChildNodes

private NodeList getChildNodes(Node node,
                               short[] types)
Return a NodeList that contains the children of the specified node that are of the specified types.

Parameters:
node - the node whose children should be returned
types - a list of node type constants defined by the Node class

isOfType

private boolean isOfType(Node node,
                         short[] types)
Return true if the type of the specified node is included in the specified list of node types.

Parameters:
node - the node whose type should be compared against the specified list of types
types - a list of node type constants defined by the Node class

getTextNodeValue

private String getTextNodeValue(Node node,
                                short[] types)
Returns value of the node. Only value of types specified are returned.

Parameters:
node - the node whose value should be returned
types - a list of node type constants defined by the Node class