Public Member Functions | Protected Member Functions | Package Functions | Package Attributes

org.exolab.castor.builder.FactoryState Class Reference

Inheritance diagram for org.exolab.castor.builder.FactoryState:
org.exolab.castor.builder.ClassInfoResolver

List of all members.

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

Detailed Description

A class used to save State information for the SourceFactory

Author:
Keith Visco

Constructor & Destructor Documentation


Member Function Documentation

void org.exolab.castor.builder.FactoryState.bindReference ( Object  key,
ClassInfo  classInfo 
)

Adds the given Reference to this ClassInfo resolver

Parameters:
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.

Returns:
the parent of this FactoryState.
SGStateInfo org.exolab.castor.builder.FactoryState.getSGStateInfo (  )  [package]

Returns the SGStateInfo

Returns:
the SGStateInfo
boolean org.exolab.castor.builder.FactoryState.hasBoundProperties (  )  [package]

Returns true if any bound properties have been found

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.

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.

Parameters:
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.

Parameters:
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

Parameters:
key the object to which the ClassInfo has been bound
Returns:
the ClassInfo which has been bound to the given key

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

Parameters:
bound the new value of the bound properties flag
See also:
hasBoundProperties
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.

Parameters:
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

Parameters:
parent the parent FactoryState
See also:
getParent

Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties