public class FieldInfoFactory extends Object
Constructor and Description |
---|
FieldInfoFactory()
Creates a new
FieldInfoFactory instance. |
FieldInfoFactory(boolean useOldFieldNaming)
Creates a new
FieldInfoFactory instance. |
FieldInfoFactory(String collectionName)
Creates a new
FieldInfoFactory of the given collection type. |
FieldInfoFactory(String collectionName,
boolean useOldFieldNaming)
Creates a new FieldInfoFactory of the given collection type.
|
Modifier and Type | Method and Description |
---|---|
CollectionInfo |
createCollection(XSType contentType,
String name,
String elementName,
JavaNaming javaNaming,
boolean usejava50)
Creates a
CollectionInfo instance based upon the various
parameters provided. |
CollectionInfo |
createCollection(XSType contentType,
String name,
String elementName,
String collectionName,
JavaNaming javaNaming,
boolean useJava50)
Creates a
CollectionInfo instance based upon the various
parameters provided. |
FieldInfo |
createFieldInfo(XSType type,
String name)
|
IdentityInfo |
createIdentity(String name)
Creates an
IdentityInfo instance for the given name. |
void |
setBoundProperties(boolean bound)
Sets whether or not the fields should be bound properties.
|
void |
setCreateExtraMethods(boolean extraMethods)
Sets whether or not to create extra collection methods for accessing the
actual collection.
|
void |
setReferenceMethodSuffix(String suffix)
Sets the method suffix (ending) to use when creating the extra collection
methods.
|
public FieldInfoFactory()
FieldInfoFactory
instance. The default collection
used will be Java 1 type.public FieldInfoFactory(boolean useOldFieldNaming)
FieldInfoFactory
instance. The default collection
used will be Java 1 type.useOldFieldNaming
- True to indicate that old Java naming conventions should be
used.public FieldInfoFactory(String collectionName)
FieldInfoFactory
of the given collection type.collectionName
- The type for the FieldInfoFactory.public FieldInfoFactory(String collectionName, boolean useOldFieldNaming)
collectionName
- The type for the FieldInfoFactory.useOldFieldNaming
- True to indicate that old Java naming conventions should be
used.public IdentityInfo createIdentity(String name)
IdentityInfo
instance for the given name.name
- Identity field name.IdentityInfo
instance just created.public CollectionInfo createCollection(XSType contentType, String name, String elementName, JavaNaming javaNaming, boolean usejava50)
CollectionInfo
instance based upon the various
parameters provided.contentType
- Content type of the collection.name
- Name of the collection member.elementName
- Name of the (content) element.javaNaming
- the Java naming to be usedusejava50
- Whether we are targeting Java 5.0 or above or notCollectionInfo
instance representing a collection typed
member.#createCollection(XSType, String, String, String, boolean)
public CollectionInfo createCollection(XSType contentType, String name, String elementName, String collectionName, JavaNaming javaNaming, boolean useJava50)
CollectionInfo
instance based upon the various
parameters provided.contentType
- Content type of the collection.name
- Name of the collection member.elementName
- Name of the (content) element.collectionName
- Name of the collection.javaNaming
- the Java naming to be useduseJava50
- Whether we are targeting Java 5.0 or above or notCollectionInfo
instance representing a collection typed
member.public final void setBoundProperties(boolean bound)
bound
- a boolean that when true indicates the FieldInfo should have the
bound property enabled.public final void setCreateExtraMethods(boolean extraMethods)
extraMethods
- a boolean that when true indicates that extra collection
accessor methods should be created. False by default.org.exolab.castor.builder.FieldInfoFactory#setReferenceMethodSuffix
public final void setReferenceMethodSuffix(String suffix)
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.org.exolab.castor.builder.FieldInfoFactory#setCreateExtraMethods
Copyright © 2021. All rights reserved.