java.lang.Object | |
↳ | org.apache.commons.betwixt.IntrospectionConfiguration |
Stores introspection 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 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 XMLIntrospector
s.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the name mapping strategy used to convert bean names into attributes.
| |||||||||||
Returns the
AttributeSuppressionStrategy . | |||||||||||
Gets the
ClassNormalizer strategy. | |||||||||||
Gets the strategy used to determine which types are collective.
| |||||||||||
Gets the name mapping strategy used to convert bean names into elements.
| |||||||||||
Returns the
ElementSuppressionStrategy . | |||||||||||
Gets the common Log used for introspection.
| |||||||||||
Gets the
MappingDerivationStrategy
used to determine whether the bind or introspection time
type should determine the mapping. | |||||||||||
Get singular and plural matching strategy.
| |||||||||||
Gets the
NamespacePrefixMapper used to convert namespace URIs
into prefixes. | |||||||||||
Gets the strategy which determines the properties to be ignored.
| |||||||||||
Gets the simple type binding strategy.
| |||||||||||
Gets the
TypeBindingStrategy to be used
to determine the binding for Java types. | |||||||||||
Should existing BeanInfo classes be ignored by | |||||||||||
Should attributes (or elements) be used for primitive types.
| |||||||||||
Is this a loop type class?
| |||||||||||
Should collections be wrapped in an extra element?
| |||||||||||
Sets the strategy used to convert bean type names into attribute names
| |||||||||||
Sets the
AttributeSuppressionStrategy . | |||||||||||
Set whether attributes (or elements) should be used for primitive types.
| |||||||||||
Sets the
ClassNormalizer strategy. | |||||||||||
Sets the strategy used to determine which types are collective.
| |||||||||||
Sets the strategy used to convert bean type names into element names
| |||||||||||
Sets the
ElementSuppressionStrategy . | |||||||||||
Specifies if you want to ignore existing BeanInfo classes at all for introspection
| |||||||||||
Sets the common Log used by introspection.
| |||||||||||
Sets the
MappingDerivationStrategy
used to determine whether the bind or introspection time
type should determine the mapping. | |||||||||||
Sets the strategy used to detect matching singular and plural properties
| |||||||||||
Sets the
NamespacePrefixMapper used to convert namespave URIs
into prefixes. | |||||||||||
Sets the strategy which determines the properties to be ignored.
| |||||||||||
Sets the simple type binding strategy.
| |||||||||||
Sets the
TypeBindingStrategy to be used
to determine the binding for Java types. | |||||||||||
Specifies if you want to use the beanInfoSearchPath
| |||||||||||
Sets whether we should we wrap collections in an extra element.
| |||||||||||
Should the original Default is false. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A Factory method to lazily create a strategy
used to convert bean type names into element names.
| |||||||||||
A Factory method to lazily create a new strategy
to detect matching singular and plural properties.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the name mapping strategy used to convert bean names into attributes.
Returns the AttributeSuppressionStrategy
.
This is used to suppress attributes, e.g. for versioning.
Gets the ClassNormalizer
strategy.
This is used to determine the Class to be introspected
(the normalized Class).
ClassNormalizer
used to determine the Class to be introspected
for a given Object.
Gets the strategy used to determine which types are collective.
CollectiveTypeStrategy
, not nullGets the name mapping strategy used to convert bean names into elements.
Returns the ElementSuppressionStrategy
.
This is used to suppress elements, e.g. for versioning.
Gets the common Log used for introspection. It is more convenient to use a single Log that can be easily configured.
Gets the MappingDerivationStrategy
used to determine whether the bind or introspection time
type should determine the mapping.
MappingDerivationStrategy
, not null
Get singular and plural matching strategy.
Gets the NamespacePrefixMapper
used to convert namespace URIs
into prefixes.
Gets the strategy which determines the properties to be ignored.
PropertySuppressionStrategy
to be used for introspection, not null
Gets the simple type binding strategy.
Gets the TypeBindingStrategy
to be used
to determine the binding for Java types.
TypeBindingStrategy
to be used,
not null
Should existing BeanInfo classes be ignored by java.reflect.Introspector
.
Default is false.
Should attributes (or elements) be used for primitive types.
Is this a loop type class?
type | is this Class a loop type? |
---|
Should collections be wrapped in an extra element?
Sets the strategy used to convert bean type names into attribute names
nameMapper | the NameMapper to use for the convertion |
---|
Sets the AttributeSuppressionStrategy
.
This is used to suppress attributes, e.g. for versioning.
attributeSuppressionStrategy | the strategy |
---|
Set whether attributes (or elements) should be used for primitive types.
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).
classNormalizer | the ClassNormalizer to be used to determine
the Class to be introspected for a given Object.
|
---|
Sets the strategy used to determine which types are collective.
collectiveTypeStrategy | CollectiveTypeStrategy , not null |
---|
Sets the strategy used to convert bean type names into element names
nameMapper | the NameMapper to use for the conversion |
---|
Sets the ElementSuppressionStrategy
.
This is used to suppress elements, e.g. for versioning.
elementSuppressionStrategy | the strategy |
---|
Specifies if you want to ignore existing BeanInfo classes at all for introspection
ignoreAllBeanInfo | set to true to ignore all BeanInfo classes |
---|
Sets the common Log used by introspection. It is more convenient to use a single Log that can be easily configured.
log | Log, not null |
---|
Sets the MappingDerivationStrategy
used to determine whether the bind or introspection time
type should determine the mapping.
mappingDerivationStrategy | MappingDerivationStrategy , not null
|
---|
Sets the strategy used to detect matching singular and plural properties
pluralStemmer | the PluralStemmer used to match singular and plural |
---|
Sets the NamespacePrefixMapper
used to convert namespave URIs
into prefixes.
mapper | NamespacePrefixMapper, not null |
---|
Sets the strategy which determines the properties to be ignored.
propertySuppressionStrategy | the PropertySuppressionStrategy to be used for introspection, not null
|
---|
Sets the simple type binding strategy.
mapper | SimpleTypeMapper, not null |
---|
Sets the TypeBindingStrategy
to be used
to determine the binding for Java types.
typeBindingStrategy | the TypeBindingStrategy to be used,
not null
|
---|
Specifies if you want to use the beanInfoSearchPath
Sets whether we should we wrap collections in an extra element.
wrapCollectionsInElement | pass true if collections should be wrapped in a parent element |
---|
Should the original java.reflect.Introspector
bean info search path be used?
Default is false.
A Factory method to lazily create a strategy used to convert bean type names into element names.
A Factory method to lazily create a new strategy to detect matching singular and plural properties.