Package com.nt.udc.io
Class COSARAttrIP
java.lang.Object
com.nt.udc.io.COSARAttr
com.nt.udc.io.COSARAttrIP
- Direct Known Subclasses:
COSARAttrIP6
This class represents the IP Address OSAR attribute.
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCOSARAttrIP(int type, String id, byte[] value, int requiredBytes) protectedCOSARAttrIP(int type, String id, int requiredBytes) COSARAttrIP(String id) COSARAttrIP(String id, byte[] value) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]byte[]getValue()booleansetStringValue(String value) This function sets the attribute value based on a string.booleanThis function sets converts the value contained by the passed attribute to the current typetoString()Methods inherited from class com.nt.udc.io.COSARAttr
getDCField, getDoubleValue, getId, getLongValue, getMillisValue, getType, idToInt, setId
-
Constructor Details
-
Method Details
-
getValue
public byte[] getValue() -
getStringValue
- Overrides:
getStringValuein classCOSARAttr- Returns:
- The value as a string
- Throws:
Exception
-
getIPValue
- Overrides:
getIPValuein classCOSARAttr- Returns:
- The value as a raw IP address
- Throws:
Exception
-
getBytesValue
- Overrides:
getBytesValuein classCOSARAttr- Returns:
- The value as an array of bytes
- Throws:
Exception
-
getRecAttr
- Overrides:
getRecAttrin classCOSARAttr- Returns:
- The equivalent OSARecAttr
-
toString
-
setStringValue
Description copied from class:COSARAttrThis function sets the attribute value based on a string.- Overrides:
setStringValuein classCOSARAttr- Returns:
- true if successful, false otherwise
-
setValue
Description copied from class:COSARAttrThis function sets converts the value contained by the passed attribute to the current type
-