Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.config.spring.parsers.assembly.configuration
Interface PropertyConfiguration

All Known Implementing Classes:
  ReusablePropertyConfiguration, SimplePropertyConfiguration, TempWrapperPropertyConfiguration

    public interface PropertyConfiguration

This collects together various constraints/rewrites that can be applied to attributes. It was extracted from AbstractMuleBeanDefinitionParser and should be used as a delegate (see that class for an example).

Ignored, reference and collection flags are all keyed off the "old" name (before any alias or mapping), with any "-ref" dropped. No normalisation of mapping or aliases is attempted.

Method Summary
`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 name)`
`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)`

Method Detail

### addReference

    void addReference(String propertyName)

### addMapping

    void addMapping(String propertyName,
                    Map mappings)

### addMapping

    void addMapping(String propertyName,
                    String mappings)

### addMapping

    void addMapping(String propertyName,
                    ValueMap mappings)

### addAlias

    void addAlias(String alias,
                  String propertyName)

### addCollection

    void addCollection(String propertyName)

  This will automatically generate a list and accumulate values. If the value is a map then instead of generating a list of maps we combine map entries together.

### addIgnored

    void addIgnored(String propertyName)

### removeIgnored

    void removeIgnored(String propertyName)

### setIgnoredDefault

    void setIgnoredDefault(boolean ignoreAll)

### getAttributeMapping

    String getAttributeMapping(String alias)

### getAttributeAlias

    String getAttributeAlias(String name)

### isCollection

    boolean isCollection(String propertyName)

### isIgnored

    boolean isIgnored(String propertyName)

### isReference

    boolean isReference(String attributeName)

  A property can be explicitly registered as a bean reference via registerBeanReference() or it can simply use the "-ref" suffix.

  Parameters:
    `attributeName` - true if the name appears to correspond to a reference

### getSingleProperty

    SingleProperty getSingleProperty(String propertyName)

### translateName

    String translateName(String oldName)

  Extract a JavaBean property name from the supplied attribute name.

  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).

  Parameters:
    `oldName` - the attribute name taken straight from the XML element being parsed; will never be `null`
  Returns:
    the extracted JavaBean property name; must never be `null`

### translateValue

    Object translateValue(String name,
                          String value)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.