public class XAttributeContinuousImpl extends XAttributeImpl implements XAttributeContinuous
| Constructor and Description |
|---|
XAttributeContinuousImpl(java.lang.String key,
double value)
Creates a new instance.
|
XAttributeContinuousImpl(java.lang.String key,
double 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) |
double |
getValue()
Retrieves the continuous value of this attribute.
|
void |
setValue(double value)
Assigns the continuous value of this attribute.
|
java.lang.String |
toString()
String representation of the value.
|
getAttributes, getExtension, getExtensions, getKey, hasAttributes, hashCode, setAttributesfinalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getKeygetAttributes, getExtensions, hasAttributes, setAttributespublic XAttributeContinuousImpl(java.lang.String key,
double value)
key - The key of the attribute.value - Value of the attribute.public XAttributeContinuousImpl(java.lang.String key,
double value,
XExtension extension)
key - The key of the attribute.value - Value of the attribute.extension - The extension of the attribute.public double getValue()
XAttributeContinuousgetValue in interface XAttributeContinuouspublic void setValue(double value)
XAttributeContinuoussetValue in interface XAttributeContinuousvalue - Value of the attribute.public java.lang.String toString()
XAttributetoString in interface XAttributetoString in class java.lang.Objectpublic java.lang.Object clone()
XAttributeclone in interface XAttributeclone in class XAttributeImplpublic boolean equals(java.lang.Object obj)
equals in class XAttributeImplpublic int compareTo(XAttribute other)
compareTo in interface java.lang.Comparable<XAttribute>compareTo in class XAttributeImplpublic void accept(XVisitor visitor, XAttributable attributable)
accept in interface XAttribute