|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.conversion.metadata.ConversionDescription
public class ConversionDescription
ConversionDescription
Field Summary | |
---|---|
static String |
DEPRECATED_ELEMENT_PREFIX
|
static String |
ELEMENT_PREFIX
|
String |
fullQualifiedClassName
|
static String |
KEY_PREFIX
|
static String |
KEY_PROPERTY_PREFIX
|
protected static Logger |
log
Jakarta commons-logging reference. |
(package private) String |
MAP_PREFIX
Key used for type conversion of maps. |
String |
property
|
String |
rule
|
String |
type
|
String |
typeConverter
|
String |
value
|
Constructor Summary | |
---|---|
ConversionDescription()
|
|
ConversionDescription(String property)
Creates an ConversionDescription with the specified property name. |
Method Summary | |
---|---|
String |
asProperty()
Returns the conversion description as property entry. |
String |
getFullQualifiedClassName()
Returns the fullQualifiedClassName attribute is used to create the special conversion.properties file name. |
String |
getType()
|
String |
getValue()
|
void |
setFullQualifiedClassName(String fullQualifiedClassName)
The fullQualifiedClassName attribute is used to create the special conversion.properties file name. |
void |
setProperty(String property)
Sets the property name to be inserted into the related conversion.properties file. Note: Do not add COLLECTION_PREFIX or MAP_PREFIX keys to property names. |
void |
setRule(String rule)
Sets the rule prefix for COLLECTION_PREFIX or MAP_PREFIX key. |
void |
setType(String type)
|
void |
setTypeConverter(String typeConverter)
Sets the class name of the type converter to be used. |
void |
setValue(String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Logger log
public static final String KEY_PREFIX
public static final String ELEMENT_PREFIX
public static final String KEY_PROPERTY_PREFIX
public static final String DEPRECATED_ELEMENT_PREFIX
String MAP_PREFIX
public String property
public String typeConverter
public String rule
public String value
public String fullQualifiedClassName
public String type
Constructor Detail |
---|
public ConversionDescription()
public ConversionDescription(String property)
property
- Method Detail |
---|
public void setProperty(String property)
Sets the property name to be inserted into the related conversion.properties file.
Note: Do not add COLLECTION_PREFIX or MAP_PREFIX keys to property names.
property
- The property to be converted.public void setTypeConverter(String typeConverter)
typeConverter
- The class name of the type converter.public void setRule(String rule)
rule
- public void setType(String type)
public String getType()
public String getValue()
public void setValue(String value)
public String asProperty()
Example:
property.name = converter.className
Collection_property.name = converter.className
Map_property.name = converter.className
KeyProperty_name = id
public String getFullQualifiedClassName()
conversion.properties
file name.
public void setFullQualifiedClassName(String fullQualifiedClassName)
conversion.properties
file name.
fullQualifiedClassName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |