Package com.tailf.conf
Class ConfAttributeValue
Object
com.tailf.conf.ConfObject
com.tailf.conf.ConfValue
com.tailf.conf.ConfAttributeValue
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<ConfAttributeValue>
Class that represents an attribute value for an element in a model.
An attribute value consists of a type and a value.
The type is defined by
ConfAttributeType and the value by
a subclass of ConfValue- See Also:
-
Field Summary
Fields inherited from class com.tailf.conf.ConfObject
J_BINARY, J_BIT32, J_BIT64, J_BITBIG, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_EMPTY, 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_XMLMOVEAFTER, J_XMLMOVEFIRST, J_XMLTAG -
Constructor Summary
ConstructorsConstructorDescriptionConfAttributeValue(ConfAttributeType typ, ConfValue val) Constructor of ConfAttributeValue Consists of a value and a type. -
Method Summary
Modifier and TypeMethodDescriptionintencode()encode value.booleanDetermine if two ConfValue are equal.Get the Attribute type for this attribute valueGet the value of the attributeinthashCode()booleanCheck if the attribute is set to be removedvoidsetAttributeType(ConfAttributeType attributeType) Set the attribute type for this attribute valuevoidsetAttributeValue(ConfValue attributeValue) Set the value for this attribute valuevoidMark this attribute value for removal.toString()Methods inherited from class com.tailf.conf.ConfValue
getStringByValue, getStringByValue, getValueByString, getValueByStringMethods inherited from class com.tailf.conf.ConfObject
clone, decode, decode, decode
-
Constructor Details
-
ConfAttributeValue
Constructor of ConfAttributeValue Consists of a value and a type. The legal values for each type is defined inConfAttributeType- Parameters:
typ- ConfAttributeTypeval- subclass to ConfValue
-
-
Method Details
-
getAttributeType
Get the Attribute type for this attribute value- Returns:
- ConfAttributeType the attribute type
-
getAttributeValue
Get the value of the attribute- Returns:
- ConfValue the value of the attribute
-
setRemoveValue
public void setRemoveValue()Mark this attribute value for removal. -
isRemoveValue
public boolean isRemoveValue()Check if the attribute is set to be removed- Returns:
- boolean true if set to be removed
-
setAttributeType
Set the attribute type for this attribute value- Parameters:
attributeType- ConfAttributeType
-
setAttributeValue
Set the value for this attribute value- Parameters:
attributeValue- ConfValue
-
equals
Description copied from class:ConfValueDetermine if two ConfValue are equal. In general, ConfObjects are equal if the components they consist of are equal. -
toString
-
hashCode
public int hashCode() -
encode
Description copied from class:ConfValueencode value. -
compareTo
- Specified by:
compareToin interfaceComparable<ConfAttributeValue>
-