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
ConstructorsModifierConstructorDescriptionprotected
COSARAttrIP
(int type, String id, byte[] value, int requiredBytes) protected
COSARAttrIP
(int type, String id, int requiredBytes) COSARAttrIP
(String id) COSARAttrIP
(String id, byte[] value) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
byte[]
getValue()
boolean
setStringValue
(String value) This function sets the attribute value based on a string.boolean
This 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:
getStringValue
in classCOSARAttr
- Returns:
- The value as a string
- Throws:
Exception
-
getIPValue
- Overrides:
getIPValue
in classCOSARAttr
- Returns:
- The value as a raw IP address
- Throws:
Exception
-
getBytesValue
- Overrides:
getBytesValue
in classCOSARAttr
- Returns:
- The value as an array of bytes
- Throws:
Exception
-
getRecAttr
- Overrides:
getRecAttr
in classCOSARAttr
- Returns:
- The equivalent OSARecAttr
-
toString
-
setStringValue
Description copied from class:COSARAttr
This function sets the attribute value based on a string.- Overrides:
setStringValue
in classCOSARAttr
- Returns:
- true if successful, false otherwise
-
setValue
Description copied from class:COSARAttr
This function sets converts the value contained by the passed attribute to the current type
-