|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.object.IeAssociationIdentifier
Field Summary | |
private static String |
_serialVersion
|
protected AssociationTypeIdentifier |
associationTypeId
|
protected TypeInstanceIdentifier |
contextId
|
private String |
externalForm
|
private int |
hashcode
|
protected InstanceIdentifier |
instanceId
|
private static String |
RESOURCE
|
Fields inherited from interface com.ptc.core.meta.common.TypeInstanceIdentifier |
O_REFERENCE, PERSIST_FORM_SEPARATOR, V_REFERENCE |
Fields inherited from interface com.ptc.core.meta.common.Identifier |
CONTEXT_SEPARATOR, INSTANCE_DATA_SEPARATOR, PROTOCOL_SEPARATOR |
Constructor Summary | |
IeAssociationIdentifier()
default no arg constructor to be used for de-serialization |
|
IeAssociationIdentifier(AssociationTypeIdentifier associationTypeId,
InstanceIdentifier instanceId,
TypeInstanceIdentifier contextId)
|
Method Summary | |
int |
compareFreshness(ElementIdentifier elementId)
The compareFreshness() method computes the "freshness distance" between the two objects (the one the method is applied on and the one provided in parameters). |
AttributeIdentifier |
concatenate(AttributeIdentifier attrId)
Supported API: false |
boolean |
equals(Object object)
Indicates whether some other object is "equal to" this one. |
TypeInstanceIdentifier |
getContext()
Gets the object for the association that plays role: context. |
DefinitionIdentifier |
getDefinitionIdentifier()
Returns the definition identifier of the instance. |
String |
getInstanceDataExternalForm()
Return a string that represents the Instance Data's external form. |
InstanceIdentifier |
getInstanceIdentifier()
Returns the instance identifier of the instance. |
AssociationIdentifier |
getInverse()
Supported API: false |
AssociationIdentifier |
getInverse(AssociationIdentifier context,
AssociationTypeIdentifier definition,
int depth)
Supported API: false |
protected TypeInstanceIdentifier |
getInverseContext(AssociationIdentifier context)
|
String |
getPersistenceIdentifier()
This method will return a simplified external form which represents the persistence information of this TypeInstanceIdentifier. |
TypeInstanceIdentifier |
getRootContext()
Supported API: false |
TypeInstanceIdentifier |
getTail()
Supported API: false |
TypeInstanceIdentifier |
getTrueContext()
Supported API: false |
AttributeIdentifier |
getWithNewContext(TypeInstanceIdentifier context)
Supported API: false |
ElementIdentifier |
getWithNewInstanceIdentifier(InstanceIdentifier instanceId)
Returns a copy of this attribute identifier with a new instance identifier. |
AttributeIdentifier |
getWithTailContext()
Supported API: false |
AttributeIdentifier |
getWithTrimmedContext(AssociationIdentifier context)
Supported API: false |
int |
hashCode()
Returns a hash code value for the object. |
void |
initialize(ElementIdentifier elementId)
|
boolean |
isEquivalentAttributeIdentifier(AttributeIdentifier attrId)
Supported API: false |
boolean |
isEquivalentTypeInstanceIdentifier(TypeInstanceIdentifier typeInstanceId)
Supported API: false |
boolean |
isInitialized()
Returns true when this instance contains an instance identifier. |
boolean |
isInstanceOf(DefinitionIdentifier defnId)
This method will return true when this instance is an instance of a specific definition identifier. |
AttributeIdentifier |
merge(AttributeIdentifier attrId)
Supported API: false |
TypeInstance |
newTypeInstance()
|
void |
readExternal(ObjectInput in)
|
ElementIdentifier |
replace(TypeInstanceIdentifier old_id,
TypeInstanceIdentifier new_id)
Supported API: false |
AssociationIdentifier |
replaceTail(TypeInstanceIdentifier new_tail)
Supported API: true |
String |
toExternalForm()
Return the external form of this Identifier. |
TypeInstanceIdentifier |
trim(AssociationIdentifier context)
Supported API: false |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
protected AssociationTypeIdentifier associationTypeId
protected TypeInstanceIdentifier contextId
protected InstanceIdentifier instanceId
private String externalForm
private int hashcode
private static final String _serialVersion
Constructor Detail |
public IeAssociationIdentifier()
public IeAssociationIdentifier(AssociationTypeIdentifier associationTypeId, InstanceIdentifier instanceId, TypeInstanceIdentifier contextId)
associationTypeId
- instanceId
- contextId
- 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 int compareFreshness(ElementIdentifier elementId) throws ComparisonImpossibleException
compareFreshness
in interface ElementIdentifier
elementId
-
ComparisonImpossibleException
public AttributeIdentifier concatenate(AttributeIdentifier attrId) throws IllegalFormatException
AssociationIdentifier
concatenate
in interface AssociationIdentifier
attrId
-
IllegalFormatException
public AssociationIdentifier getInverse()
AssociationIdentifier
getInverse
in interface AssociationIdentifier
public AssociationIdentifier getInverse(AssociationIdentifier context, AssociationTypeIdentifier definition, int depth)
AssociationIdentifier
getInverse
in interface AssociationIdentifier
context
- definition
- depth
-
public TypeInstanceIdentifier getTrueContext()
AssociationIdentifier
getTrueContext
in interface AssociationIdentifier
public AttributeIdentifier getWithNewContext(TypeInstanceIdentifier context)
AttributeIdentifier
getWithNewContext
in interface AttributeIdentifier
context
-
public AttributeIdentifier getWithTrimmedContext(AssociationIdentifier context)
AttributeIdentifier
getWithTrimmedContext
in interface AttributeIdentifier
context
-
public void initialize(ElementIdentifier elementId)
elementId
- public ElementIdentifier getWithNewInstanceIdentifier(InstanceIdentifier instanceId)
getWithNewInstanceIdentifier
in interface ElementIdentifier
instanceId
- The new instance identifier.
public boolean isEquivalentAttributeIdentifier(AttributeIdentifier attrId)
AttributeIdentifier
isEquivalentAttributeIdentifier
in interface AttributeIdentifier
attrId
-
public boolean isEquivalentTypeInstanceIdentifier(TypeInstanceIdentifier typeInstanceId)
TypeInstanceIdentifier
isEquivalentTypeInstanceIdentifier
in interface TypeInstanceIdentifier
typeInstanceId
-
public AttributeIdentifier merge(AttributeIdentifier attrId) throws IllegalFormatException
AssociationIdentifier
merge
in interface AssociationIdentifier
attrId
-
IllegalFormatException
public TypeInstance newTypeInstance()
public TypeInstanceIdentifier trim(AssociationIdentifier context)
AssociationIdentifier
trim
in interface AssociationIdentifier
context
-
protected TypeInstanceIdentifier getInverseContext(AssociationIdentifier context)
context
-
public String getPersistenceIdentifier()
getPersistenceIdentifier
in interface TypeInstanceIdentifier
public TypeInstanceIdentifier getContext()
getContext
in interface AttributeIdentifier
public DefinitionIdentifier getDefinitionIdentifier()
getDefinitionIdentifier
in interface ElementIdentifier
public InstanceIdentifier getInstanceIdentifier()
getInstanceIdentifier
in interface ElementIdentifier
public boolean isInitialized()
isInitialized
in interface ElementIdentifier
public boolean isInstanceOf(DefinitionIdentifier defnId)
isInstanceOf
in interface ElementIdentifier
defnId
-
public boolean equals(Object object)
Identifier
equals
in interface Identifier
public String getInstanceDataExternalForm()
getInstanceDataExternalForm
in interface ElementIdentifier
public String toExternalForm()
Identifier
toExternalForm
in interface Identifier
public int hashCode()
Identifier
hashCode
in interface Identifier
public TypeInstanceIdentifier getRootContext()
AttributeIdentifier
getRootContext
in interface AttributeIdentifier
public AttributeIdentifier getWithTailContext()
AttributeIdentifier
getWithTailContext
in interface AttributeIdentifier
public ElementIdentifier replace(TypeInstanceIdentifier old_id, TypeInstanceIdentifier new_id) throws IllegalFormatException
AttributeIdentifier
replace
in interface AttributeIdentifier
old_id
- new_id
-
IllegalFormatException
public TypeInstanceIdentifier getTail()
AssociationIdentifier
getTail
in interface AssociationIdentifier
public AssociationIdentifier replaceTail(TypeInstanceIdentifier new_tail)
AssociationIdentifier
replaceTail
in interface AssociationIdentifier
new_tail
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |