public class XAttributeLiteralImpl extends XAttributeImpl implements XAttributeLiteral
Constructor and Description |
---|
XAttributeLiteralImpl(java.lang.String key,
java.lang.String value)
Creates a new instance.
|
XAttributeLiteralImpl(java.lang.String key,
java.lang.String value,
XExtension extension)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(XVisitor visitor,
XAttributable attributable) |
java.lang.Object |
clone()
Attributes must be cloneable.
|
int |
compareTo(XAttribute other) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getValue()
Retrieves the literal value of this attribute.
|
void |
setValue(java.lang.String value)
Assigns the literal value of this attribute.
|
java.lang.String |
toString()
String representation of the value.
|
getAttributes, getExtension, getExtensions, getKey, hasAttributes, hashCode, setAttributes
finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getKey
getAttributes, getExtensions, hasAttributes, setAttributes
public XAttributeLiteralImpl(java.lang.String key, java.lang.String value)
key
- The key of the attribute.value
- Value of the attribute.public XAttributeLiteralImpl(java.lang.String key, java.lang.String value, XExtension extension)
key
- The key of the attribute.value
- Value of the attribute.extension
- The extension of the attribute.public java.lang.String getValue()
XAttributeLiteral
getValue
in interface XAttributeLiteral
public void setValue(java.lang.String value)
XAttributeLiteral
setValue
in interface XAttributeLiteral
value
- Value of the attribute.public java.lang.String toString()
XAttribute
toString
in interface XAttribute
toString
in class java.lang.Object
public java.lang.Object clone()
XAttribute
clone
in interface XAttribute
clone
in class XAttributeImpl
public boolean equals(java.lang.Object obj)
equals
in class XAttributeImpl
public int compareTo(XAttribute other)
compareTo
in interface java.lang.Comparable<XAttribute>
compareTo
in class XAttributeImpl
public void accept(XVisitor visitor, XAttributable attributable)
accept
in interface XAttribute