public class MappingMetaData extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
public MappingMetaData(String packageName)
packageName
- the Java package to mappublic MappingMetaData(Properties properties)
properties
- 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 attributepublic String getNestedListProperty(String elementName, String childElementName)
elementName
- the owner elementchildElementName
- is the child element name which maps to the nested list propertypublic String getNestedProperty(String elementName, String childElementName)
elementName
- the owner elementchildElementName
- is the child element name which maps to the nested bean propertypublic boolean isDefaultConstructor(Constructor constructor)
public String[] getParameterNames(Constructor constructor)
public static String constructorToPropertyName(Constructor constructor)
public String getFlatCollectionProperty(String elementName, String property)
Copyright © 2005-2013. All Rights Reserved.