|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.cml.dom.pmr.PMRNodeImpl
org.jscience.ml.cml.dom.pmr.PMRDocumentImpl
org.jscience.ml.cml.cmlimpl.AbstractCMLDocumentImpl
public class AbstractCMLDocumentImpl
The base class for any CML Document objects
| Field Summary | |
|---|---|
protected boolean |
arraySyntax
|
protected boolean |
debug
|
static java.lang.String |
DEFAULT_OUTPUT_DTD
Description of the Field |
static java.lang.String |
DEFAULT_OUTPUT_ENCODING
Description of the Field |
protected java.lang.String |
version
|
| Fields inherited from class org.jscience.ml.cml.dom.pmr.PMRNodeImpl |
|---|
childNodes, delegateNode, parentNode, pmrDocument, siblingNodes |
| Fields inherited from interface org.jscience.ml.cml.AbstractCMLDocument |
|---|
DEFAULT_OUTPUT_NAMESPACE, NULL_DTD, NULL_NAMESPACE, PACKAGE_NAME |
| Fields inherited from interface org.w3c.dom.Node |
|---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Fields inherited from interface org.jscience.ml.cml.CMLNode |
|---|
ARRAY, CML1, CML2 |
| Constructor Summary | |
|---|---|
|
AbstractCMLDocumentImpl()
create an Empty Document. |
protected |
AbstractCMLDocumentImpl(org.w3c.dom.Document doc)
Constructor for the AbstractCMLDocumentImpl object |
| Method Summary | |
|---|---|
AbstractBase |
clone(AbstractBase element)
clone element in context of document. |
AbstractBase |
createAbstractBase()
creates new AbstractBase |
org.w3c.dom.Element |
createSubclassedElement(java.lang.String tagName)
Description of the Method |
protected void |
debug(java.lang.String s)
output string if debug set |
boolean |
getDebug()
debug status |
org.w3c.dom.Element[] |
getElementList(java.lang.String elementName)
getElementList (cf AbstractBase) NOTE this will get subelements as well as toplevel ones (for example Molecules which have Molecule children) |
java.util.Vector |
getElementVector(java.lang.String elementName)
getChildVector (cf AbstractBase) |
org.w3c.dom.Element |
getFirstElement(java.lang.String elementName)
getFirstChild (cf AbstractBase) |
static void |
main(java.lang.String[] args)
main |
void |
setArraySyntax(boolean syntax)
set array syntax set CML array syntax (default false) |
void |
setDebug(boolean d)
toggle debugging |
void |
setVersion(java.lang.String v)
set CML version 1 or 2 at present (default 2) |
org.w3c.dom.Element |
subclass(org.w3c.dom.Element oldEl)
DOCUMENT ME! |
static AbstractBase |
transferOwnerDocument(AbstractCMLDocument doc,
AbstractBase elem)
|
void |
updateDelegates()
update delegates. |
void |
updateDOM()
update DOM. |
void |
writeXML(java.io.Writer w)
write XML use current control (version and syntax) |
void |
writeXML(java.io.Writer w,
java.lang.String control)
write the document in XML, using node-specific routines |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Document |
|---|
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersion |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_OUTPUT_ENCODING
public static final java.lang.String DEFAULT_OUTPUT_DTD
protected java.lang.String version
protected boolean arraySyntax
protected boolean debug
| Constructor Detail |
|---|
public AbstractCMLDocumentImpl()
protected AbstractCMLDocumentImpl(org.w3c.dom.Document doc)
doc - Description of the Parameter| Method Detail |
|---|
public static AbstractBase transferOwnerDocument(AbstractCMLDocument doc,
AbstractBase elem)
public org.w3c.dom.Element createSubclassedElement(java.lang.String tagName)
createSubclassedElement in interface AbstractCMLDocumenttagName - Description of the Parameter
public org.w3c.dom.Element subclass(org.w3c.dom.Element oldEl)
AbstractCMLDocument
subclass in interface AbstractCMLDocumentoldEl - DOCUMENT ME!
public AbstractBase createAbstractBase()
createAbstractBase in interface AbstractCMLDocumentpublic org.w3c.dom.Element getFirstElement(java.lang.String elementName)
getFirstElement in interface AbstractCMLDocumentelementName - Description of the Parameter
public org.w3c.dom.Element[] getElementList(java.lang.String elementName)
getElementList in interface AbstractCMLDocumentelementName - Description of the Parameter
public java.util.Vector getElementVector(java.lang.String elementName)
getElementVector in interface AbstractCMLDocumentelementName - Description of the Parameter
public void setDebug(boolean d)
setDebug in interface AbstractCMLDocumentd - debugpublic boolean getDebug()
getDebug in interface AbstractCMLDocumentprotected void debug(java.lang.String s)
s - string to output
public void setVersion(java.lang.String v)
throws CMLException
setVersion in interface CMLNodev - version
unsupported - version
CMLExceptionpublic void setArraySyntax(boolean syntax)
setArraySyntax in interface CMLNodesyntax -
public void writeXML(java.io.Writer w)
throws CMLException,
java.io.IOException
writeXML in interface CMLNodew - - output
CMLException
java.io.IOException
public void writeXML(java.io.Writer w,
java.lang.String control)
throws java.io.IOException,
CMLException
writeXML in interface CMLNodew - the writercontrol - (cannot remember what this does!)
java.io.IOException - Description of the Exception
CMLException - Description of the Exceptionpublic static void main(java.lang.String[] args)
args - command line
public AbstractBase clone(AbstractBase element)
throws CMLException
clone in interface AbstractCMLDocumentelement - to clone (may or may not be owned by this)
CMLException - cannot clone non-AbstractBasepublic void updateDelegates()
updateDelegates in interface AbstractCMLDocumentpublic void updateDOM()
updateDOM in interface AbstractCMLDocument
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||