|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.betwixt.BindingConfiguration
Stores mapping phase binding configuration.
There are two phase in Betwixt's processing. The first phase is the introspection of the bean. Strutural configuration settings effect this phase. The second phase comes when Betwixt dynamically uses reflection to execute the mapping. This object stores configuration settings pertaining to the second phase.
These common settings have been collected into one class
to make round tripping easier since the same BindingConfiguration
can be shared.
Constructor Summary | |
BindingConfiguration()
Constructs a BindingConfiguration with default properties. |
|
BindingConfiguration(org.apache.commons.betwixt.strategy.ObjectStringConverter objectStringConverter,
boolean mapIDs)
Constructs a BindingConfiguration |
Method Summary | |
java.lang.String |
getClassNameAttribute()
The name of the attribute which can be specified in the XML to override the type of a bean used at a certain point in the schema. |
boolean |
getMapIDs()
Should ID 's and IDREF attributes
be used to cross-reference matching objects? |
org.apache.commons.betwixt.strategy.ObjectStringConverter |
getObjectStringConverter()
Gets the Object <-> String converter. |
void |
setClassNameAttribute(java.lang.String classNameAttribute)
Sets the name of the attribute which can be specified in the XML to override the type of a bean used at a certain point in the schema. |
void |
setMapIDs(boolean mapIDs)
Should ID 's and IDREF attributes
be used to cross-reference matching objects? |
void |
setObjectStringConverter(org.apache.commons.betwixt.strategy.ObjectStringConverter objectStringConverter)
Sets the Object <-> String converter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BindingConfiguration()
public BindingConfiguration(org.apache.commons.betwixt.strategy.ObjectStringConverter objectStringConverter, boolean mapIDs)
objectStringConverter
- the ObjectStringConverter
to be used to convert Objects <-> StringsmapIDs
- should ID
's and IDREF
be used to cross-referenceMethod Detail |
public org.apache.commons.betwixt.strategy.ObjectStringConverter getObjectStringConverter()
public void setObjectStringConverter(org.apache.commons.betwixt.strategy.ObjectStringConverter objectStringConverter)
objectStringConverter
- the ObjectStringConverter to be used, not nullpublic boolean getMapIDs()
ID
's and IDREF
attributes
be used to cross-reference matching objects?
ID
and IDREF
attributes should be used to cross-reference instancespublic void setMapIDs(boolean mapIDs)
ID
's and IDREF
attributes
be used to cross-reference matching objects?
mapIDs
- pass true if ID
's should be used to cross-referencepublic java.lang.String getClassNameAttribute()
The default value is 'className'.
public void setClassNameAttribute(java.lang.String classNameAttribute)
The default value is 'className'.
classNameAttribute
- The name of the attribute used to overload the class name of a bean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |