public class TempWrapperPropertyConfiguration extends Object implements PropertyConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected PropertyConfiguration |
delegate |
protected SimplePropertyConfiguration |
extra |
| Constructor and Description |
|---|
TempWrapperPropertyConfiguration(PropertyConfiguration delegate) |
TempWrapperPropertyConfiguration(PropertyConfiguration delegate,
boolean greedyIgnore) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(String alias,
String propertyName) |
void |
addCollection(String propertyName)
This will automatically generate a list and accumulate values.
|
void |
addIgnored(String propertyName) |
void |
addMapping(String propertyName,
Map mappings) |
void |
addMapping(String propertyName,
String mappings) |
void |
addMapping(String propertyName,
ValueMap mappings) |
void |
addReference(String propertyName) |
String |
getAttributeAlias(String mapping) |
String |
getAttributeMapping(String alias) |
SingleProperty |
getSingleProperty(String propertyName) |
boolean |
isCollection(String propertyName) |
boolean |
isIgnored(String propertyName) |
boolean |
isReference(String attributeName)
A property can be explicitly registered as a bean reference via registerBeanReference()
or it can simply use the "-ref" suffix.
|
void |
removeIgnored(String propertyName) |
void |
setIgnoredDefault(boolean ignoreAll) |
String |
translateName(String oldName)
Extract a JavaBean property name from the supplied attribute name.
|
Object |
translateValue(String name,
String value) |
protected PropertyConfiguration delegate
protected SimplePropertyConfiguration extra
public TempWrapperPropertyConfiguration(PropertyConfiguration delegate)
public TempWrapperPropertyConfiguration(PropertyConfiguration delegate, boolean greedyIgnore)
public void addReference(String propertyName)
addReference in interface PropertyConfigurationpublic void addMapping(String propertyName, Map mappings)
addMapping in interface PropertyConfigurationpublic void addMapping(String propertyName, String mappings)
addMapping in interface PropertyConfigurationpublic void addMapping(String propertyName, ValueMap mappings)
addMapping in interface PropertyConfigurationpublic void addAlias(String alias, String propertyName)
addAlias in interface PropertyConfigurationpublic void addCollection(String propertyName)
PropertyConfigurationaddCollection in interface PropertyConfigurationpublic void addIgnored(String propertyName)
addIgnored in interface PropertyConfigurationpublic void removeIgnored(String propertyName)
removeIgnored in interface PropertyConfigurationpublic void setIgnoredDefault(boolean ignoreAll)
setIgnoredDefault in interface PropertyConfigurationpublic String getAttributeMapping(String alias)
getAttributeMapping in interface PropertyConfigurationpublic String getAttributeAlias(String mapping)
getAttributeAlias in interface PropertyConfigurationpublic boolean isCollection(String propertyName)
isCollection in interface PropertyConfigurationpublic boolean isIgnored(String propertyName)
isIgnored in interface PropertyConfigurationpublic boolean isReference(String attributeName)
PropertyConfigurationisReference in interface PropertyConfigurationattributeName - true if the name appears to correspond to a referencepublic SingleProperty getSingleProperty(String propertyName)
getSingleProperty in interface PropertyConfigurationpublic String translateName(String oldName)
PropertyConfigurationThe default implementation uses the Conventions.attributeNameToPropertyName(String)
method to perform the extraction.
The name returned must obey the standard JavaBean property name
conventions. For example for a class with a setter method
'setBingoHallFavourite(String)', the name returned had
better be 'bingoHallFavourite' (with that exact casing).
translateName in interface PropertyConfigurationoldName - the attribute name taken straight from the XML element being parsed; will never be nullnullpublic Object translateValue(String name, String value)
translateValue in interface PropertyConfigurationCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.