EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.oxm.annotations
Annotation Type XmlProperty


@Target(value={METHOD,FIELD,TYPE})
@Retention(value=RUNTIME)
public @interface XmlProperty

Annotation for a user defined property. A single Property may be specified directly on a mapped attribute or its get/set method. Multiple Properties should be wrapped into Properties annotation.


Required Element Summary
 java.lang.String name
          Property name.
 java.lang.String value
          String representation of Property value, converted to an instance of valueType.
 
Optional Element Summary
 java.lang.Class valueType
          Property value type.
 

Element Detail

name

public abstract java.lang.String name
Property name.


value

public abstract java.lang.String value
String representation of Property value, converted to an instance of valueType.

valueType

public abstract java.lang.Class valueType
Property value type. The value converted to valueType by ConversionManager. If specified must be a simple type that could be handled by ConversionManager: numerical, boolean, temporal.

Default:
java.lang.String.class

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference