|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.step.schemaGenerator.Schema
wt.step.schemaGenerator.IntrospectedSchema
Builds Express Entity information for Windchill model objects using the Windchill Introspection service.
Field Summary | |
private boolean |
_hasBuiltEntities
|
private HashMap |
_modelClassLookupTable
|
private String[] |
_packageExtent
|
private Properties |
_registryClasses
|
Constructor Summary | |
IntrospectedSchema(String name,
String[] packageExtent,
Properties registryClasses)
|
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 |
private void |
buildSchemaEntities()
|
(package private) void |
collectEntityAttributes(String entityName,
Hashtable attributesHolder)
Collect all the inherited attributes for each entity. |
protected ClassInfo |
getClassInfo(String className)
|
protected Enumeration |
getDefinedEntities()
|
protected Enumeration |
getDefinedTypes()
|
protected String |
getFilename()
|
private HashMap |
getModelClassesLookupTable()
|
protected Set |
getSelectedEntityNames(Properties candidateClasses)
|
protected boolean |
isDefinedType(String typeName)
|
protected boolean |
isModelClass(String className)
|
(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. |
(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 HashMap _modelClassLookupTable
private boolean _hasBuiltEntities
private Properties _registryClasses
private String[] _packageExtent
Constructor Detail |
public IntrospectedSchema(String name, String[] packageExtent, Properties registryClasses)
Method Detail |
protected Set getSelectedEntityNames(Properties candidateClasses)
protected Enumeration getDefinedEntities()
getDefinedEntities
in class Schema
protected Enumeration getDefinedTypes()
getDefinedTypes
in class Schema
private void buildSchemaEntities()
protected boolean isModelClass(String className)
protected ClassInfo getClassInfo(String className)
private HashMap getModelClassesLookupTable()
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 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 |