wt.step.processor.stepParser
Class StepData

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

public class StepData
extends Object

A model of the data in a STEP/Part21 file to the level of individual StepEntities, but not linked/validated to a particular Express Schema.


Field Summary
private  Hashtable _entityBags
           
private  Hashtable _idMapping
           
private static STEPParser _parser
           
 
Constructor Summary
StepData(InputStream stream)
           
StepData(String definitionFilename)
           
 
Method Summary
 void addEntity(Integer entityId, String name, Vector attributes)
          Adds an entity to the collection of step data so that 'same type' entities are grouped together and entity references can be resolved on demand.
 void dump()
           
 Vector getAllEntitiesOfType(String typeName)
          Gets a Vector of all Entities of the given type.
 Enumeration getEntityTypeCollections()
          Returns an iterator over the collection of all entity types found in the STEP file.
 Enumeration getEntityTypeNames()
          Returns an enumeration over the type names of the StepEntitys read from the STEP file.
 StepEntity getEntityWithId(Integer id)
           
private  void loadData(InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_entityBags

private Hashtable _entityBags

_idMapping

private Hashtable _idMapping

_parser

private static STEPParser _parser
Constructor Detail

StepData

public StepData(String definitionFilename)
         throws FileNotFoundException,
                ParseException

StepData

public StepData(InputStream stream)
         throws ParseException
Method Detail

loadData

private void loadData(InputStream stream)
               throws ParseException
Throws:
ParseException

dump

public void dump()

addEntity

public void addEntity(Integer entityId,
                      String name,
                      Vector attributes)
Adds an entity to the collection of step data so that 'same type' entities are grouped together and entity references can be resolved on demand.


getEntityWithId

public StepEntity getEntityWithId(Integer id)

getAllEntitiesOfType

public Vector getAllEntitiesOfType(String typeName)
Gets a Vector of all Entities of the given type. All Entity references within the returned Entities are resolved to their actual StepEntity objects.


getEntityTypeCollections

public Enumeration getEntityTypeCollections()
Returns an iterator over the collection of all entity types found in the STEP file. Each element of the iteration is a Vector of StepEntitys.
The corresponding sequence of type names can be retrieved using getEntityTypeNames().


getEntityTypeNames

public Enumeration getEntityTypeNames()
Returns an enumeration over the type names of the StepEntitys read from the STEP file.