wt.step.processor.expressParser
Class ExpressSchema

java.lang.Object
  extended bywt.step.processor.expressParser.ExpressSchema

public class ExpressSchema
extends Object

A model of an Express Schema loaded from a definition file.


Field Summary
private  Hashtable _allEntities
           
private  Hashtable _allTypes
           
private  String _name
           
private  EntityDefinition _theLastestEntity
           
 
Constructor Summary
ExpressSchema(InputStream stream)
           
ExpressSchema(String definitionFilename)
           
 
Method Summary
 void addAttributeToLatestEntity(String attributeName, String attributeType)
           
 void addEntity(String entityName)
           
private  void addLinkType(Class linkClass, RoleDescriptor role)
           
 void addSubtypeToLatestEntity(String subtypeName)
           
 void addType(String alias, String actual)
           
 void applyLinkTypes(Properties exportScope)
           
 void dump()
           
 EntityDefinition getEntityDefinition(String entityName)
           
 Enumeration getEntityIterator()
           
 String getListContentTypeName(String listTypeName)
          Takes the alias name for the list type and cuts 'LIST [0:?] OF' off the start of the actual type name to return the content type name.
 String getName()
           
 TypeDefinition getTypeDefinition(String typeName)
           
 boolean isListType(String listTypeName)
           
private  void loadSchema(InputStream stream)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

private String _name

_allEntities

private Hashtable _allEntities

_allTypes

private Hashtable _allTypes

_theLastestEntity

private EntityDefinition _theLastestEntity
Constructor Detail

ExpressSchema

public ExpressSchema(String definitionFilename)
              throws FileNotFoundException,
                     ParseException

ExpressSchema

public ExpressSchema(InputStream stream)
              throws ParseException
Method Detail

loadSchema

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

dump

public void dump()

setName

public void setName(String name)

getName

public String getName()

addEntity

public void addEntity(String entityName)

getEntityDefinition

public EntityDefinition getEntityDefinition(String entityName)

getTypeDefinition

public TypeDefinition getTypeDefinition(String typeName)

getListContentTypeName

public String getListContentTypeName(String listTypeName)
Takes the alias name for the list type and cuts 'LIST [0:?] OF' off the start of the actual type name to return the content type name.


isListType

public boolean isListType(String listTypeName)
                   throws TransferException
Throws:
TransferException

addType

public void addType(String alias,
                    String actual)

addAttributeToLatestEntity

public void addAttributeToLatestEntity(String attributeName,
                                       String attributeType)

addSubtypeToLatestEntity

public void addSubtypeToLatestEntity(String subtypeName)

getEntityIterator

public Enumeration getEntityIterator()

applyLinkTypes

public void applyLinkTypes(Properties exportScope)
                    throws ClassNotFoundException
Throws:
ClassNotFoundException

addLinkType

private void addLinkType(Class linkClass,
                         RoleDescriptor role)
                  throws ClassNotFoundException,
                         WTIntrospectionException
Throws:
ClassNotFoundException
WTIntrospectionException