Class XAttributeLiteralImpl

    • Constructor Detail

      • XAttributeLiteralImpl

        public XAttributeLiteralImpl​(java.lang.String key,
                                     java.lang.String value)
        Creates a new instance.
        Parameters:
        key - The key of the attribute.
        value - Value of the attribute.
      • XAttributeLiteralImpl

        public XAttributeLiteralImpl​(java.lang.String key,
                                     java.lang.String value,
                                     XExtension extension)
        Creates a new instance.
        Parameters:
        key - The key of the attribute.
        value - Value of the attribute.
        extension - The extension of the attribute.
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Description copied from interface: XAttributeLiteral
        Retrieves the literal value of this attribute.
        Specified by:
        getValue in interface XAttributeLiteral
        Returns:
        Value of this attribute.
      • setValue

        public void setValue​(java.lang.String value)
        Description copied from interface: XAttributeLiteral
        Assigns the literal value of this attribute.
        Specified by:
        setValue in interface XAttributeLiteral
        Parameters:
        value - Value of the attribute.
      • toString

        public java.lang.String toString()
        Description copied from interface: XAttribute
        String representation of the value.
        Specified by:
        toString in interface XAttribute
        Overrides:
        toString in class java.lang.Object
        Returns:
        Returns the String representation of the value.
      • clone

        public java.lang.Object clone()
        Description copied from interface: XAttribute
        Attributes must be cloneable.
        Specified by:
        clone in interface XAttribute
        Overrides:
        clone in class XAttributeImpl
        Returns:
        A clone of this attribute.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class XAttributeImpl