public class Convert extends Object
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface Convert { Class converter() default void.class; String attributeName() default ""; boolean disableConversion() default false; }
<p>Java class for convert complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="convert"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </sequence> <attribute name="converter" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="attribute-name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="disable-conversion" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
attributeName |
protected String |
converter |
protected String |
description |
protected Boolean |
disableConversion |
| Constructor and Description |
|---|
Convert() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeName()
Gets the value of the attributeName property.
|
String |
getConverter()
Gets the value of the converter property.
|
String |
getDescription()
Gets the value of the description property.
|
Boolean |
isDisableConversion()
Gets the value of the disableConversion property.
|
void |
setAttributeName(String value)
Sets the value of the attributeName property.
|
void |
setConverter(String value)
Sets the value of the converter property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setDisableConversion(Boolean value)
Sets the value of the disableConversion property.
|
protected String description
protected String converter
protected String attributeName
protected Boolean disableConversion
public String getDescription()
Gets the value of the description property.
Stringpublic void setDescription(String value)
Sets the value of the description property.
value - allowed object is
Stringpublic String getConverter()
Gets the value of the converter property.
Stringpublic void setConverter(String value)
Sets the value of the converter property.
value - allowed object is
Stringpublic String getAttributeName()
Gets the value of the attributeName property.
Stringpublic void setAttributeName(String value)
Sets the value of the attributeName property.
value - allowed object is
Stringpublic Boolean isDisableConversion()
Gets the value of the disableConversion property.
BooleanCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.