|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exolab.castor.builder.FieldInfoFactory
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.
| Constructor Summary | |
FieldInfoFactory()
Creates a new FieldInfoFactory. |
|
FieldInfoFactory(java.lang.String collectionName)
Creates a new FieldInfoFactory of the given type. |
|
| Method Summary | |
CollectionInfo |
createCollection(XSType contentType,
java.lang.String name,
java.lang.String elementName,
boolean usejava50)
|
CollectionInfo |
createCollection(XSType contentType,
java.lang.String name,
java.lang.String elementName,
java.lang.String collectionName,
boolean useJava50)
|
FieldInfo |
createFieldInfo(XSType type,
java.lang.String name)
|
IdentityInfo |
createIdentity(java.lang.String 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(java.lang.String suffix)
Sets the method suffix (ending) to use when creating the extra collection methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FieldInfoFactory()
public FieldInfoFactory(java.lang.String collectionName)
collectionName - The type for the FieldInfoFactory.| Method Detail |
public IdentityInfo createIdentity(java.lang.String name)
public CollectionInfo createCollection(XSType contentType,
java.lang.String name,
java.lang.String elementName,
boolean usejava50)
public CollectionInfo createCollection(XSType contentType,
java.lang.String name,
java.lang.String elementName,
java.lang.String collectionName,
boolean useJava50)
public FieldInfo createFieldInfo(XSType type,
java.lang.String name)
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.setReferenceMethodSuffix(java.lang.String)public final void setReferenceMethodSuffix(java.lang.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.setCreateExtraMethods(boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||