Class 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 Detail

      • AttributeWrapper

        public AttributeWrapper​(Attribute attribute,
                                Element parent)
    • Method Detail

      • getNS

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

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

        public java.lang.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 java.lang.String getValue()
      • 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