Public Member Functions

org.exolab.castor.builder.FieldInfoFactory Class Reference

List of all members.

Public Member Functions

 FieldInfoFactory ()
 FieldInfoFactory (String collectionName)
IdentityInfo createIdentity (String name)
CollectionInfo createCollection (XSType contentType, String name, String elementName)
CollectionInfo createCollection (XSType contentType, String name, String elementName, String collectionName)
FieldInfo createFieldInfo (XSType type, String name)
void setBoundProperties (boolean bound)
void setCreateExtraMethods (boolean extraMethods)
void setReferenceMethodSuffix (String suffix)

Detailed Description

This class is used as a factory to create all the FieldInfo objects used by the source generator. You may override the FieldInfo classes and this factory for specific adaptions.

Author:
Frank Thelen
Arnaud Blandin
Version:
Revision:
1.3
Date:
2003/09/12 08:22:50

Constructor & Destructor Documentation

org.exolab.castor.builder.FieldInfoFactory.FieldInfoFactory (  ) 

Creates a new FieldInfoFactory. The default collection used will be Java 1 type.

org.exolab.castor.builder.FieldInfoFactory.FieldInfoFactory ( String  collectionName  ) 

Member Function Documentation

CollectionInfo org.exolab.castor.builder.FieldInfoFactory.createCollection ( XSType  contentType,
String  name,
String  elementName 
)
CollectionInfo org.exolab.castor.builder.FieldInfoFactory.createCollection ( XSType  contentType,
String  name,
String  elementName,
String  collectionName 
)
FieldInfo org.exolab.castor.builder.FieldInfoFactory.createFieldInfo ( XSType  type,
String  name 
)
IdentityInfo org.exolab.castor.builder.FieldInfoFactory.createIdentity ( String  name  ) 
void org.exolab.castor.builder.FieldInfoFactory.setBoundProperties ( boolean  bound  ) 

Sets whether or not the fields should be bound properties

Parameters:
bound a boolean that when true indicates the FieldInfo should have the bound property enabled.

Referenced by org.exolab.castor.builder.MemberFactory.MemberFactory().

void org.exolab.castor.builder.FieldInfoFactory.setCreateExtraMethods ( boolean  extraMethods  ) 

Sets whether or not to create extra collection methods for accessing the actual collection

Parameters:
extraMethods a boolean that when true indicates that extra collection accessor methods should be created. False by default.
See also:
setReferenceMethodSuffix

Referenced by org.exolab.castor.builder.MemberFactory.MemberFactory(), and org.exolab.castor.builder.SourceFactory.setCreateExtraMethods().

void org.exolab.castor.builder.FieldInfoFactory.setReferenceMethodSuffix ( String  suffix  ) 

Sets the method suffix (ending) to use when creating the extra collection methods.

Parameters:
suffix the method suffix to use when creating the extra collection methods. If null or emtpty the default value, as specified in CollectionInfo will be used.
See also:
setCreateExtraMethods

Referenced by org.exolab.castor.builder.MemberFactory.MemberFactory(), and org.exolab.castor.builder.SourceFactory.setReferenceMethodSuffix().


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