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) |
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.
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 | ) |
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 | |||
) |
References org.exolab.castor.builder.FieldInfo.setBound().
Referenced by org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.MemberFactory.createFieldInfoForAny(), org.exolab.castor.builder.MemberFactory.createFieldInfoForContent(), and org.exolab.castor.builder.SourceFactory.createSourceCode().
IdentityInfo org.exolab.castor.builder.FieldInfoFactory.createIdentity | ( | String | name | ) |
References org.exolab.castor.builder.FieldInfo.setBound().
Referenced by org.exolab.castor.builder.MemberFactory.createFieldInfo().
void org.exolab.castor.builder.FieldInfoFactory.setBoundProperties | ( | boolean | bound | ) |
Sets whether or not the fields should be bound properties
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
extraMethods | a boolean that when true indicates that extra collection accessor methods should be created. False by default. |
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.
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. |
Referenced by org.exolab.castor.builder.MemberFactory.MemberFactory(), and org.exolab.castor.builder.SourceFactory.setReferenceMethodSuffix().