Class ChildInstance
java.lang.Object
com.aquima.interactions.metamodel.impl.InstanceReference
com.aquima.interactions.metamodel.impl.ChildInstance
- All Implemented Interfaces:
IInstanceReference
,Serializable
Instance reference that hold the instance definition it refers to.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the entity type of the instance this reference refers to.This method returns the instance definition of the instance that this reference refers to.This method returns the name of the instance this reference refers to.boolean
This method can be used to determine if this reference is a direct reference.boolean
This method can be used to determine if this reference is a named reference.Methods inherited from class com.aquima.interactions.metamodel.impl.InstanceReference
add, getNext, hasNext, toArray
-
Constructor Details
-
ChildInstance
-
-
Method Details
-
isDirectReference
public boolean isDirectReference()Description copied from interface:IInstanceReference
This method can be used to determine if this reference is a direct reference. A reference is either a named reference or a direct reference, so either this method will return true or the isNamedReference method will return true, but never both.- Returns:
- true when the reference contains the definition of the instance it refers to.
-
isNamedReference
public boolean isNamedReference()Description copied from interface:IInstanceReference
This method can be used to determine if this reference is a named reference. A reference is either a named reference or a direct reference, so either this method will return true or the isDirectReference method will return true, but never both.- Returns:
- true when the reference refers to the definition by name and type.
-
getEntityName
Description copied from interface:IInstanceReference
This method returns the entity type of the instance this reference refers to. This method is only applicable for named references. For a direct reference, this method will return a null value.- Returns:
- The type of the instance that is referred to.
-
getInstanceName
Description copied from interface:IInstanceReference
This method returns the name of the instance this reference refers to. This method is only applicable for named references. For a direct reference, this method will return a null value.- Returns:
- The name of the instance that is referred to.
-
getInstanceDefinition
Description copied from interface:IInstanceReference
This method returns the instance definition of the instance that this reference refers to. This method is only applicable for direct references. For a named reference, this method will return a null value.- Returns:
- The instance definition of the instance this reference refers.
-