|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.object.IeDatum
Field Summary | |
private static String |
_serialVersion
|
private AttributeIdentifier |
identifier
|
private Object |
rawObject
|
private String |
rawObjectType
|
private State |
state
|
Constructor Summary | |
IeDatum()
default no arg constructor to be used for de-serialization |
|
IeDatum(byte[] array)
Constructs a new datum with a byte array as its value. |
|
IeDatum(Date date)
Constructs a new datum with a Date as its value. |
|
IeDatum(Number number)
Constructs a new datum with a Number as its value. |
|
IeDatum(Object object)
Constructs a new datum with an Object as its value. |
|
IeDatum(String string)
Constructs a new datum with a String as its value. |
Method Summary | |
AttributeIdentifier |
getIdentifier()
Returns the attribute identifier associated with this datum. |
AttributeIdentifier |
getIdentifier(TypeInstanceIdentifier typeInstanceId,
AttributeTypeIdentifier attrTypeId,
int ordinal)
Returns the attribute identifier associated with this datum. |
String |
getNodeName()
Returns the node name of this datum. |
String |
getNodeValue()
Returns the node value of this datum. |
State |
getState()
Returns the state of this datum. |
boolean |
hasChildNodes()
Determines whether this datum has any child nodes. |
static IeDatum |
newIeDatum(AttributeIdentifier identifier,
Object object)
Factory method that accepts an object and constructs an instance with an appropriate type and a specific attribute identifier value. |
static IeDatum |
newIeDatum(Object object)
Factory method that accepts an object and constructs an instance with an appropriate type. |
Object |
rawValueOf()
Returns the raw value of this datum. |
String |
rawValueType()
Returns the type of the raw value of this datum. |
void |
readExternal(ObjectInput in)
|
void |
setIdentifier(AttributeIdentifier identifier)
Sets the attribute identifier associated with this datum. |
void |
setNodeValue(String nodeValue)
Sets the node value of this datum. |
void |
setState(State state)
Sets the state of this datum. |
void |
setValue(Object value)
Sets the raw value of this datum. |
String |
toString()
Returns the String representation of the value associated with this datum. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private AttributeIdentifier identifier
private Object rawObject
private String rawObjectType
private State state
private static final String _serialVersion
Constructor Detail |
public IeDatum()
public IeDatum(byte[] array)
array
- The byte array.public IeDatum(Date date)
public IeDatum(Number number)
public IeDatum(String string)
public IeDatum(Object object)
object
- The Object value.Method Detail |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public static IeDatum newIeDatum(Object object)
object
- The Object value.public static IeDatum newIeDatum(AttributeIdentifier identifier, Object object)
identifier
- The identifier to associate with the value.object
- The Object value.public String toString()
public Object rawValueOf()
public void setValue(Object value)
value
- The new value.public String rawValueType()
public AttributeIdentifier getIdentifier()
public AttributeIdentifier getIdentifier(TypeInstanceIdentifier typeInstanceId, AttributeTypeIdentifier attrTypeId, int ordinal)
typeInstanceId
- The type identifier identifier of the type
instance that contains this datum.attrTypeId
- The attribute type identifier the attribute that
contains this datum.ordinal
- The ordinal of this datum within the attribute that
contains it.
public void setIdentifier(AttributeIdentifier identifier)
identifier
- The new identifier.public State getState()
public void setState(State state)
state
- The new state.public String getNodeName()
public String getNodeValue()
public void setNodeValue(String nodeValue)
nodeValue
- The value to be set.public boolean hasChildNodes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |