public class SimplePropertyConfiguration extends Object implements PropertyConfiguration
PropertyConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
SimplePropertyConfiguration.IndentityMapValueMap |
static class |
SimplePropertyConfiguration.MapValueMap |
static class |
SimplePropertyConfiguration.NamedValueMap |
Constructor and Description |
---|
SimplePropertyConfiguration() |
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<String,Object> mappings) |
void |
addMapping(String propertyName,
String mappings) |
void |
addMapping(String propertyName,
ValueMap mappings) |
void |
addReference(String propertyName) |
protected String |
dropRef(String name) |
String |
getAttributeAlias(String name) |
String |
getAttributeMapping(String alias) |
String |
getAttributeMapping(String alias,
String deflt) |
SingleProperty |
getSingleProperty(String name) |
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) |
public void addReference(String propertyName)
addReference
in interface PropertyConfiguration
public void addMapping(String propertyName, Map<String,Object> mappings)
addMapping
in interface PropertyConfiguration
public void addMapping(String propertyName, String mappings)
addMapping
in interface PropertyConfiguration
public void addMapping(String propertyName, ValueMap mappings)
addMapping
in interface PropertyConfiguration
public void addAlias(String alias, String propertyName)
addAlias
in interface PropertyConfiguration
public void addCollection(String propertyName)
PropertyConfiguration
addCollection
in interface PropertyConfiguration
public void addIgnored(String propertyName)
addIgnored
in interface PropertyConfiguration
public void removeIgnored(String propertyName)
removeIgnored
in interface PropertyConfiguration
public void setIgnoredDefault(boolean ignoreAll)
setIgnoredDefault
in interface PropertyConfiguration
public String getAttributeMapping(String alias)
getAttributeMapping
in interface PropertyConfiguration
public String getAttributeAlias(String name)
getAttributeAlias
in interface PropertyConfiguration
public boolean isCollection(String propertyName)
isCollection
in interface PropertyConfiguration
public boolean isIgnored(String propertyName)
isIgnored
in interface PropertyConfiguration
public boolean isReference(String attributeName)
isReference
in interface PropertyConfiguration
attributeName
- true if the name appears to correspond to a referencepublic SingleProperty getSingleProperty(String name)
getSingleProperty
in interface PropertyConfiguration
public String translateName(String oldName)
The 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 PropertyConfiguration
oldName
- the attribute name taken straight from the XML element being parsed; will never be null
null
public Object translateValue(String name, String value)
translateValue
in interface PropertyConfiguration
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.