|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.step.processor.expressParser.EntityDefinition
The definition information for a single Entity in the ExpressSchema.
Note: There is an assumption in the attribute definitions that any
attribute generated in the IDL because of an association begins
with 'the__'.
Nested Class Summary | |
class |
EntityDefinition.AttributeDefinition
|
private class |
EntityDefinition.AttributesEnumeration
|
(package private) class |
EntityDefinition.IndexHolder
|
Field Summary | |
private Hashtable |
_attributeIndexCache
|
private Vector |
_attributeNames
Attributes declared in this entity (not inherited) |
private Vector |
_attributeTypes
|
private Vector |
_entityLinkTypes
|
private Vector |
_entityRoleLinkMechanisms
|
private Vector |
_entityRoleNames
|
private String |
_name
|
private Vector |
_subtypeNames
A list of subtype names. |
private Vector |
_typesFlattened
A list of unique subtypes in the flattened hierarchy of subtypes. |
Constructor Summary | |
EntityDefinition(String name)
|
Method Summary | |
void |
addAttribute(String attributeName,
String attributeType)
|
(package private) void |
addEntityLink(Class linkClass)
|
private void |
addMatchingTraversalMechanisms(String roleName,
Vector mechanisms)
|
private void |
addRole(String roleName,
TraversalMechanism mechanism)
|
(package private) boolean |
addRoleLink(String roleName,
TraversalMechanism mechanism,
ExpressSchema schema)
Adds a role link to the entity. |
void |
addSubtype(String subtypeName)
|
private void |
collectUniqueSubTypes(Vector collection,
ExpressSchema schema)
|
void |
dump()
|
private void |
flattenTypeHierarchy(ExpressSchema schema)
|
int |
getAttributeCount()
A count of all the local attributes of this Entity. |
int |
getAttributeIndex(ExpressSchema schema,
String attributeName)
Gets the index of an attribute in this entity as it would appear in a STEP file. |
Enumeration |
getAttributes()
Access all AttributeDefinitions for this Entity. |
Enumeration |
getEntityLinks()
|
int |
getFullAttributeCount(ExpressSchema schema)
A count of all the attributes in this Entity (including inherited). |
String |
getName()
|
Enumeration |
getSubtypes()
|
Vector |
getTraversalMechanismsForRole(ExpressSchema schema,
String roleName)
|
boolean |
hasEntityLink(Class linkClass)
|
boolean |
hasEntityLinks()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String _name
private Vector _subtypeNames
private Vector _typesFlattened
private Vector _attributeNames
private Vector _attributeTypes
private Vector _entityLinkTypes
private Vector _entityRoleNames
private Vector _entityRoleLinkMechanisms
private Hashtable _attributeIndexCache
Constructor Detail |
public EntityDefinition(String name)
Method Detail |
public void addSubtype(String subtypeName)
public void addAttribute(String attributeName, String attributeType)
public String getName()
public Enumeration getSubtypes()
public Enumeration getAttributes()
void addEntityLink(Class linkClass)
boolean addRoleLink(String roleName, TraversalMechanism mechanism, ExpressSchema schema)
private void addRole(String roleName, TraversalMechanism mechanism)
public Vector getTraversalMechanismsForRole(ExpressSchema schema, String roleName) throws TransferException
TransferException
private void addMatchingTraversalMechanisms(String roleName, Vector mechanisms)
private void flattenTypeHierarchy(ExpressSchema schema)
private void collectUniqueSubTypes(Vector collection, ExpressSchema schema)
public boolean hasEntityLinks()
public Enumeration getEntityLinks()
public boolean hasEntityLink(Class linkClass)
public int getAttributeCount()
public int getFullAttributeCount(ExpressSchema schema)
public int getAttributeIndex(ExpressSchema schema, String attributeName)
public void dump()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |