Class AttrOverNodeInfo

java.lang.Object
net.sf.saxon.dom.NodeOverNodeInfo
net.sf.saxon.dom.AttrOverNodeInfo
All Implemented Interfaces:
Attr, Node

public class AttrOverNodeInfo extends NodeOverNodeInfo implements Attr
This class is an implementation of the DOM Attr class that wraps a Saxon NodeInfo representation of an attribute or namespace node.
  • Constructor Details

    • AttrOverNodeInfo

      public AttrOverNodeInfo()
  • Method Details

    • getName

      public String getName()
      Get the name of an attribute node (the lexical QName) (DOM method)
      Specified by:
      getName in interface Attr
    • getValue

      public String getValue()
      Return the character value of an attribute node (DOM method)
      Specified by:
      getValue in interface Attr
      Returns:
      the attribute value
    • getSpecified

      public boolean getSpecified()
      If this attribute was explicitly given a value in the original document, this is true ; otherwise, it is false. (DOM method)
      Specified by:
      getSpecified in interface Attr
      Returns:
      Always true in this implementation.
    • setValue

      public void setValue(String value) throws DOMException
      Set the value of an attribute node. (DOM method). Always fails (because tree is readonly)
      Specified by:
      setValue in interface Attr
      Throws:
      DOMException
    • isId

      public boolean isId()
      Determine whether this (attribute) node is an ID. This method is introduced in DOM Level 3.
      Specified by:
      isId in interface Attr
    • getOwnerElement

      public Element getOwnerElement()
      The Element node this attribute is attached to or null if this attribute is not in use.
      Specified by:
      getOwnerElement in interface Attr
      Since:
      DOM Level 2
    • getSchemaTypeInfo

      public TypeInfo getSchemaTypeInfo()
      Get the schema type information for this node. Returns null for an untyped node.
      Specified by:
      getSchemaTypeInfo in interface Attr