|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjsdai.lang.SdaiCommon
jsdai.lang.InverseEntity
jsdai.lang.CEntity
jsdai.lang.DataType
jsdai.lang.CEntityDefinition
It is a supertype of the class CEntity_definition contained in the
jsdai.dictionary package. This class is designed primarily
to hold some non-public data fields and a number of non-public methods
mainly used for processing of values of these fields and for creation of the
data dictionary during opening of the session. Also, the public methods
isSubtypeOf and
isDomainEquivalentWith defined in
"ISO 10303-22: Product data representation and exchange: Standard data access interface"
and additional public methods
getExplicit_attributes and
testExplicit_attributes,
which are not a part of the standard, are implemented here.
| Field Summary |
| Fields inherited from interface jsdai.lang.EEntity |
MANDATORY_ATTRIBUTES_SET, MOST_SPECIFC_ENTITY, NO_RESTRICTIONS |
| Method Summary | |
jsdai.dictionary.AExplicit_attribute |
getExplicit_attributes(jsdai.dictionary.EEntity_definition type)
Returns a read-only aggregate containing all explicit attributes of the specified entity data type (but not of its subtypes). |
boolean |
isDomainEquivalentWith(jsdai.dictionary.EEntity_definition compType)
Checks if the entity data type, specified by this entity definition, is domain equivalent with another entity type. |
boolean |
isSubtypeOf(jsdai.dictionary.EEntity_definition compType)
Checks if the entity data type, specified by this entity definition, is a subtype of another entity type. |
boolean |
isValidFor(java.lang.Class schema)
Checks if the entity data type, specified by this entity definition, is within the context of the specified schema. |
boolean |
isValidFor(jsdai.dictionary.ESchema_definition schema)
Checks if the entity data type, specified by this entity definition, is within the context of the specified schema. |
boolean |
testExplicit_attributes(jsdai.dictionary.EEntity_definition type)
Returns true for each available entity data type.
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jsdai.dictionary.EEntity_definition |
getAbstract_entity, getAttributes, getComplex, getConnotational_subtype, getGlobal_rules, getIndependent, getInstantiable, getSupertypes, getUniqueness_rules, setAbstract_entity, setComplex, setConnotational_subtype, setIndependent, setInstantiable, testAbstract_entity, testComplex, testConnotational_subtype, testIndependent, testInstantiable, testSupertypes, unsetAbstract_entity, unsetComplex, unsetConnotational_subtype, unsetIndependent, unsetInstantiable |
| Methods inherited from interface jsdai.dictionary.EEntity_or_view_definition |
createGeneric_supertypes, getGeneric_supertypes, testGeneric_supertypes, unsetGeneric_supertypes |
| Methods inherited from interface jsdai.dictionary.ENamed_type |
getShort_name, getWhere_rules, setShort_name, testShort_name, unsetShort_name |
| Methods inherited from interface jsdai.dictionary.EData_type |
getName, setName, testName, unsetName |
| Methods inherited from interface jsdai.lang.SdaiEventSource |
addSdaiListener, removeSdaiListener |
| Method Detail |
public boolean isSubtypeOf(jsdai.dictionary.EEntity_definition compType)
throws SdaiException
EntityDefinitionSdaiException
ED_NDEF is thrown.
Example:
EVector vect = ...;
ERepresentation_item item = ...;
EEntity_definition def_vect = vect.getInstanceType();
EEntity_definition def_item = item.getInstanceType();
boolean is_vect_subtype_of_item = def_vect.isSubtypeOf(def_item);
isSubtypeOf in interface EntityDefinitioncompType - the given type (instance of EEntity_definition).
true if this entity data type is a subtype of the
given type; false, otherwise.
SdaiException - SY_ERR, underlying system error.
public boolean isDomainEquivalentWith(jsdai.dictionary.EEntity_definition compType)
throws SdaiException
EntityDefinitionSdaiException FN_NAVL will be thrown if this method is invoked.
isDomainEquivalentWith in interface EntityDefinitioncompType - the given type (instance of EEntity_definition).
true if this entity data type is domain equivalent with
the given type; false, otherwise.
SdaiException - FN_NAVL, function not available.
public final jsdai.dictionary.AExplicit_attribute getExplicit_attributes(jsdai.dictionary.EEntity_definition type)
throws SdaiException
EntityDefinitionExample:
EVector vect = ...;
EEntity_definition def_vect = vect.getInstanceType();
AExplicit_attribute attributes = def_vect.getExplicit_attributes(null);
getExplicit_attributes in interface EntityDefinitiontype - definition of the entity of which explicit attributes are required.
SdaiException - SY_ERR, underlying system error.
public final boolean testExplicit_attributes(jsdai.dictionary.EEntity_definition type)
throws SdaiException
EntityDefinitiontrue for each available entity data type.
This method is included just to keep compatibility of applications written for
an older version of JSDAI, in which this method was assigned to
EEntity_definition class of jsdai.dictionary package.
testExplicit_attributes in interface EntityDefinitiontype - definition the aggregate of explicit attributes of which is tested.
true value always.
SdaiException
public boolean isValidFor(jsdai.dictionary.ESchema_definition schema)
throws SdaiException
EntityDefinitionSdaiModels whose underlying schema is the schema for
which this method has been executed. If the answer is negative, then
creation of such instances in such SdaiModels will result in
throwing SdaiException ED_NVLD.
Example:
SdaiModel mod_xim = repo.createSdaiModel("mod_xim",
SAp210_electronic_assembly_interconnect_and_packaging_design_xim.class);
SdaiModel mod_kin = repo.createSdaiModel("mod_kin", SKinematic_structure_schema.class);
EEntity_definition edef = mod_kin.getUnderlyingSchema().getEntityDefinition("gear_pair");
boolean valid = edef.isValidFor(mod_xim.getUnderlyingSchema());
isValidFor in interface EntityDefinitionschema - the given schema definition.
true if this entity data type is within the context of the
schema; false, otherwise.
SdaiException - SY_ERR, underlying system error.isValidFor(Class)
public boolean isValidFor(java.lang.Class schema)
throws SdaiException
EntityDefinitionSdaiModels whose underlying schema is the schema for
which this method has been executed. If the answer is negative, then
creation of such instances in such SdaiModels will result in
throwing SdaiException ED_NVLD.
Example:
SdaiModel mod_kin = repo.createSdaiModel("mod_kin", SKinematic_structure_schema.class);
EEntity_definition edef = mod_kin.getUnderlyingSchema().getEntityDefinition("gear_pair");
boolean valid = edef.isValidFor(SAp210_electronic_assembly_interconnect_and_packaging_design_xim.class);
isValidFor in interface EntityDefinitionschema - the given schema.
true if this entity data type is within the context of the
schema; false, otherwise.
SdaiException - SY_ERR, underlying system error.isValidFor(ESchema_definition)
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||