org.exolab.castor.builder

Class FieldInfoFactory

public class FieldInfoFactory extends Object

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.

Version: $Revision: 6387 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $

Author: Frank Thelen Arnaud Blandin

Field Summary
static StringARRAY_LIST
static StringODMG
static StringVECTOR
Constructor Summary
FieldInfoFactory()
Creates a new FieldInfoFactory.
FieldInfoFactory(String collectionName)
Method Summary
CollectionInfocreateCollection(XSType contentType, String name, String elementName, boolean usejava50)
CollectionInfocreateCollection(XSType contentType, String name, String elementName, String collectionName, boolean useJava50)
FieldInfocreateFieldInfo(XSType type, String name)
IdentityInfocreateIdentity(String name)
voidsetBoundProperties(boolean bound)
Sets whether or not the fields should be bound properties.
voidsetCreateExtraMethods(boolean extraMethods)
Sets whether or not to create extra collection methods for accessing the actual collection.
voidsetReferenceMethodSuffix(String suffix)
Sets the method suffix (ending) to use when creating the extra collection methods.

Field Detail

ARRAY_LIST

public static final String ARRAY_LIST

ODMG

public static final String ODMG

VECTOR

public static final String VECTOR

Constructor Detail

FieldInfoFactory

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

FieldInfoFactory

public FieldInfoFactory(String collectionName)

Method Detail

createCollection

public CollectionInfo createCollection(XSType contentType, String name, String elementName, boolean usejava50)

createCollection

public CollectionInfo createCollection(XSType contentType, String name, String elementName, String collectionName, boolean useJava50)

createFieldInfo

public FieldInfo createFieldInfo(XSType type, String name)

createIdentity

public IdentityInfo createIdentity(String name)

setBoundProperties

public void 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.

setCreateExtraMethods

public void 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: FieldInfoFactory

setReferenceMethodSuffix

public void 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: FieldInfoFactory

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com