| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--com.icl.saxon.tree.NodeImpl
        |
        +--com.icl.saxon.tree.ParentNodeImpl
              |
              +--com.icl.saxon.tree.ElementImpl
ElementImpl implements an element with no attributes or namespace declarations.
This class is an implementation of ElementInfo. For elements with attributes or namespace declarations, class ElementWithAttributes is used.
| Field Summary | |
| protected static NodeInfo[] | emptyArray | 
| protected  Name | fullName | 
| protected  int | index | 
| protected  com.icl.saxon.tree.ParentNodeImpl | parent | 
| protected  int | sequence | 
| Fields inherited from interface com.icl.saxon.om.NodeInfo | 
| ATTRIBUTE, COMMENT, DOCUMENT, ELEMENT, NAMESPACE, NODE, NONE, NUMBER_OF_TYPES, PI, TEXT | 
| 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 | 
| Constructor Summary | |
| ElementImpl() | |
| Method Summary | |
|  void | addChild(com.icl.saxon.tree.NodeImpl node,
         int index)Add a child node to this node. | 
|  void | addNamespaceNodes(ElementInfo owner,
                  java.util.Vector list,
                  NodeInfo stop)Make the set of all namespace nodes associated with this element. | 
| protected static java.lang.String | alphaKey(int value)Construct an alphabetic key from an positive integer; the key collates in the same sequence as the integer | 
|  org.w3c.dom.Node | appendChild(org.w3c.dom.Node newChild)Adds the node newChildto the end of the list of children 
 of this node. | 
|  org.w3c.dom.Node | cloneNode(boolean deep)Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. | 
|  void | compact(int size)Compact the space used by this node | 
|  void | copy(Outputter out)Copy this node to a given outputter (supporting xsl:copy-of) | 
|  void | copyStringValue(Outputter out)Copy the string-value of this node to a given outputter | 
|  void | defaultAction(Context c)Perform default action for this kind of node (built-in template rule) | 
| protected  void | disallowUpdate()Internal method used to indicate that update operations are not allowed | 
|  void | dropChildren()Drop a branch of the tree. | 
|  java.lang.String | getAbsoluteName()Get the absolute name of this node. | 
|  NodeInfo[] | getAllChildNodes()Get all child nodes of the element (child elements and character nodes). | 
|  ElementInfo | getAncestor(Name name)Get the nearest ancestor element with a given name | 
|  NodeInfo | getAncestor(Pattern pat,
            Context c)Get the nearest ancestor node that matches the given pattern | 
|  java.lang.String | getAttribute(java.lang.String name)Retrieves an attribute value by name. | 
|  AttributeCollection | getAttributeList()Get the attribute list for this element. | 
|  org.w3c.dom.Attr | getAttributeNode(java.lang.String name)Retrieves an attribute node by name. | 
|  org.w3c.dom.Attr | getAttributeNodeNS(java.lang.String namespaceURI,
                   java.lang.String localName)Retrieves an Attrnode by local name and namespace URI. | 
|  java.lang.String | getAttributeNS(java.lang.String namespaceURI,
               java.lang.String localName)Retrieves an attribute value by local name and namespace URI. | 
|  org.w3c.dom.NamedNodeMap | getAttributes()A NamedNodeMapcontaining the attributes of this element. | 
|  java.lang.String | getAttributeValue(Name name)Find the value of a given attribute of this element. | 
|  java.lang.String | getAttributeValue(java.lang.String name)Find the value of a given attribute of this element. | 
|  org.w3c.dom.NodeList | getChildNodes()Return a NodeListthat contains all children of this node. | 
|  int | getColumnNumber()Get the column number of the node. | 
|  java.lang.String | getDisplayName()Get the display name of this node. | 
|  org.w3c.dom.Element | getDocumentElement()Get the outermost element. | 
|  DocumentInfo | getDocumentRoot()Get the root (document) node | 
|  org.w3c.dom.NodeList | getElementsByTagName(java.lang.String name)Returns a NodeListof all descendantElementswith a given tag name, in the order in which they are encountered in 
 a preorder traversal of thisElementtree. | 
|  org.w3c.dom.NodeList | getElementsByTagNameNS(java.lang.String namespaceURI,
                       java.lang.String localName)Returns a NodeListof all the descendantElementswith a given local name and namespace URI in the 
 order in which they are encountered in a preorder traversal of thisElementtree. | 
|  Name | getExpandedName()Return the name of the node. | 
|  org.w3c.dom.Node | getFirstChild()Get the first child node of the element | 
|  NodeInfo | getFirstChild(Pattern pattern,
              Context c)Get the first child node matching a given pattern | 
|  int | getIndex()Get the index of this node, i.e. | 
|  java.lang.String | getInheritedAttribute(Name name)Find the value of an inherited attribute. | 
|  org.w3c.dom.Node | getLastChild()Get the last child node of the element | 
|  NodeInfo | getLastChild(Pattern pattern,
             Context c)Get the last child node matching a given pattern | 
|  int | getLength()Get number of attributes (DOM NamedNodeMap method). | 
|  int | getLineNumber()Get the line number of the node within its source document entity | 
|  java.lang.String | getLocalName()Get the local name of this node. | 
|  org.w3c.dom.Node | getNamedItem(java.lang.String name)Get named attribute (DOM NamedNodeMap method) Treats namespace declarations as attributes. | 
|  org.w3c.dom.Node | getNamedItemNS(java.lang.String uri,
               java.lang.String localName)Get named attribute (DOM NamedNodeMap method) Treats namespace declarations as attributes. | 
|  java.lang.String | getNamespaceURI()The namespace URI of this node, or nullif it is 
 unspecified. | 
|  NodeInfo | getNextInDocument(NodeInfo anchor)Get the next node in document order | 
|  org.w3c.dom.Node | getNextSibling()Get next sibling node | 
|  NodeInfo | getNextSibling(Pattern pattern,
               Context c)Get the next sibling node that matches a given pattern. | 
|  java.lang.String | getNodeName()Get the name of this node, following the DOM rules | 
|  short | getNodeType()Return the type of node. | 
| static java.lang.String | getNodeTypeName(int type)Translate numeric node type to a string representation | 
|  java.lang.String | getNodeValue()The value of this node (as defined in DOM). | 
| protected  NodeInfo | getNthChild(int n)Get the nth child node of the element (numbering from 0) | 
|  int | getNumberAny(Pattern count,
             Pattern from,
             Context context)Get node number (level="any"). | 
|  java.util.Vector | getNumberMulti(Pattern count,
               Pattern from,
               Context context)Get node number (level="multi"). | 
|  int | getNumberOfChildren()Get the number of children. | 
|  int | getNumberSimple()Get simple node number. | 
|  int | getNumberSimple(Context context)Get simple node number. | 
|  int | getNumberSingle(Pattern count,
                Pattern from,
                Context context)Get node number (level="single"). | 
|  org.w3c.dom.Document | getOwnerDocument()Return the Documentobject associated with this node. | 
|  org.w3c.dom.Node | getParentNode()Find the parent node of this node. | 
|  java.lang.String | getPath()Generate a path to this node | 
|  java.lang.String | getPrefix()Get the prefix part of the name of this node. | 
|  java.lang.String | getPrefixForURI(java.lang.String uri)Search the NamespaceList for a given URI, returning the corresponding prefix. | 
|  NodeInfo | getPreviousInDocument()Get the previous node in document order | 
|  NodeInfo | getPreviousInDocument(Pattern pattern,
                      Context c)Get the previous node in document order | 
|  org.w3c.dom.Node | getPreviousSibling()Get the previous sibling of the node | 
|  NodeInfo | getPreviousSibling(Pattern pattern,
                   Context c)Get the previous sibling of the node that matches a given pattern. | 
|  java.lang.String | getPublicId()Get the public identifier of the document entity containing this node. | 
|  long | getSequenceNumber()Get the node sequence number (in document order). | 
|  java.lang.String | getSequentialKey()Get a character string that uniquely identifies this node and that collates nodes into document order | 
|  java.lang.String | getSystemId()Get the base URI for the node. | 
|  java.lang.String | getTagName()The name of the element (DOM interface). | 
|  java.lang.String | getURI()Get the URI part of the name of this node. | 
|  java.lang.String | getURIforPrefix(java.lang.String prefix)Search the NamespaceList for a given prefix, returning the corresponding URI. | 
|  java.lang.String | getValue()Return the string-value of the node, that is, the concatenation of the character content of all descendent elements and text nodes. | 
|  boolean | hasAttribute(java.lang.String name)Returns truewhen an attribute with a given name is 
 specified on this element or has a default value,falseotherwise. | 
|  boolean | hasAttributeNS(java.lang.String namespaceURI,
               java.lang.String localName)Returns truewhen an attribute with a given local name 
 and namespace URI is specified on this element or has a default value,falseotherwise. | 
|  boolean | hasAttributes()Returns whether this node (if it is an element) has any attributes. | 
|  boolean | hasChildNodes()Determine whether the node has any children. | 
|  boolean | hasName(Name name)Test if the name of the node (including namespaces) is equivalent to the given name | 
|  void | initialise(Name name,
           AttributeCollection atts,
           NodeInfo parent,
           java.lang.String baseURI,
           int lineNumber,
           int sequenceNumber)Construct an empty ElementImpl public ElementImpl() {} /** Initialise a new ElementImpl with an element name | 
|  org.w3c.dom.Node | insertBefore(org.w3c.dom.Node newChild,
             org.w3c.dom.Node refChild)Insert the node newChildbefore the existing child noderefChild. | 
|  boolean | isa(int nodeType)Determine whether the node is of a given type. | 
|  boolean | isAncestor(NodeInfo other)Determine whether this node is an ancestor of another node | 
|  boolean | isDocumentElement()Determine whether this node is the outermost element. | 
|  boolean | isFirstChild()Determine whether this element is the first element child of its parent. | 
|  boolean | isFirstInGroup()Determine whether this element is the first in a consecutive group. | 
|  boolean | isLastChild()Determine whether this element is the last child element of its parent. | 
|  boolean | isLastInGroup()Determine whether this element is the last in a consecutive group. | 
|  boolean | isSameNode(NodeInfo other)Determine whether this is the same node as another node | 
|  boolean | isSupported(java.lang.String feature,
            java.lang.String version)Test if the DOM implementation implements a specific feature. | 
|  org.w3c.dom.Node | item(int index)Get n'th attribute (DOM NamedNodeMap method). | 
|  AttributeInfo | makeAttributeNode(Name attributeName)Make an attribute node for a given attribute of this element | 
|  Name | makeName(java.lang.String qname,
         boolean useDefault)Make a Name, using this Element as the context for namespace resolution | 
|  NameTest | makePrefixTest(java.lang.String wildcard)Make a NameTest object for a prefix:* wildcard | 
|  void | normalize()Puts all Textnodes in the full depth of the sub-tree 
 underneath thisNode, including attribute nodes, into a 
 "normal" form where only structure (e.g., elements, comments, 
 processing instructions, CDATA sections, and entity references) 
 separatesTextnodes, i.e., there are neither adjacentTextnodes nor emptyTextnodes. | 
|  void | outputNamespaceNodes(Outputter out)Output all namespace nodes associated with this element. | 
|  void | removeAttribute(java.lang.String name)Removes an attribute by name. | 
|  org.w3c.dom.Attr | removeAttributeNode(org.w3c.dom.Attr oldAttr)Removes the specified attribute node. | 
|  void | removeAttributeNS(java.lang.String namespaceURI,
                  java.lang.String localName)Removes an attribute by local name and namespace URI. | 
|  void | removeChild(int index)Remove node at given index. | 
|  org.w3c.dom.Node | removeChild(org.w3c.dom.Node oldChild)Remove the child node indicated by oldChildfrom the 
 list of children, and returns it. | 
|  org.w3c.dom.Node | removeNamedItem(java.lang.String name)Remove named attribute (DOM NamedNodeMap method: always fails) | 
|  org.w3c.dom.Node | removeNamedItemNS(java.lang.String uri,
                  java.lang.String localName)Remove named attribute (DOM NamedNodeMap method: always fails) | 
|  void | removeNode()Remove this node from the tree. | 
|  void | renumberChildren()Renumber the children of a given parent node. | 
|  org.w3c.dom.Node | replaceChild(org.w3c.dom.Node newChild,
             org.w3c.dom.Node oldChild)Replace the child node oldChildwithnewChildin the list of children, and returns theoldChildnode. | 
|  void | setAttribute(java.lang.String name,
             java.lang.String value)Set the value of an attribute on the current element. | 
|  org.w3c.dom.Attr | setAttributeNode(org.w3c.dom.Attr newAttr)Adds a new attribute node. | 
|  org.w3c.dom.Attr | setAttributeNodeNS(org.w3c.dom.Attr newAttr)Add a new attribute. | 
|  void | setAttributeNS(java.lang.String namespaceURI,
               java.lang.String qualifiedName,
               java.lang.String value)Adds a new attribute. | 
|  void | setLineNumber(int line)Set the line number of the element within its source document entity | 
|  org.w3c.dom.Node | setNamedItem(org.w3c.dom.Node arg)Set named attribute (DOM NamedNodeMap method: always fails) | 
|  org.w3c.dom.Node | setNamedItemNS(org.w3c.dom.Node arg)Set named attribute (DOM NamedNodeMap method: always fails) | 
|  void | setNodeValue(java.lang.String nodeValue)Set the node value. | 
|  void | setPrefix(java.lang.String prefix)Set the namespace prefix of this node. | 
|  boolean | supports(java.lang.String feature,
         java.lang.String version)Tests whether the DOM implementation implements a specific feature and that feature is supported by this node. | 
|  java.lang.String | toString()Create a string that identifies the node (for diagnostic purposes only) | 
|  void | useChildrenArray(com.icl.saxon.tree.NodeImpl[] array)Supply an array to be used for the array of children. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.w3c.dom.Node | 
| appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix | 
| Field Detail | 
protected Name fullName
protected int sequence
protected static NodeInfo[] emptyArray
protected com.icl.saxon.tree.ParentNodeImpl parent
protected int index
| Constructor Detail | 
public ElementImpl()
| Method Detail | 
public void initialise(Name name,
                       AttributeCollection atts,
                       NodeInfo parent,
                       java.lang.String baseURI,
                       int lineNumber,
                       int sequenceNumber)
                throws org.xml.sax.SAXException
name - The element name, with namespaces resolvedatts - The attribute list: always nullparent - The parent nodepublic final java.lang.String getSystemId()
getSystemId in interface NodeInfogetSystemId in class com.icl.saxon.tree.NodeImplcom.icl.saxon.om.NodeInfopublic void setLineNumber(int line)
public int getLineNumber()
getLineNumber in interface NodeInfogetLineNumber in class com.icl.saxon.tree.NodeImplcom.icl.saxon.om.NodeInfopublic final Name getExpandedName()
getExpandedName in interface NodeInfopublic final java.lang.String getPrefix()
getPrefix in interface NodeInfogetPrefix in class com.icl.saxon.tree.NodeImplpublic final java.lang.String getURI()
getURI in interface NodeInfogetURI in class com.icl.saxon.tree.NodeImpl
public java.lang.String getURIforPrefix(java.lang.String prefix)
                                 throws org.xml.sax.SAXException
getURIforPrefix in interface ElementInfoprefix - The prefix to be matched. To find the default namespace, supply ""org.xml.sax.SAXException - if the prefix has not been declared on this NamespaceList.public java.lang.String getPrefixForURI(java.lang.String uri)
getPrefixForURI in interface ElementInfouri - The URI to be matched.
public void addNamespaceNodes(ElementInfo owner,
                              java.util.Vector list,
                              NodeInfo stop)
                       throws org.xml.sax.SAXException
addNamespaceNodes in interface ElementInfoowner - The element owning these namespace nodes.list - a Vector containing NamespaceInfo objects representing the namespaces
 in scope for this element; the method appends nodes to this Vector, which should
 initially be empty. Note that the returned list will never contain the XML namespace
 (to get this, the NamespaceEnumeration class adds it itself). The list WILL include
 an entry for the undeclaration xmlns=""; again it is the job of NamespaceEnumeration
 to ignore this, since it doesn't represent a true namespace node.stop - the ancestor node to stop at. Supply null to go all the way back to
 the root node. [I believe all calls on this method now supply null: the functionality
 was provided for Literal Result Elements in the stylesheet but is no longer used].
public void outputNamespaceNodes(Outputter out)
                          throws org.xml.sax.SAXException
outputNamespaceNodes in interface ElementInfoout - The relevant outputter
public final Name makeName(java.lang.String qname,
                           boolean useDefault)
                    throws org.xml.sax.SAXException
qname - The name as written, in the form "[prefix:]localname"
public final NameTest makePrefixTest(java.lang.String wildcard)
                              throws org.xml.sax.SAXException
public final short getNodeType()
getNodeType in interface NodeInfopublic AttributeCollection getAttributeList()
getAttributeList in interface ElementInfopublic java.lang.String getAttributeValue(Name name)
getAttributeValue in interface NodeInfogetAttributeValue in class com.icl.saxon.tree.NodeImplname - the name of an attribute. Any prefix in the name is interpreted
  in the context of the namespaces applying to the current elementpublic java.lang.String getAttributeValue(java.lang.String name)
getAttributeValue in interface NodeInfogetAttributeValue in class com.icl.saxon.tree.NodeImplname - the name of an attribute. There must be no prefix in the name.public AttributeInfo makeAttributeNode(Name attributeName)
makeAttributeNode in interface ElementInfoname - The attribute name
public java.lang.String getInheritedAttribute(Name name)
                                       throws org.xml.sax.SAXException
getInheritedAttribute in interface ElementInfoname - the name of the attribute, as a Name object
public void setAttribute(java.lang.String name,
                         java.lang.String value)
                  throws org.w3c.dom.DOMException
setAttribute in interface ElementInfoname - The name of the attribute to be set. Any prefix is interpreted relative
 to the namespaces defined for this element.value - The new value of the attribute. Set this to null to remove the attribute.public boolean isFirstInGroup()
isFirstInGroup in interface ElementInfopublic boolean isLastInGroup()
isLastInGroup in interface ElementInfopublic boolean isFirstChild()
isFirstChild in interface ElementInfopublic boolean isLastChild()
isLastChild in interface ElementInfo
public void copy(Outputter out)
          throws org.xml.sax.SAXException
copy in interface NodeInfopublic java.lang.String getPath()
getPath in interface NodeInfopublic java.lang.String getTagName()
getTagName in interface org.w3c.dom.Elementpublic java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class com.icl.saxon.tree.ParentNodeImplpublic java.lang.String getAttribute(java.lang.String name)
getAttribute in interface org.w3c.dom.Elementname - The name of the attribute to retrieve.Attr value as a string, or the empty string if
    that attribute does not have a specified or default value.public org.w3c.dom.NamedNodeMap getAttributes()
NamedNodeMap containing the attributes of this element. This
 is a DOM method, so the list of attributes includes namespace declarations.getAttributes in interface org.w3c.dom.NodegetAttributes in class com.icl.saxon.tree.NodeImplpublic void removeAttribute(java.lang.String name)
removeAttribute in interface org.w3c.dom.Elementname - The name of the attribute to remove.public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
getAttributeNodeNS method.getAttributeNode in interface org.w3c.dom.Elementname - The name (nodeName ) of the attribute to 
   retrieve.Attr node with the specified name (
   nodeName ) or null if there is no such 
   attribute.
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr)
                                  throws org.w3c.dom.DOMException
setAttributeNode in interface org.w3c.dom.Elementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr)
                                     throws org.w3c.dom.DOMException
removeAttributeNode in interface org.w3c.dom.Elementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
NodeList of all descendant Elements
  with a given tag name, in the order in which they are encountered in 
 a preorder traversal of this Element tree.getElementsByTagName in interface org.w3c.dom.Elementname - The name of the tag to match on. The special value "*" 
   matches all tags.Element nodes.
public java.lang.String getAttributeNS(java.lang.String namespaceURI,
                                       java.lang.String localName)
getAttributeNS in interface org.w3c.dom.ElementnamespaceURI - The  namespace URI of the attribute to retrieve.localName - The  local name of the attribute to retrieve.Attr value as a string, or the empty string if
    that attribute does not have a specified or default value.
public void setAttributeNS(java.lang.String namespaceURI,
                           java.lang.String qualifiedName,
                           java.lang.String value)
                    throws org.w3c.dom.DOMException
setAttributeNS in interface org.w3c.dom.ElementnamespaceURI - The  namespace URI of the attribute to create or 
   alter.qualifiedName - The  qualified name of the attribute to create or 
   alter.value - The value to set in string form.org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
public void removeAttributeNS(java.lang.String namespaceURI,
                              java.lang.String localName)
                       throws org.w3c.dom.DOMException
removeAttributeNS in interface org.w3c.dom.Elementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI,
                                           java.lang.String localName)
Attr node by local name and namespace URI. 
 DOM method, so namespace declarations count as attributes.getAttributeNodeNS in interface org.w3c.dom.ElementnamespaceURI - The  namespace URI of the attribute to retrieve.localName - The  local name of the attribute to retrieve.Attr node with the specified attribute local 
   name and namespace URI or null if there is no such 
   attribute.
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr)
                                    throws org.w3c.dom.DOMException
setAttributeNodeNS in interface org.w3c.dom.ElementnewAttr - The Attr node to add to the attribute list.newAttr attribute replaces an existing 
   attribute with the same  local name and  namespace URI , the 
   replaced Attr node is returned, otherwise 
   null is returned.org.w3c.dom.DOMException - 
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
                                                   java.lang.String localName)
NodeList of all the descendant 
 Elements with a given local name and namespace URI in the 
 order in which they are encountered in a preorder traversal of this 
 Element tree.getElementsByTagNameNS in interface org.w3c.dom.ElementnamespaceURI - The  namespace URI of the elements to match on. 
   The special value "*" matches all namespaces.localName - The  local name of the elements to match on. The 
   special value "*" matches all local names.NodeList object containing all the matched 
   Elements .public boolean hasAttribute(java.lang.String name)
true when an attribute with a given name is 
 specified on this element or has a default value, false 
 otherwise. This is a DOM method, so namespace declarations are treated as
 attributes.hasAttribute in interface org.w3c.dom.Elementname - The name of the attribute to look for.true if an attribute with the given name is 
   specified on this element or has a default value, false 
   otherwise.
public boolean hasAttributeNS(java.lang.String namespaceURI,
                              java.lang.String localName)
true when an attribute with a given local name 
 and namespace URI is specified on this element or has a default value, 
 false otherwise. This is a DOM method so namespace declarations
 are treated as attributes.hasAttributeNS in interface org.w3c.dom.ElementnamespaceURI - The  namespace URI of the attribute to look for.localName - The  local name of the attribute to look for.true if an attribute with the given local name and 
   namespace URI is specified or has a default value on this element, 
   false otherwise.public org.w3c.dom.Node getNamedItem(java.lang.String name)
getNamedItem in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg)
                              throws org.w3c.dom.DOMException
setNamedItem in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node removeNamedItem(java.lang.String name)
                                 throws org.w3c.dom.DOMException
removeNamedItem in interface org.w3c.dom.NamedNodeMappublic org.w3c.dom.Node item(int index)
item in interface org.w3c.dom.NamedNodeMappublic int getLength()
getLength in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node getNamedItemNS(java.lang.String uri,
                                       java.lang.String localName)
getNamedItemNS in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg)
                                throws org.w3c.dom.DOMException
setNamedItemNS in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node removeNamedItemNS(java.lang.String uri,
                                          java.lang.String localName)
                                   throws org.w3c.dom.DOMException
removeNamedItemNS in interface org.w3c.dom.NamedNodeMappublic long getSequenceNumber()
getSequenceNumber in class com.icl.saxon.tree.NodeImplpublic int getNumberOfChildren()
getNumberOfChildren in class com.icl.saxon.tree.NodeImplpublic NodeInfo[] getAllChildNodes()
getAllChildNodes in class com.icl.saxon.tree.NodeImplpublic org.w3c.dom.Node getFirstChild()
getFirstChild in class com.icl.saxon.tree.NodeImplpublic org.w3c.dom.Node getLastChild()
getLastChild in class com.icl.saxon.tree.NodeImplprotected final NodeInfo getNthChild(int n)
public java.lang.String getValue()
public void copyStringValue(Outputter out)
                     throws org.xml.sax.SAXException
copyStringValue in class com.icl.saxon.tree.NodeImpl
public void defaultAction(Context c)
                   throws org.xml.sax.SAXException
public void useChildrenArray(com.icl.saxon.tree.NodeImpl[] array)
public void addChild(com.icl.saxon.tree.NodeImpl node,
                     int index)
public void removeChild(int index)
public void renumberChildren()
public void dropChildren()
public void compact(int size)
public boolean isSameNode(NodeInfo other)
isSameNode in interface NodeInfopublic java.lang.String getNodeName()
getNodeName in interface NodeInfopublic java.lang.String getDisplayName()
getDisplayName in interface NodeInfopublic java.lang.String getAbsoluteName()
getAbsoluteName in interface NodeInfopublic java.lang.String getLocalName()
getLocalName in interface NodeInfopublic boolean hasName(Name name)
hasName in interface NodeInfopublic int getColumnNumber()
public java.lang.String getPublicId()
public final int getIndex()
getIndex in interface NodeInfocom.icl.saxon.om.NodeInfopublic final org.w3c.dom.Node getParentNode()
getParentNode in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.Nodepublic final boolean isa(int nodeType)
Note, this can also be done by testing the node using "instanceof". But this is inconvenient when passing the class as a parameter to another routine.
isa in interface NodeInfonodeType - One of the specific node types such as ELEMENT or TEXT, or the general
 node type NODEpublic final ElementInfo getAncestor(Name name)
getAncestor in interface NodeInfoname - The name of the required ancestor.
public final NodeInfo getAncestor(Pattern pat,
                                  Context c)
                           throws org.xml.sax.SAXException
getAncestor in interface NodeInfopattern - A pattern that the ancestor node must satisfy.public boolean isDocumentElement()
isDocumentElement in interface NodeInfopublic boolean isAncestor(NodeInfo other)
isAncestor in interface NodeInfoother - the other node (the putative descendant of this node)public org.w3c.dom.Element getDocumentElement()
getDocumentElement in interface NodeInfopublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfo
public final NodeInfo getNextSibling(Pattern pattern,
                                     Context c)
                              throws org.xml.sax.SAXException
getNextSibling in interface NodeInfopattern - The match-pattern that the required sibling must matchpublic NodeInfo getNextInDocument(NodeInfo anchor)
getNextInDocument in interface NodeInfoanchor: - the scan stops when it reaches a node that is not a descendant of the specified
 anchor node
public final NodeInfo getFirstChild(Pattern pattern,
                                    Context c)
                             throws org.xml.sax.SAXException
getFirstChild in interface NodeInfopattern - the pattern to be matched
public final NodeInfo getPreviousSibling(Pattern pattern,
                                         Context c)
                                  throws org.xml.sax.SAXException
getPreviousSibling in interface NodeInfopattern - The match-pattern that the required sibling must matchpublic NodeInfo getPreviousInDocument()
getPreviousInDocument in interface NodeInfo
public final NodeInfo getPreviousInDocument(Pattern pattern,
                                            Context c)
                                     throws org.xml.sax.SAXException
getPreviousInDocument in interface NodeInfopattern: - identifies a pattern the required node
public final NodeInfo getLastChild(Pattern pattern,
                                   Context c)
                            throws org.xml.sax.SAXException
getLastChild in interface NodeInfopattern - the pattern to be matchedpublic int getNumberSimple(Context context)
getNumberSimple in interface NodeInfocontext - Used for remembering previous result, for performancepublic int getNumberSimple()
getNumberSimple in interface NodeInfo
public int getNumberSingle(Pattern count,
                           Pattern from,
                           Context context)
                    throws org.xml.sax.SAXException
getNumberSingle in interface NodeInfocount - Pattern that identifies which nodes should be counted. Default (null) is the element
 name if the current node is an element, or "node()" otherwise.from - Pattern that specifies where counting starts from. Default (null) is the root node.
 (This parameter does not seem useful but is included for the sake of XSLT conformance.)
public int getNumberAny(Pattern count,
                        Pattern from,
                        Context context)
                 throws org.xml.sax.SAXException
getNumberAny in interface NodeInfocount - Pattern that identifies which nodes should be counted. Default (null) is the element
 name if the current node is an element, or "node()" otherwise.from - Pattern that specifies where counting starts from. Default (null) is the root node.
 Only nodes after the first (most recent) node that matches the 'from' pattern are counted.
public java.util.Vector getNumberMulti(Pattern count,
                                       Pattern from,
                                       Context context)
                                throws org.xml.sax.SAXException
getNumberMulti in interface NodeInfocount - Pattern that identifies which nodes (ancestors and their previous siblings)
 should be counted. Default (null) is the element
 name if the current node is an element, or "node()" otherwise.from - Pattern that specifies where counting starts from. Default (null) is the root node.
 Only nodes below the first (most recent) node that matches the 'from' pattern are counted.public java.lang.String getSequentialKey()
getSequentialKey in interface NodeInfoprotected static java.lang.String alphaKey(int value)
value - The positive integer key value (negative values are treated as zero).public java.lang.String toString()
toString in class java.lang.Object
public void removeNode()
                throws org.xml.sax.SAXException
public static java.lang.String getNodeTypeName(int type)
public void setNodeValue(java.lang.String nodeValue)
                  throws org.w3c.dom.DOMException
setNodeValue in interface org.w3c.dom.Nodepublic org.w3c.dom.NodeList getChildNodes()
NodeList that contains all children of this node. If 
 there are no children, this is a NodeList containing no 
 nodes.getChildNodes in interface org.w3c.dom.Nodepublic org.w3c.dom.Document getOwnerDocument()
Document object associated with this node. (DOM mehod)getOwnerDocument in interface org.w3c.dom.Node
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node refChild)
                              throws org.w3c.dom.DOMException
newChild before the existing child node 
 refChild. DOM method: always fails.insertBefore in interface org.w3c.dom.NodenewChild - The node to insert.refChild - The reference node, i.e., the node before which the 
   new node must be inserted.org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Always raised.
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node oldChild)
                              throws org.w3c.dom.DOMException
oldChild with 
 newChild in the list of children, and returns the 
 oldChild node. Always fails.replaceChild in interface org.w3c.dom.NodenewChild - The new node to put in the child list.oldChild - The node being replaced in the list.org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Always raised.
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
                             throws org.w3c.dom.DOMException
oldChild from the 
 list of children, and returns it. DOM method: always fails.removeChild in interface org.w3c.dom.NodeoldChild - The node being removed.org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Always raised.
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
                             throws org.w3c.dom.DOMException
newChild to the end of the list of children 
 of this node. DOM method: always fails.appendChild in interface org.w3c.dom.NodenewChild - The node to add.org.w3c.dom.DOMException - public boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.Nodetrue if the node has any children, 
   false if the node has no children.public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.Nodedeep - If true , recursively clone the subtree under 
   the specified node; if false , clone only the node 
   itself (and its attributes, if it is an Element ).public void normalize()
Text nodes in the full depth of the sub-tree 
 underneath this Node, including attribute nodes, into a 
 "normal" form where only structure (e.g., elements, comments, 
 processing instructions, CDATA sections, and entity references) 
 separates Text nodes, i.e., there are neither adjacent 
 Text nodes nor empty Text nodes.normalize in interface org.w3c.dom.Node
public boolean supports(java.lang.String feature,
                        java.lang.String version)
feature - The name of the feature to test. This is the same name 
   which can be passed to the method hasFeature on 
   DOMImplementation .version - This is the version number of the feature to test. In 
   Level 2, version 1, this is the string "2.0". If the version is not 
   specified, supporting any version of the feature will cause the 
   method to return true .true if the specified feature is supported
    on this node, false otherwise.public java.lang.String getNamespaceURI()
null if it is 
 unspecified.
 ELEMENT_NODE and 
 ATTRIBUTE_NODE and nodes created with a DOM Level 1 
 method, such as createElement from the 
 Document interface, this is always null . 
 Per the  Namespaces in XML Specification  an attribute does not 
 inherit its namespace from the element it is attached to. If an 
 attribute is not explicitly given a namespace, it simply has no 
 namespace.getNamespaceURI in interface org.w3c.dom.Node
public void setPrefix(java.lang.String prefix)
               throws org.w3c.dom.DOMException
setPrefix in interface org.w3c.dom.Node
protected void disallowUpdate()
                       throws org.w3c.dom.DOMException
public boolean hasAttributes()
hasAttributes in interface org.w3c.dom.Nodetrue if this node has any attributes, 
   false otherwise.
public boolean isSupported(java.lang.String feature,
                           java.lang.String version)
isSupported in interface org.w3c.dom.Nodefeature - The name of the feature to test (case-insensitive).version - This is the version number of the feature to test.true if the feature is implemented in the 
   specified version, false otherwise.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||