|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdai.lang.SdaiCommon jsdai.lang.EntityExtent
The EntityExtent class groups all entity instances of an SdaiModel
into folders. There is one instance of EntityExtent for each entity data type defined
or declared in the EXPRESS schema whose definition is underlying for the
SdaiModel
of interest. A folder corresponding to an entity data
type, specified by its definition, contains all instances of this entity
data type from the model being an owner of this folder and also all instances
of all its subtypes from the same model.
For details please look at "ISO 10303-22::8.4.3 sdai_model_contents" and
"ISO 10303-22::8.4.4 entity_extent".
Method Summary | |
jsdai.dictionary.EEntity_definition |
getDefinition()
Returns the instance of EEntity_definition in
"SDAI_dictionary_schema", which represents
the type of entity instances contained in this folder.
|
java.lang.String |
getDefinitionString()
Returns the name of EEntity_definition that represents
the type of entity instances contained in this folder.
|
AEntity |
getInstances()
Returns a read-only aggregate containing all instances from this folder. |
SdaiModel |
getOwnedBy()
Returns SdaiModel this EntityExtent belongs to.
|
java.lang.String |
toString()
Returns a String representing this EntityExtent .
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public jsdai.dictionary.EEntity_definition getDefinition() throws SdaiException
EEntity_definition
in
"SDAI_dictionary_schema", which represents
the type of entity instances contained in this folder.
Example:
EntityExtent folder = ...;
EEntity_definition def = folder.getDefinition();
SdaiException
- ED_NVLD, entity definition invalid.getDefinitionString()
public java.lang.String getDefinitionString() throws SdaiException
EEntity_definition
that represents
the type of entity instances contained in this folder.
Example:
EntityExtent folder = ...;
String def_name = folder.getDefinitionString();
SdaiException
- ED_NVLD, entity definition invalid.getDefinition()
public AEntity getInstances() throws SdaiException
EntityExtent
and of all instances of all its subtypes.
The aggregate can be cast to the aggregate specific
for the given entity type.
Example:
EntityExtent folder = ...; // for "cartesian point"
ACartesian_point aggr = (ACartesian_point)folder.getInstances();
EntityExtent
.
SdaiException
- MX_NDEF, SdaiModel access not defined.
SdaiException
- ED_NVLD, entity definition invalid.
SdaiException
- SY_ERR, underlying system error.SdaiModel.getInstances(EEntity_definition type)
public SdaiModel getOwnedBy() throws SdaiException
SdaiModel
this EntityExtent
belongs to.
The entity instances in an EntityExtent
are only available
when model being an owner of this EntityExtent
is either in read-only or read-write access mode.
Example:
EntityExtent folder = ...;
SdaiModel owner = folder.getOwnedBy();
SdaiModel
that contains this EntityExtent
.
SdaiException
- ED_NVLD, entity definition invalid.public java.lang.String toString()
String
representing this EntityExtent
.
This string consists of the name of entity definition represented by
this EntityExtent
and a list of persistent labels of all
instances contained in the folder (as returned by
getInstances
method).
Example:
SdaiModel m = ...;
AEntityExtent pop_folders = m.getPopulatedFolders();
EntityExtent folder = (EntityExtent)pop_folders.getByIndexObject(1);
System.out.println(folder);
The string printed will be like this:
vector: #55,#97,#125,#378
String
representing this EntityExtent
.getInstances()
,
EEntity.getPersistentLabel()
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |