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 first phase.
These common settings have been collected into one class so that they can
be more easily shared not only between the objects that execute the introspection
but also (by a user) between different XMLIntrospectors.
getAttributeNameMapper() Gets the name mapping strategy used to convert bean names into attributes.
the strategy used to convert bean type names into attributenames.
getElementNameMapper() Gets the name mapping strategy used to convert bean names into elements.
the strategy used to convert bean type names into element names.
getMappingDerivationStrategy() Gets the MappingDerivationStrategy
used to determine whether the bind or introspection time
type should determine the mapping.
setAttributesForPrimitives(boolean attributesForPrimitives) Set whether attributes (or elements) should be used for primitive types.
public void
setClassNormalizer(ClassNormalizer classNormalizer) Sets the ClassNormalizer strategy.
This is used to determine the Class to be introspected
(the normalized Class).
Gets the name mapping strategy used to convert bean names into attributes.
the strategy used to convert bean type names into attributenames. If no attributeNamemapper is known, it will default to the ElementNameMapper
Gets the ClassNormalizer strategy.
This is used to determine the Class to be introspected
(the normalized Class).
the ClassNormalizer used to determine the Class to be introspectedfor a given Object.
Gets the name mapping strategy used to convert bean names into elements.
the strategy used to convert bean type names into element names. If no element mapper is currently defined then a default one is created.
Gets the MappingDerivationStrategy
used to determine whether the bind or introspection time
type should determine the mapping.
since: 0.7 MappingDerivationStrategy, not null
Sets the AttributeSuppressionStrategy.
This is used to suppress attributes, e.g. for versioning.
since: 0.8 Parameters: attributeSuppressionStrategy - the strategy
setAttributesForPrimitives
public void setAttributesForPrimitives(boolean attributesForPrimitives)(Code)
Set whether attributes (or elements) should be used for primitive types.
Parameters: attributesForPrimitives - pass trus to map primitives to attributes,pass false to map primitives to elements
Sets the ClassNormalizer strategy.
This is used to determine the Class to be introspected
(the normalized Class).
Parameters: classNormalizer - the ClassNormalizer to be used to determine the Class to be introspected for a given Object.
Sets the ElementSuppressionStrategy.
This is used to suppress elements, e.g. for versioning.
since: 0.8 Parameters: elementSuppressionStrategy - the strategy
setIgnoreAllBeanInfo
public void setIgnoreAllBeanInfo(boolean ignoreAllBeanInfo)(Code)
Specifies if you want to ignore existing BeanInfo classes at all for introspection
See Also:java.beans.Introspector See Also: for more details Parameters: ignoreAllBeanInfo - set to true to ignore all BeanInfo classes since: 0.8
Sets the MappingDerivationStrategy
used to determine whether the bind or introspection time
type should determine the mapping.
since: 0.7 Parameters: mappingDerivationStrategy - MappingDerivationStrategy, not null
Sets the strategy used to detect matching singular and plural properties
Parameters: pluralStemmer - the PluralStemmer used to match singular and plural
Sets the strategy which determines the properties to be ignored.
since: 0.7 Parameters: propertySuppressionStrategy - the PropertySuppressionStrategy to be used for introspection, not null
Sets the TypeBindingStrategy to be used
to determine the binding for Java types.
Parameters: typeBindingStrategy - the TypeBindingStrategy to be used,not null
setUseBeanInfoSearchPath
public void setUseBeanInfoSearchPath(boolean useBeanInfoSearchPath)(Code)
Specifies if you want to use the beanInfoSearchPath
See Also:java.beans.Introspector See Also: for more details Parameters: useBeanInfoSearchPath -
setWrapCollectionsInElement
public void setWrapCollectionsInElement(boolean wrapCollectionsInElement)(Code)
Sets whether we should we wrap collections in an extra element.
Parameters: wrapCollectionsInElement - pass true if collections should be wrapped in aparent element