| Package | Description |
|---|---|
| org.apache.commons.betwixt |
This package contains the main betwixt introspection code.
|
| org.apache.commons.betwixt.strategy |
This package contains a variety of plugin Strategy patterns that can be used to customize the
default behaviour.of the XMLIntrospector
|
| Modifier and Type | Field and Description |
|---|---|
private NameMapper |
XMLIntrospector.attributeNameMapper
The strategy used to convert bean type names into attribute names
It will default to the normal nameMapper.
|
private NameMapper |
XMLIntrospector.elementNameMapper
The strategy used to convert bean type names into element names
|
| Modifier and Type | Method and Description |
|---|---|
protected NameMapper |
XMLIntrospector.createNameMapper()
A Factory method to lazily create a strategy
used to convert bean type names into element names.
|
NameMapper |
XMLIntrospector.getAttributeNameMapper()
Gets the name mapping strategy used to convert bean names into attributes.
|
NameMapper |
XMLIntrospector.getElementNameMapper()
Gets the name mapping strategy used to convert bean names into elements.
|
NameMapper |
XMLIntrospector.getNameMapper()
Deprecated.
getNameMapper is split up in
XMLIntrospector.getElementNameMapper() and XMLIntrospector.getAttributeNameMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
XMLIntrospector.setAttributeNameMapper(NameMapper nameMapper)
Sets the strategy used to convert bean type names into attribute names
|
void |
XMLIntrospector.setElementNameMapper(NameMapper nameMapper)
Sets the strategy used to convert bean type names into element names
|
void |
XMLIntrospector.setNameMapper(NameMapper nameMapper)
Deprecated.
setNameMapper is split up in
XMLIntrospector.setElementNameMapper(NameMapper) and XMLIntrospector.setAttributeNameMapper(NameMapper) |
| Modifier and Type | Class and Description |
|---|---|
class |
CapitalizeNameMapper
A beanmapper which converts a type to start with an uppercase.
|
class |
DecapitalizeNameMapper
A name mapper which converts types to a decapitalized String.
|
class |
DefaultNameMapper
A default implementation of the name mapper.
|
class |
HyphenatedNameMapper
A name mapper which converts types to a hypenated String.
|