Class BeanAttribute

    • Constructor Detail

    • Method Detail

      • getQName

        public QName getQName()
        Description copied from interface: Attribute
        Returns the QName of this attribute which represents the local name, the qualified name and the Namespace.
        Returns:
        the QName associated with this attribute
      • getParent

        public Element getParent()
        Description copied from interface: Node

        getParent returns the parent Element if this node supports the parent relationship or null if it is the root element or does not support the parent relationship.

        This method is an optional feature and may not be supported for all Node implementations.

        Specified by:
        getParent in interface Node
        Overrides:
        getParent in class AbstractNode
        Returns:
        the parent of this node or null if it is the root of the tree or the parent relationship is not supported.
      • getValue

        public String getValue()
        Description copied from interface: Attribute
        Returns the value of the attribute. This method returns the same value as the Node.getText()method.
        Returns:
        the value of the attribute
      • setValue

        public void setValue​(String data)
        Description copied from interface: Attribute
        Sets the value of this attribute or this method will throw an UnsupportedOperationException if it is read-only.
        Specified by:
        setValue in interface Attribute
        Overrides:
        setValue in class AbstractAttribute
        Parameters:
        data - is the new value of this attribute
      • getData

        public Object getData()
        Description copied from interface: Attribute
        Accesses the data of this attribute which may implement data typing bindings such as XML Schema or Java Bean bindings or will return the same value as Node.getText().
        Specified by:
        getData in interface Attribute
        Overrides:
        getData in class AbstractAttribute
        Returns:
        the attribute data