|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.BuilderConfiguration
The configuration for the SourceGenerator
Nested Class Summary | |
static class |
BuilderConfiguration.Property
Names of properties used in the configuration file. |
Constructor Summary | |
BuilderConfiguration()
Creates a default BuilderConfiguration |
Method Summary | |
boolean |
boundPropertiesEnabled()
Returns true if bound properties are enabled. |
boolean |
classDescFieldNames()
Returns true if we generate a 'public static final String' for the name of each attribute and element described by the class descriptor Enabling this property is controlled via the org.exolab.castor.builder.classdescfieldnames item in the castorbuilder.properties file. |
boolean |
equalsMethod()
Returns true if we generate an 'equals' method for each generated class. |
boolean |
generateExtraCollectionMethods()
Returns true if extra methods for collection fields should be generated. |
java.util.Properties |
getDefault()
Returns the default configuration file. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defValue)
Returns a property from the default configuration file. |
java.lang.String |
lookupPackageByLocation(java.lang.String schemaLocation)
Gets a Java package to a schema location. |
java.lang.String |
lookupPackageByNamespace(java.lang.String nsURL)
Gets a Java package to an XML namespace URL |
boolean |
mappingSchemaElement2Java()
Tests the org.exolab.castor.builder.javaclassmapping property for the 'element' value. |
boolean |
mappingSchemaType2Java()
Tests the org.exolab.castor.builder.javaclassmapping property for the 'type' value. |
void |
setClassDescFieldNames(boolean classDescFieldNames)
Sets the 'classDescFieldNames' property |
void |
setDefaultProperties(java.util.Properties properties)
Overrides the current set of properties with the given properties. |
void |
setEqualsMethod(boolean equals)
Sets the 'equalsmethod' property |
void |
setLocationPackageMapping(java.lang.String schemaLocation,
java.lang.String packageName)
Sets the schemaLocation to package mapping |
void |
setNamespacePackageMapping(java.lang.String ns,
java.lang.String packageName)
Sets the namespace to package mapping |
void |
setPrimitiveWrapper(boolean wrapper)
Sets the 'primitivetowrapper' property |
void |
setUseEnumeratedTypeInterface(boolean flag)
Sets the 'enumTypeAccessInterface' property |
boolean |
useEnumeratedTypeInterface()
Returns true if we generate the implements EnumeratedTypeAccess interface for enumerated type classes. |
boolean |
usePrimitiveWrapper()
Returns true if primitive types have to be used as Objects (eg. replacing float by java.lang.Float). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BuilderConfiguration()
Method Detail |
public java.util.Properties getDefault()
public java.lang.String getProperty(java.lang.String name, java.lang.String defValue)
getDefault()
.
name
- The property namedefValue
- The property's default value
public boolean boundPropertiesEnabled()
public boolean equalsMethod()
public void setEqualsMethod(boolean equals)
public boolean classDescFieldNames()
public boolean generateExtraCollectionMethods()
public void setClassDescFieldNames(boolean classDescFieldNames)
classDescFieldNames
- the value we want to uespublic boolean usePrimitiveWrapper()
public void setPrimitiveWrapper(boolean wrapper)
wrapper
- the value we want to use.public boolean useEnumeratedTypeInterface()
public void setUseEnumeratedTypeInterface(boolean flag)
flag
- the value we want to usepublic boolean mappingSchemaElement2Java()
public boolean mappingSchemaType2Java()
public void setDefaultProperties(java.util.Properties properties)
properties
- the Properties filepublic void setNamespacePackageMapping(java.lang.String ns, java.lang.String packageName)
ns
- the namespace URI to mappackageName
- the package namepublic void setLocationPackageMapping(java.lang.String schemaLocation, java.lang.String packageName)
schemaLocation
- the schemaLocation to mappackageName
- the package name to map topublic java.lang.String lookupPackageByNamespace(java.lang.String nsURL)
public java.lang.String lookupPackageByLocation(java.lang.String schemaLocation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |