wt.step.processor.stepParser
Class StepEntity

java.lang.Object
  extended bywt.step.processor.stepParser.StepEntity

public class StepEntity
extends Object

A single entity from a STEP/Part21 file.


Field Summary
private  Vector _attributes
          Raw attributes of the Entity
private  boolean _entityReferencesResolved
          Entity references are parsed by Id and resolved to entity references when all Entities have been parsed.
private  int _id
           
private  String _name
          Step entity name
private static String IDENTIFIER_SERIES
           
private static String ITERATION_IDENTIFIER
           
private static String ITERATION_INFO
           
private static String ITERATION_MASTER
           
private static String LINK_ROLE_A_OBJECT
           
private static String LINK_ROLE_B_OBJECT
           
private static String MASTER_NAME
           
private static String MASTER_NUMBER
           
private static String SERIES_VALUE
           
private static String VERSION_IDENTIFIER
           
private static String VERSION_INFO
           
 
Constructor Summary
StepEntity(String entityName, int entityId, Vector attributes)
           
 
Method Summary
 Object getAttribute(String attributeName, ExpressSchema schemaOfEntity, StepData dataForResolvingEntityReferences)
           
 Enumeration getAttributeDefinitions(ExpressSchema schemaOfEntity)
          Access to the EntityDefinition.AttributeDefinition's of all attributes of this entity.
private  Object getAttributeValue(String attributeName, ExpressSchema schemaOfEntity)
           
private  EntityDefinition getEntityDefinition(ExpressSchema schemaOfEntity)
           
 int getId()
           
 String getName()
           
 boolean hasAttributeValue(String attributeName, ExpressSchema schemaOfEntity)
           
 void resolveEntityReferences(StepData stepData)
          Modifies attributes of this Entity by resolving EntityReferences into the StepEntities that they refernce
private  void resolveEntityReferences(Vector vector, StepData stepData)
          Modifies the contents of the Vector to resolve any EntityReferences in it into the StepEntities that they reference.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ITERATION_MASTER

private static final String ITERATION_MASTER
See Also:
Constant Field Values

MASTER_NAME

private static final String MASTER_NAME
See Also:
Constant Field Values

MASTER_NUMBER

private static final String MASTER_NUMBER
See Also:
Constant Field Values

ITERATION_INFO

private static final String ITERATION_INFO
See Also:
Constant Field Values

ITERATION_IDENTIFIER

private static final String ITERATION_IDENTIFIER
See Also:
Constant Field Values

IDENTIFIER_SERIES

private static final String IDENTIFIER_SERIES
See Also:
Constant Field Values

SERIES_VALUE

private static final String SERIES_VALUE
See Also:
Constant Field Values

VERSION_INFO

private static final String VERSION_INFO
See Also:
Constant Field Values

VERSION_IDENTIFIER

private static final String VERSION_IDENTIFIER
See Also:
Constant Field Values

LINK_ROLE_A_OBJECT

private static final String LINK_ROLE_A_OBJECT
See Also:
Constant Field Values

LINK_ROLE_B_OBJECT

private static final String LINK_ROLE_B_OBJECT
See Also:
Constant Field Values

_name

private String _name
Step entity name


_attributes

private Vector _attributes
Raw attributes of the Entity


_entityReferencesResolved

private boolean _entityReferencesResolved
Entity references are parsed by Id and resolved to entity references when all Entities have been parsed.


_id

private int _id
Constructor Detail

StepEntity

public StepEntity(String entityName,
                  int entityId,
                  Vector attributes)
Method Detail

toString

public String toString()

getName

public String getName()

getId

public int getId()

getEntityDefinition

private EntityDefinition getEntityDefinition(ExpressSchema schemaOfEntity)
                                      throws TransferException
Throws:
TransferException

getAttributeValue

private Object getAttributeValue(String attributeName,
                                 ExpressSchema schemaOfEntity)
                          throws TransferException
Throws:
TransferException

hasAttributeValue

public boolean hasAttributeValue(String attributeName,
                                 ExpressSchema schemaOfEntity)
                          throws TransferException
Throws:
TransferException

getAttributeDefinitions

public Enumeration getAttributeDefinitions(ExpressSchema schemaOfEntity)
                                    throws TransferException
Access to the EntityDefinition.AttributeDefinition's of all attributes of this entity.

Throws:
TransferException

getAttribute

public Object getAttribute(String attributeName,
                           ExpressSchema schemaOfEntity,
                           StepData dataForResolvingEntityReferences)
                    throws TransferException
Throws:
TransferException

resolveEntityReferences

public void resolveEntityReferences(StepData stepData)
Modifies attributes of this Entity by resolving EntityReferences into the StepEntities that they refernce


resolveEntityReferences

private void resolveEntityReferences(Vector vector,
                                     StepData stepData)
Modifies the contents of the Vector to resolve any EntityReferences in it into the StepEntities that they reference.