|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.blueprint.context.impl.MappingMetaData
public class MappingMetaData
A helper class which understands how to map an XML namespaced element to Spring bean configurations
Constructor Summary | |
---|---|
MappingMetaData(Properties properties)
Creates MappingMetaData using the specified properties which contan the package name. |
|
MappingMetaData(String packageName)
Creates an empty MappingMetaData for the specified Java package. |
Method Summary | |
---|---|
static String |
constructorToPropertyName(Constructor constructor)
|
String |
getClassName(String localName)
Returns the Java class name for the given XML element name |
String |
getContentProperty(String elementName)
|
String |
getDestroyMethodName(String elementName)
|
String |
getFactoryMethodName(String elementName)
|
String |
getFlatCollectionProperty(String elementName,
String property)
|
String |
getInitMethodName(String elementName)
|
String |
getMapDefaultKey(String elementName,
String property)
|
String |
getMapDupsMode(String elementName,
String property)
|
String |
getMapEntryName(String elementName,
String property)
|
String |
getMapKeyName(String elementName,
String property)
|
String |
getNestedListProperty(String elementName,
String childElementName)
Returns a valid property name if the childElementName maps to a nested list property |
String |
getNestedProperty(String elementName,
String childElementName)
Returns a valid property name if the childElementName maps to a nested bean property |
String[] |
getParameterNames(Class beanClass,
Method factoryMethod)
|
String[] |
getParameterNames(Constructor constructor)
|
String |
getPropertyEditor(String elementName,
String property)
|
String |
getPropertyName(String elementName,
String attributeName)
Returns the property name for the given element and attribute name |
boolean |
isDefaultConstructor(Constructor constructor)
|
boolean |
isDefaultFactoryMethod(Class beanClass,
Method factoryMethod)
|
boolean |
isFlatMap(String elementName,
String property)
|
boolean |
isFlatProperty(String elementName,
String property)
|
static String |
methodToPropertyName(Class beanClass,
Method method)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingMetaData(String packageName)
packageName
- the Java package to mappublic MappingMetaData(Properties properties)
properties
- Method Detail |
---|
public String getClassName(String localName)
public String getPropertyName(String elementName, String attributeName)
elementName
- the XML local name of the elementattributeName
- the XML local name of the attribute
public String getNestedListProperty(String elementName, String childElementName)
elementName
- the owner elementchildElementName
- is the child element name which maps to the nested list property
public String getNestedProperty(String elementName, String childElementName)
elementName
- the owner elementchildElementName
- is the child element name which maps to the nested bean property
public boolean isDefaultConstructor(Constructor constructor)
public boolean isDefaultFactoryMethod(Class beanClass, Method factoryMethod)
public String[] getParameterNames(Constructor constructor)
public String[] getParameterNames(Class beanClass, Method factoryMethod)
public static String constructorToPropertyName(Constructor constructor)
public static String methodToPropertyName(Class beanClass, Method method)
public String getInitMethodName(String elementName)
public String getDestroyMethodName(String elementName)
public String getFactoryMethodName(String elementName)
public String getContentProperty(String elementName)
public String getMapEntryName(String elementName, String property)
public String getMapKeyName(String elementName, String property)
public boolean isFlatMap(String elementName, String property)
public String getMapDupsMode(String elementName, String property)
public String getMapDefaultKey(String elementName, String property)
public String getFlatCollectionProperty(String elementName, String property)
public boolean isFlatProperty(String elementName, String property)
public String getPropertyEditor(String elementName, String property)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |