uk.co.demon.ursus.dom
Interface PMRElement

All Known Subinterfaces:
AbstractAngle, AbstractAtom, AbstractAtomRef, AbstractBond, AbstractBuiltinContainer, AbstractStringVal, Angle, Atom, AtomArray, Bond, BondArray, CML, CMLBase, CMLValidity, Crystal, Electron, Execute, Feature, FloatArray, FloatMatrix, FloatVal, Formula, HasExecute, IntegerArray, IntegerVal, Link, List, Molecule, NumericVal, Reaction, Sequence, STElement, StringArray, StringVal, Torsion, Validity
All Known Implementing Classes:
PMRElementImpl

public interface PMRElement
extends PMRNode, org.w3c.dom.Element


Field Summary
static java.lang.String CLASSNAME
           
static int LOCAL
          local name
static int QUALIFIED
          prefix COLON local name
static int UNIVERSAL
          concatenation of URN and local name
 
Fields inherited from interface uk.co.demon.ursus.dom.PMRNode
ATTRIBUTES, CONTENT, ELEMENTNAME, IDLIST, NESTED, NESTEDATTS, PACKAGENAME, PRETTY, SPLITFILES, STYLE, TAGGED, UNTAGGED, WHITESPACE, XMLCONTENT
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 void appendTo(org.w3c.dom.Node parentNode)
          append to a parent node.
 Validity getValidity()
          Determines whether node is valid (class specific).
 void processDescendants()
          process descendants of an element using processDOM().
 void processDOM()
          carries out class-specific processing for subclasses of PMRElement.
 void setProcessFlag(boolean processFlag)
          set flag indicating element is to be processed.
 void setTagName(java.lang.String tagName)
          A non-DOM extension
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

UNIVERSAL

public static final int UNIVERSAL
concatenation of URN and local name

QUALIFIED

public static final int QUALIFIED
prefix COLON local name

LOCAL

public static final int LOCAL
local name
Method Detail

setTagName

public void setTagName(java.lang.String tagName)
A non-DOM extension

appendTo

public void appendTo(org.w3c.dom.Node parentNode)
append to a parent node. Allows child to decide whether it should be added

processDescendants

public void processDescendants()
                        throws java.lang.Exception
process descendants of an element using processDOM(). Uses post-order (i.e. children processed before parents. The element itself is processed last

processDOM

public void processDOM()
                throws java.lang.Exception
carries out class-specific processing for subclasses of PMRElement. The default for a generic PMRElement is no-op. Often creates an internal model

setProcessFlag

public void setProcessFlag(boolean processFlag)
set flag indicating element is to be processed. elements with flag set. After process() has been called, processFlag is et to false. Caller is responsible for when and where process() is called. When element is created processFlag is set true.
Parameters:
boolean - processFlag if true, process element next time process() is called.

getValidity

public Validity getValidity()
Determines whether node is valid (class specific). Perhaps used in treeWalk mode