|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.step.schemaGenerator.EntityDefinition
A Schema Entity definition holding information on subtypes and attributes.
Field Summary | |
private Vector |
_attributes
|
private String |
_name
|
private Vector |
_subtypes
|
private static int |
ROLE_CARDINALITY_ONE_TO_MANY
|
Constructor Summary | |
|
EntityDefinition(ClassInfo introspectionInfo,
Schema parentSchema)
Builds an Entity definition using introspection |
(package private) |
EntityDefinition(String entityName)
|
Method Summary | |
(package private) void |
addAttribute(String name,
String type)
|
private void |
addAttributes(ClassInfo introspectionInfo,
Schema parentSchema)
|
(package private) void |
addSubtype(String subtypeName)
|
private void |
addSubTypes(ClassInfo introspectionInfo,
Schema parentSchema)
|
(package private) void |
collectAttributes(Hashtable attributesHolder,
Schema schema)
Collect all the attributes for this Entity and any of its sub-Entities |
private void |
collectSubAttributes(Hashtable attributesHolder,
Schema schema)
Collect all the attributes for this Entity and any of its sub-Entities |
protected Vector |
getAttributes()
|
private String |
getExpressNameFor(ClassInfo introspectionInfo)
|
private String |
getExpressNameForField(String fieldName)
|
private String |
getExpressNameForType(Class type)
|
(package private) String |
getName()
|
protected Vector |
getSubTypes()
|
private boolean |
isNativeType(Class typeClass)
|
private boolean |
isPublicDeclaredProperty(PropertyDescriptor property)
|
(package private) void |
markInheritedAttributes(Schema schema)
|
(package private) void |
removeAttributeNameClashes(Schema schema)
Many attributes are repeated in subclasses. |
void |
writeExpress(PrintStream outStream)
Write this Entity in Express to the given print stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Vector _attributes
private Vector _subtypes
private String _name
private static final int ROLE_CARDINALITY_ONE_TO_MANY
Constructor Detail |
EntityDefinition(String entityName)
public EntityDefinition(ClassInfo introspectionInfo, Schema parentSchema) throws WTIntrospectionException
Method Detail |
private void addSubTypes(ClassInfo introspectionInfo, Schema parentSchema) throws WTIntrospectionException
WTIntrospectionException
private void addAttributes(ClassInfo introspectionInfo, Schema parentSchema) throws WTIntrospectionException
WTIntrospectionException
private boolean isNativeType(Class typeClass)
private boolean isPublicDeclaredProperty(PropertyDescriptor property)
private String getExpressNameForField(String fieldName)
private String getExpressNameForType(Class type)
private String getExpressNameFor(ClassInfo introspectionInfo)
String getName()
void addSubtype(String subtypeName)
void addAttribute(String name, String type)
void removeAttributeNameClashes(Schema schema)
void markInheritedAttributes(Schema schema)
private void collectSubAttributes(Hashtable attributesHolder, Schema schema)
void collectAttributes(Hashtable attributesHolder, Schema schema)
protected Vector getSubTypes()
protected Vector getAttributes()
public void writeExpress(PrintStream outStream)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |