org.exolab.castor.builder
Class FactoryState
java.lang.Object
org.exolab.castor.builder.FactoryState
- ClassInfoResolver
(package private) class FactoryState
extends java.lang.Object
A class used to save State information for the SourceFactory
void | bindReference(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(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
|
classInfo
(package private) ClassInfo classInfo
jClass
(package private) JClass jClass
packageName
(package private) String packageName
FactoryState
protected FactoryState(String className,
SGStateInfo sgState,
String packageName)
Creates a new FactoryState
bindReference
public void bindReference(Object key,
ClassInfo classInfo)
Adds the given Reference to this ClassInfo resolver
- bindReference in interface ClassInfoResolver
key
- the key to bind a reference toclassInfo
- the ClassInfo which is being referenced
getParent
(package private) FactoryState getParent()
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.
- the parent of this FactoryState.
getSGStateInfo
(package private) SGStateInfo getSGStateInfo()
Returns the SGStateInfo
hasBoundProperties
(package private) boolean hasBoundProperties()
Returns true if any bound properties have been found
- true if any bound properties have been found
isCreateGroupItem
(package private) boolean isCreateGroupItem()
Returns true if we are currently in the state of
creating a group item class.
- true if we are currently in the state of
creating a group item class.
markAsProcessed
(package private) void markAsProcessed(Annotated annotated)
Marks the given Annotated XML Schema structure as having been processed.
annotated
- the Annotated XML Schema structure to mark as having
been processed.
processed
(package private) boolean processed(Annotated annotated)
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
resolve
public ClassInfo resolve(Object key)
Returns the ClassInfo which has been bound to the given key
- resolve in interface ClassInfoResolver
key
- the object to which the ClassInfo has been bound
- the ClassInfo which has been bound to the given key
setBoundProperties
(package private) void setBoundProperties(boolean bound)
Allows setting the bound properties flag
bound
- the new value of the bound properties flag
setCreateGroupItem
(package private) void setCreateGroupItem(boolean createGroupItem)
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.
setParent
(package private) void setParent(FactoryState parent)
Sets the parent of this FactoryState
parent
- the parent FactoryState
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com