Public Member Functions | |
void | bindReference (Object key, ClassInfo classInfo) |
ClassInfo | resolve (Object key) |
Protected Member Functions | |
FactoryState (String className, SGStateInfo sgState, String packageName) | |
Package Functions | |
SGStateInfo | getSGStateInfo () |
void | markAsProcessed (Annotated annotated) |
boolean | processed (Annotated annotated) |
boolean | hasBoundProperties () |
void | setBoundProperties (boolean bound) |
boolean | isCreateGroupItem () |
void | setCreateGroupItem (boolean createGroupItem) |
FactoryState | getParent () |
void | setParent (FactoryState parent) |
Package Attributes | |
JClass | jClass = null |
ClassInfo | classInfo = null |
String | packageName = null |
A class used to save State information for the SourceFactory
org.exolab.castor.builder.FactoryState.FactoryState | ( | String | className, | |
SGStateInfo | sgState, | |||
String | packageName | |||
) | [protected] |
void org.exolab.castor.builder.FactoryState.bindReference | ( | Object | key, | |
ClassInfo | classInfo | |||
) |
Adds the given Reference to this ClassInfo resolver
key | the key to bind a reference to | |
classInfo | the ClassInfo which is being referenced |
Implements org.exolab.castor.builder.ClassInfoResolver.
References org.exolab.castor.builder.ClassInfoResolver.bindReference().
FactoryState org.exolab.castor.builder.FactoryState.getParent | ( | ) | [package] |
Returns the parent of this FactoryState. The parent of a factory state is the previous item of the list that contained all the created factory states.
SGStateInfo org.exolab.castor.builder.FactoryState.getSGStateInfo | ( | ) | [package] |
Returns the SGStateInfo
boolean org.exolab.castor.builder.FactoryState.hasBoundProperties | ( | ) | [package] |
Returns true if any bound properties have been found
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
boolean org.exolab.castor.builder.FactoryState.isCreateGroupItem | ( | ) | [package] |
Returns true if we are currently in the state of creating a group item class.
void org.exolab.castor.builder.FactoryState.markAsProcessed | ( | Annotated | annotated | ) | [package] |
Marks the given Annotated XML Schema structure as having been processed.
annotated | the Annotated XML Schema structure to mark as having been processed. |
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
boolean org.exolab.castor.builder.FactoryState.processed | ( | Annotated | annotated | ) | [package] |
Returns true if the given Annotated XML Schema structure has been marked as processed.
annotated | the Annotated XML Schema structure to check for being marked as processed |
References org.exolab.castor.builder.FactoryState.processed().
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode(), and org.exolab.castor.builder.FactoryState.processed().
ClassInfo org.exolab.castor.builder.FactoryState.resolve | ( | Object | key | ) |
Returns the ClassInfo which has been bound to the given key
key | the object to which the ClassInfo has been bound |
Implements org.exolab.castor.builder.ClassInfoResolver.
References org.exolab.castor.builder.ClassInfoResolver.resolve().
void org.exolab.castor.builder.FactoryState.setBoundProperties | ( | boolean | bound | ) | [package] |
Allows setting the bound properties flag
bound | the new value of the bound properties flag |
void org.exolab.castor.builder.FactoryState.setCreateGroupItem | ( | boolean | createGroupItem | ) | [package] |
Sets to true if we are currently generating a class to represent items in a group.
createGroupItem | true if we are currently generating a class to represent items in a group. |
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
void org.exolab.castor.builder.FactoryState.setParent | ( | FactoryState | parent | ) | [package] |
Sets the parent of this FactoryState
parent | the parent FactoryState |
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
ClassInfo org.exolab.castor.builder.FactoryState.classInfo = null [package] |
JClass org.exolab.castor.builder.FactoryState.jClass = null [package] |
String org.exolab.castor.builder.FactoryState.packageName = null [package] |