Modifier and Type | Method and Description |
---|---|
EntityInstance |
castTo(Domain supertype)
Gets a view of the object that can be cast to the requested type.
|
int |
getEntityId()
Get the identifier for the instance.
|
EntityInstance |
getFinalObject()
Gets the base object for this instance.
|
EntityDomain |
getLocalDomain()
Gets the domain for the view object.
|
PopulationBase |
getPopulation()
Get the population holding the instance.
|
boolean |
isa(Domain dom)
This method determines if this EntityInstance is an instance of the
specified domain.
|
boolean |
isView()
This function determines if this object is a view, or if it is the
final object.
|
EntityInstanceSet |
usedin(Attribute att)
This method implements an EXPRESS-like USEDIN facility.
|
EntityInstanceSet |
usedin(EntityDomain start,
Attribute att)
This method implements an EXPRESS-like USEDIN facility.
|
EntityInstanceSet |
usedin(EntityInstanceSet scope,
Attribute att)
This method implements an EXPRESS-like USEDIN facility.
|
EntityInstanceSet |
usedin(EntityInstanceSet scope,
EntityDomain start,
Attribute att)
This method implements an EXPRESS-like USEDIN facility.
|
EntityInstance getFinalObject()
You should use this method to obtain a canonical view of an EntityInstance before comparing two objects.
EntityDomain getLocalDomain()
EntityInstance castTo(Domain supertype) throws EntityCastException
supertype
- The domain to cast the current object to.EntityCastException
- If this instance cannot be cast to the
requested typeboolean isa(Domain dom)
true
If this instance can be cast to the
requested type.boolean isView()
EntityInstanceSet usedin(EntityInstanceSet scope, EntityDomain start, Attribute att)
scope
- The set of instances to search for references to this.start
- Further limit the scope of instances.att
- The attribute that is being queried.this
via
the specified attribute.EntityInstanceSet usedin(EntityDomain start, Attribute att)
start
- Further limit the scope of instances.att
- The attribute that is being queried.this
via
the specified attribute.EntityInstanceSet usedin(EntityInstanceSet scope, Attribute att)
scope
- The set of instances to search for references to this.att
- The attribute that is being queried.this
via
the specified attribute.EntityInstanceSet usedin(Attribute att)
att
- The attribute that is being queried.this
via
the specified attribute.int getEntityId()
PopulationBase getPopulation()