|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.BindingConfiguration
public class 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(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. |
IdStoringStrategy |
getIdMappingStrategy()
Gets the strategy used to manage storage and retrieval of id's. |
boolean |
getMapIDs()
Should ID 's and IDREF attributes
be used to cross-reference matching objects? |
ObjectStringConverter |
getObjectStringConverter()
Gets the Object <-> String converter. |
ValueSuppressionStrategy |
getValueSuppressionStrategy()
Gets the ValueSuppressionStrategy . |
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 |
setIdMappingStrategy(IdStoringStrategy idMappingStrategy)
Sets the strategy used to manage storage and retrieval of id's. |
void |
setMapIDs(boolean mapIDs)
Should ID 's and IDREF attributes
be used to cross-reference matching objects? |
void |
setObjectStringConverter(ObjectStringConverter objectStringConverter)
Sets the Object <-> String converter. |
void |
setValueSuppressionStrategy(ValueSuppressionStrategy valueSuppressionStrategy)
Sets the ValueSuppressionStrategy . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BindingConfiguration()
public BindingConfiguration(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 ObjectStringConverter getObjectStringConverter()
public void setObjectStringConverter(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 beanpublic ValueSuppressionStrategy getValueSuppressionStrategy()
ValueSuppressionStrategy
.
This is used to control the expression of attributes with certain values.
ValueSuppressionStrategy
, not nullpublic void setValueSuppressionStrategy(ValueSuppressionStrategy valueSuppressionStrategy)
ValueSuppressionStrategy
.
This is used to control the expression of attributes with certain values.
valueSuppressionStrategy
- ValueSuppressionStrategy
, not nullpublic IdStoringStrategy getIdMappingStrategy()
IdStoringStrategy
, not nullpublic void setIdMappingStrategy(IdStoringStrategy idMappingStrategy)
idMappingStrategy
- IdStoringStrategy
to be set, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |