|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.xml.DOMDocumentGenerator
wt.xml.WTIntrospectorToDOMDocumentGenerator
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
static long |
EXTERNALIZATION_VERSION_UID
|
boolean |
INSTANCE_DEBUG
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
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 | |
(package private) |
WTIntrospectorToDOMDocumentGenerator()
|
Method Summary | |
Document |
createDOMDocument()
Creates a new DOM Document object with a Document element and no other children. |
Document |
createDOMDocument(String fullyQualifiedPersistableTypeClassName)
Creates a new skeletal DOM Document object given the fully qualified name of the persistable type for which a skeletal DOM Document should be created. |
Document |
createDOMDocument(XMLSchemaInfo theXMLSchemaInfo)
Creates a new DOM Document object and populates it with elements matching the data in an XMLSchemaInfo's elementIndex hashtable. |
XMLSchemaInfo |
createXMLSchemaInfo(String fullyQualifiedPersistableTypeClassName)
Creates an XMLSchemaInfo object complete with introspection information for the creation of a DOM Document object. |
private XMLSchemaInfo |
defineElement(String attributeNameClassNamePair,
XMLSchemaInfo theXMLSchemaInfo,
boolean rootElement)
Recursively traverses the "tree" of persistable attributes given a classname. |
private void |
expandDOMTree(DOMComponents dom,
Hashtable elementIndex,
String elementName,
boolean root)
Expands a new DOM Document's tree by adding elements until it matches the data in the XMLSchemaInfo's elementIndex. |
boolean |
getInstanceDebug()
|
static WTIntrospectorToDOMDocumentGenerator |
newWTIntrospectorToDOMDocumentGenerator()
Supported API: false |
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(WTIntrospectorToDOMDocumentGenerator thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setInstanceDebug(boolean state)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.xml.DOMDocumentGenerator |
newDOMDocumentGenerator, readVersion |
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
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final boolean DEBUG
public boolean INSTANCE_DEBUG
Constructor Detail |
WTIntrospectorToDOMDocumentGenerator()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class DOMDocumentGenerator
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class DOMDocumentGenerator
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTIntrospectorToDOMDocumentGenerator thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static WTIntrospectorToDOMDocumentGenerator newWTIntrospectorToDOMDocumentGenerator() throws XMLMechanismException
XMLMechanismException
public Document createDOMDocument(String fullyQualifiedPersistableTypeClassName) throws XMLMechanismException
createDOMDocument
in class DOMDocumentGenerator
fullyQualifiedPersistableTypeClassName
- the fully qualified class name of the persistable type to be represented as a skeletal DOM Document.
XMLMechanismException
public XMLSchemaInfo createXMLSchemaInfo(String fullyQualifiedPersistableTypeClassName) throws XMLMechanismException
createXMLSchemaInfo
in class DOMDocumentGenerator
fullyQualifiedPersistableTypeClassName
- the fully qualified class name of the persistable type to be represented as a skeletal DOM Document.
XMLMechanismException
public Document createDOMDocument(XMLSchemaInfo theXMLSchemaInfo) throws XMLMechanismException
createDOMDocument
in class DOMDocumentGenerator
theXMLSchemaInfo
-
XMLMechanismException
public Document createDOMDocument() throws XMLMechanismException
createDOMDocument
in class DOMDocumentGenerator
XMLMechanismException
private XMLSchemaInfo defineElement(String attributeNameClassNamePair, XMLSchemaInfo theXMLSchemaInfo, boolean rootElement)
attributeNameClassNamePair
- the attribute name and class name of the persistable object to define.theXMLSchemaInfo
- object storing the necessary element information.rootElement
- true if the fullyQualifiedClassName given is for the root persistable object.
private void expandDOMTree(DOMComponents dom, Hashtable elementIndex, String elementName, boolean root)
dom
- an object with the attributes and methods for creating DOM DocumentselementIndex
- The hashtable with the vector of children for each element.elementName
- The name of the last element created.root
- public void setInstanceDebug(boolean state)
setInstanceDebug
in class DOMDocumentGenerator
public boolean getInstanceDebug()
getInstanceDebug
in class DOMDocumentGenerator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |