public class ConfAttributeValue extends ConfValue implements Cloneable, Serializable, Comparable<ConfAttributeValue>
ConfAttributeType and the value by
a subclass to ConfValueJ_BINARY, J_BIT32, J_BIT64, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_ENUMERATION, J_HEXSTR, J_IDENTITYREF, J_INSTANCE_IDENTIFIER, J_INT16, J_INT32, J_INT64, J_INT8, J_IPV4, J_IPV4_AND_PLEN, J_IPV4PREFIX, J_IPV6, J_IPV6_AND_PLEN, J_IPV6PREFIX, J_LIST, J_NOEXISTS, J_OBJECTREF, J_OID, J_PTR, J_QNAME, J_STR, J_SYMBOL, J_TIME, J_UINT16, J_UINT32, J_UINT64, J_UINT8, J_UNION, J_XMLBEGIN, J_XMLBEGINDEL, J_XMLEND, J_XMLTAG| Constructor and Description |
|---|
ConfAttributeValue(ConfAttributeType typ,
ConfValue val)
Constructor of ConfAttributeValue
Consists of a value and a type.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ConfAttributeValue o) |
ConfEObject |
encode()
encode value.
|
boolean |
equals(Object o)
Determine if two ConfValue are equal.
|
ConfAttributeType |
getAttributeType()
Get the Attribute type for this attribute value
|
ConfValue |
getAttributeValue()
Get the value of the attribute
|
int |
hashCode() |
boolean |
isRemoveValue()
Check if the attribute is set to be removed
|
void |
setAttributeType(ConfAttributeType attributeType)
Set the attribute type for this attribute value
|
void |
setAttributeValue(ConfValue attributeValue)
Set the value for this attribute value
|
void |
setRemoveValue()
Set the current attribute value to indicate that the attribute
should be removed.
|
String |
toString() |
getStringByValue, getStringByValue, getValueByString, getValueByStringclone, decodepublic ConfAttributeValue(ConfAttributeType typ, ConfValue val)
ConfAttributeTypetyp - ConfAttributeTypeval - subclass to ConfValuepublic int compareTo(ConfAttributeValue o)
compareTo in interface Comparable<ConfAttributeValue>public ConfEObject encode()
ConfValuepublic boolean equals(Object o)
ConfValuepublic ConfAttributeType getAttributeType()
public ConfValue getAttributeValue()
public boolean isRemoveValue()
public void setAttributeType(ConfAttributeType attributeType)
attributeType - ConfAttributeTypepublic void setAttributeValue(ConfValue attributeValue)
attributeValue - ConfValuepublic void setRemoveValue()