|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is for internal JSDAI use only. Applications shall not use it.
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 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
SdaiException
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);
compType
- the given type (instance of EEntity_definition).
true
if this entity data type is a subtype of the
given type; false
, otherwise.
SdaiException
- ED_NDEF, entity definition not defined.
SdaiException
- SY_ERR, underlying system error.public boolean isDomainEquivalentWith(jsdai.dictionary.EEntity_definition compType) throws SdaiException
SdaiException FN_NAVL will be thrown if this method is invoked.
compType
- 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 jsdai.dictionary.AExplicit_attribute getExplicit_attributes(jsdai.dictionary.EEntity_definition type) throws SdaiException
Example:
EVector vect = ...;
EEntity_definition def_vect = vect.getInstanceType();
AExplicit_attribute attributes = def_vect.getExplicit_attributes(null);
type
- definition of the entity of which explicit attributes are required.
SdaiException
- SY_ERR, underlying system error.public boolean testExplicit_attributes(jsdai.dictionary.EEntity_definition type) throws SdaiException
true
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.
type
- definition the aggregate of explicit attributes of which is tested.
true
value always.
SdaiException
public boolean isValidFor(jsdai.dictionary.ESchema_definition schema) throws SdaiException
SdaiModel
s 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 SdaiModel
s 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());
schema
- the given schema definition.
true
if this entity data type is within the context of the
schema; false
, otherwise.
SdaiException
- SD_NDEF, schema definition not defined.
SdaiException
- SY_ERR, underlying system error.isValidFor(Class)
public boolean isValidFor(java.lang.Class schema) throws SdaiException
SdaiModel
s 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 SdaiModel
s 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);
schema
- the given schema.
true
if this entity data type is within the context of the
schema; false
, otherwise.
SdaiException
- SD_NDEF, schema definition not defined.
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 |