Class ExtAttribute


  • public class ExtAttribute
    extends Object
    Represents an extension (or unsupported module) attribute.
    • Constructor Detail

      • ExtAttribute

        public ExtAttribute​(ExtAttribute original)
        Copy constructor.
        Parameters:
        original - the original object to duplicate.
      • ExtAttribute

        public ExtAttribute​(QName qName,
                            String value)
        Creates a new ExtAttribute object.
        Parameters:
        qName - the qualified name of this attribute.
        value - the value of this attribute.
    • Method Detail

      • getQName

        public QName getQName()
        Gets the QName of this attribute.
        Returns:
        the QName of this attribute.
      • getValue

        public String getValue()
        Gets the value of this attribute.
        Returns:
        the value of this attribute (can be null).
      • setValue

        public void setValue​(String value)
        Sets the value of this attribute.
        Parameters:
        value - the new value of this attribute (can be null).
      • getLocalPart

        public String getLocalPart()
        Gets the local name of this attribute.
        Returns:
        the local name of this attribute.
      • getNamespaceURI

        public String getNamespaceURI()
        Gets the namespace URI of this attribute.
        Returns:
        the namespace URI of this attribute.
      • getPrefix

        public String getPrefix()
        Gets the prefix of this attribute.
        Returns:
        the prefix of this attribute.
      • isModule

        public boolean isModule()
        Indicates if this attribute is part of a module or not.
        Returns:
        true if this attribute is part of a module.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object