|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.object.IeDatum
public class IeDatum
| 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(java.util.Date date)
Constructs a new datum with a Date as its value. |
|
IeDatum(java.lang.Number number)
Constructs a new datum with a Number as its value. |
|
IeDatum(java.lang.Object object)
Constructs a new datum with an Object as its value. |
|
IeDatum(java.lang.String string)
Constructs a new datum with a String as its value. |
|
| Method Summary | |
|---|---|
com.ptc.core.meta.common.AttributeIdentifier |
getIdentifier()
Returns the attribute identifier associated with this datum. |
com.ptc.core.meta.common.AttributeIdentifier |
getIdentifier(com.ptc.core.meta.common.TypeInstanceIdentifier typeInstanceId,
com.ptc.core.meta.common.AttributeTypeIdentifier attrTypeId,
int ordinal)
Returns the attribute identifier associated with this datum. |
java.lang.String |
getNodeName()
Returns the node name of this datum. |
java.lang.String |
getNodeValue()
Returns the node value of this datum. |
com.ptc.core.meta.container.common.State |
getState()
Returns the state of this datum. |
boolean |
hasChildNodes()
Determines whether this datum has any child nodes. |
static IeDatum |
newIeDatum(com.ptc.core.meta.common.AttributeIdentifier identifier,
java.lang.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(java.lang.Object object)
Factory method that accepts an object and constructs an instance with an appropriate type. |
java.lang.Object |
rawValueOf()
Returns the raw value of this datum. |
java.lang.String |
rawValueType()
Returns the type of the raw value of this datum. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setIdentifier(com.ptc.core.meta.common.AttributeIdentifier identifier)
Sets the attribute identifier associated with this datum. |
void |
setNodeValue(java.lang.String nodeValue)
Sets the node value of this datum. |
void |
setState(com.ptc.core.meta.container.common.State state)
Sets the state of this datum. |
void |
setValue(java.lang.Object value)
Sets the raw value of this datum. |
java.lang.String |
toString()
Returns the String representation of the value associated with this datum. |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IeDatum()
public IeDatum(byte[] array)
array - The byte array.public IeDatum(java.util.Date date)
array - The Date value.public IeDatum(java.lang.Number number)
array - The Number value.public IeDatum(java.lang.String string)
array - The String value.public IeDatum(java.lang.Object object)
object - The Object value.| Method Detail |
|---|
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic static IeDatum newIeDatum(java.lang.Object object)
object - The Object value.
public static IeDatum newIeDatum(com.ptc.core.meta.common.AttributeIdentifier identifier,
java.lang.Object object)
identifier - The identifier to associate with the value.object - The Object value.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object rawValueOf()
public void setValue(java.lang.Object value)
value - The new value.public java.lang.String rawValueType()
public com.ptc.core.meta.common.AttributeIdentifier getIdentifier()
public com.ptc.core.meta.common.AttributeIdentifier getIdentifier(com.ptc.core.meta.common.TypeInstanceIdentifier typeInstanceId,
com.ptc.core.meta.common.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(com.ptc.core.meta.common.AttributeIdentifier identifier)
identifier - The new identifier.public com.ptc.core.meta.container.common.State getState()
public void setState(com.ptc.core.meta.container.common.State state)
state - The new state.public java.lang.String getNodeName()
public java.lang.String getNodeValue()
public void setNodeValue(java.lang.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 | ||||||||