|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.FactoryState
class FactoryState
A class used to save State information for the SourceFactory
Field Summary | |
---|---|
(package private) ClassInfo |
classInfo
|
(package private) FieldInfo |
fieldInfoForChoice
|
(package private) JClass |
jClass
|
(package private) java.lang.String |
packageName
|
Constructor Summary | |
---|---|
protected |
FactoryState(java.lang.String className,
SGStateInfo sgState,
java.lang.String packageName)
Creates a new FactoryState |
Method Summary | |
---|---|
void |
bindReference(java.lang.Object key,
ClassInfo classInfo)
Adds the given Reference to this ClassInfo resolver |
(package private) FactoryState |
getParent()
Returns the parent of this FactoryState. |
(package private) SGStateInfo |
getSGStateInfo()
Returns the SGStateInfo |
(package private) boolean |
hasBoundProperties()
Returns true if any bound properties have been found |
(package private) boolean |
isCreateGroupItem()
Returns true if we are currently in the state of creating a group item class. |
(package private) void |
markAsProcessed(Annotated annotated)
Marks the given Annotated XML Schema structure as having been processed. |
(package private) boolean |
processed(Annotated annotated)
Returns true if the given Annotated XML Schema structure has been marked as processed. |
ClassInfo |
resolve(java.lang.Object key)
Returns the ClassInfo which has been bound to the given key |
(package private) void |
setBoundProperties(boolean bound)
Allows setting the bound properties flag |
(package private) void |
setCreateGroupItem(boolean createGroupItem)
Sets to true if we are currently generating a class to represent items in a group. |
(package private) void |
setParent(FactoryState parent)
Sets the parent of this FactoryState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
JClass jClass
ClassInfo classInfo
FieldInfo fieldInfoForChoice
java.lang.String packageName
Constructor Detail |
---|
protected FactoryState(java.lang.String className, SGStateInfo sgState, java.lang.String packageName)
Method Detail |
---|
public void bindReference(java.lang.Object key, ClassInfo classInfo)
bindReference
in interface ClassInfoResolver
key
- the key to bind a reference toclassInfo
- the ClassInfo which is being referencedSGStateInfo getSGStateInfo()
void markAsProcessed(Annotated annotated)
annotated
- the Annotated XML Schema structure to mark as having
been processed.boolean processed(Annotated annotated)
annotated
- the Annotated XML Schema structure to check for being marked as processedboolean hasBoundProperties()
void setBoundProperties(boolean bound)
bound
- the new value of the bound properties flaghasBoundProperties()
public ClassInfo resolve(java.lang.Object key)
resolve
in interface ClassInfoResolver
key
- the object to which the ClassInfo has been bound
boolean isCreateGroupItem()
void setCreateGroupItem(boolean createGroupItem)
createGroupItem
- true if we are currently generating a class
to represent items in a group.FactoryState getParent()
void setParent(FactoryState parent)
parent
- the parent FactoryStategetParent()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |