|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.step.schemaGenerator.Schema
A schema constructed by parsing IDL files
Field Summary | |
private Vector |
_entities
|
private Hashtable |
_entitiesTable
|
private EntityDefinition |
_latestEntity
|
private String |
_name
|
private static Object |
_TYPE_DEFINED
|
private static Object |
_TYPE_USED
|
private Vector |
_types
|
private Hashtable |
_typeUsageTable
|
Constructor Summary | |
(package private) |
Schema(String name)
|
Method Summary | |
(package private) void |
addEntity(EntityDefinition entity)
|
(package private) void |
addEntity(String entityName)
Add an ENTITY definition to the schema |
(package private) void |
addEntityAttribute(EntityDefinition entity,
String name,
String type,
boolean nativeType)
|
(package private) void |
addEntitySubtype(EntityDefinition entity,
String subtype)
|
(package private) void |
addLatestEntityAttribute(String name,
String type,
boolean nativeType)
Add an atttribute to the latest Entity that was added. |
(package private) void |
addLatestEntitySubtype(String subtype)
Add a subtype to the latest Entity that was added |
(package private) void |
addType(String name,
String definition)
Add a TYPE definition to the schema |
(package private) void |
collectEntityAttributes(String entityName,
Hashtable attributesHolder)
Collect all the inherited attributes for each entity. |
protected Enumeration |
getDefinedEntities()
|
protected Enumeration |
getDefinedTypes()
|
protected String |
getFilename()
|
protected boolean |
isDefinedType(String typeName)
|
(package private) void |
markInheritedAttributes()
For each Entity in the schema mark any inherited attributes Note: This should be called after removeAttributeNameClashes as names may be changed by that routine. |
private void |
recordTypeDefinition(String typename)
Record a type definition so that undefined (but referenced) types can be found. |
private void |
recordTypeUsage(String typename)
Records the usage of a type so that undefined references can later be stubbed to ensure that the generated schema is fully consistent. |
(package private) void |
removeAttributeNameClashes()
For each Entity in the schema remove any attribute name clashes |
(package private) void |
writeExpress(PrintStream outStream)
Write the entire schema to the given print stream in the Express language. |
void |
writeUndefinedTypes(PrintStream outStream)
Write stubs for types that have been referenced but not defined. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Hashtable _typeUsageTable
private static final Object _TYPE_DEFINED
private static final Object _TYPE_USED
private String _name
private Vector _types
private Vector _entities
private Hashtable _entitiesTable
private EntityDefinition _latestEntity
Constructor Detail |
Schema(String name)
Method Detail |
protected String getFilename()
void addType(String name, String definition)
void addEntity(String entityName)
void addEntity(EntityDefinition entity)
void addLatestEntityAttribute(String name, String type, boolean nativeType)
void addEntityAttribute(EntityDefinition entity, String name, String type, boolean nativeType)
void addLatestEntitySubtype(String subtype)
void addEntitySubtype(EntityDefinition entity, String subtype)
void removeAttributeNameClashes()
wt.step.schemaGenerator.EntityDefinition.removeAttributeNameClashes
void markInheritedAttributes()
wt.step.schemaGenerator.EntityDefinition.markInheritedAttributes
void collectEntityAttributes(String entityName, Hashtable attributesHolder)
void writeExpress(PrintStream outStream)
protected Enumeration getDefinedEntities()
protected Enumeration getDefinedTypes()
private void recordTypeUsage(String typename)
private void recordTypeDefinition(String typename)
protected boolean isDefinedType(String typeName)
public void writeUndefinedTypes(PrintStream outStream)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |