Class DataModel.AttributeWrapper

java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.Node
com.adobe.xfa.Element
com.adobe.xfa.data.DataModel.AttributeWrapper
All Implemented Interfaces:
Peer
Enclosing class:
DataModel

public static final class DataModel.AttributeWrapper extends Element
The AttributeWrapper exists so that we can pass an Attribute to a method that expects an Element. This is by no means elegant or ideal, but it allows us to minimize differences between the C++ code and Java. In C++, the loading routines take a jfDomNode, which is the parent for both attributes and elements. In Java, the Attribute class doesn't derive from anything.
  • Constructor Details

    • AttributeWrapper

      public AttributeWrapper(Attribute attribute, Element parent)
  • Method Details

    • getNS

      public String getNS()
      Description copied from class: Element
      Gets this element's namespace.
      Overrides:
      getNS in class Element
      Returns:
      the namespace URI.
    • getLocalName

      public String getLocalName()
      Overrides:
      getLocalName in class Element
      Returns:
      the local name as an interned string.
    • getXMLName

      public String getXMLName()
      Description copied from class: Element
      Gets this element's XML name.
      Overrides:
      getXMLName in class Element
      Returns:
      the qualified name as an interned string.
    • getValue

      public String getValue()
    • getXMLParent

      public Element getXMLParent()
      Description copied from class: Node
      Gets this node's XML parent.
      Overrides:
      getXMLParent in class Node
      Returns:
      the XML parent.
      See Also:
    • clone

      public Element clone(Element parent, boolean deep)
      Overrides:
      clone in class Element
    • getXfaPeer

      public Element getXfaPeer()
      Description copied from class: Node
      Gets the XFA DOM Node that is the peer to this XML DOM Node.
      Overrides:
      getXfaPeer in class Node
    • setXfaPeer

      public void setXfaPeer(Element xfaPeer)
      Overrides:
      setXfaPeer in class Node
      Parameters:
      xfaPeer -