com.infoengine.object
Class IeInstanceIdentifier

java.lang.Object
  extended bycom.infoengine.object.IeInstanceIdentifier
All Implemented Interfaces:
Externalizable, Identifier, InstanceIdentifier, Serializable

public class IeInstanceIdentifier
extends Object
implements InstanceIdentifier, Externalizable

See Also:
Serialized Form

Field Summary
private static String _serialVersion
           
private  String externalForm
           
private  int hashcode
           
static String PROTOCOL
           
 
Fields inherited from interface com.ptc.core.meta.common.Identifier
CONTEXT_SEPARATOR, INSTANCE_DATA_SEPARATOR, PROTOCOL_SEPARATOR
 
Constructor Summary
IeInstanceIdentifier()
          default no arg constructor to be used for de-serialization
IeInstanceIdentifier(String id)
          Constructor.
 
Method Summary
 int compareFreshness(InstanceIdentifier instanceId)
          The compareFreshness() method computes the "freshness distance" between the two objects (the one the method is applied on and the one provided in parameters).
 boolean equals(Object object)
          Indicates whether some other object is "equal to" this one.
 String getId()
          Returns the current identifier value.
 int hashCode()
          Returns a hash code value for the object.
 void readExternal(ObjectInput in)
           
 String toExternalForm()
          Return the external form of this Identifier.
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOCOL

public static final String PROTOCOL
See Also:
Constant Field Values

externalForm

private String externalForm

hashcode

private int hashcode

_serialVersion

private static final String _serialVersion
See Also:
Constant Field Values
Constructor Detail

IeInstanceIdentifier

public IeInstanceIdentifier()
default no arg constructor to be used for de-serialization


IeInstanceIdentifier

public IeInstanceIdentifier(String id)
Constructor.

Parameters:
id - The identifier value.
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getId

public String getId()
Returns the current identifier value.

Returns:
String

compareFreshness

public int compareFreshness(InstanceIdentifier instanceId)
                     throws ComparisonImpossibleException
The compareFreshness() method computes the "freshness distance" between the two objects (the one the method is applied on and the one provided in parameters). The return value is an integer representing this distance. A value of zero means that the objects are equals in terms of freshness. ComparisonImpossibleException will be thrown if the two objects can not be compared.

Specified by:
compareFreshness in interface InstanceIdentifier
Parameters:
instanceId -
Returns:
int
Throws:
ComparisonImpossibleException

toExternalForm

public String toExternalForm()
Return the external form of this Identifier.

Specified by:
toExternalForm in interface Identifier
Returns:
String

equals

public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.

Specified by:
equals in interface Identifier
Parameters:
object -
Returns:
boolean

hashCode

public int hashCode()
Returns a hash code value for the object.

Specified by:
hashCode in interface Identifier
Returns:
int

toString

public String toString()