net.sf.jsefa.xml.annotation
Annotation Type XmlDataType


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface XmlDataType

An annotation declaring a complex data type with its relevant sub object types. Each object type which should map to a complex element and for which a type mapping should be constructed from annotations must be annotated with this annotation.

Author:
Norman Lahme-Huetig

Optional Element Summary
 String defaultElementName
          The default name for elements with this data type.
 Class<? extends Validator> defaultValidatorType
          Specifies the validator type to be used for the default case.
 String name
          The name of the data type.
 Class<?>[] subObjectTypes
          The relevant sub object types of the one which is annotated with this annotation.
 

name

public abstract String name
The name of the data type. The name must be unique within the set of data types used within one XML document. If not set a name will be created from the name of the class.

Default:
""

subObjectTypes

public abstract Class<?>[] subObjectTypes
The relevant sub object types of the one which is annotated with this annotation. Only subclasses of the annotated class which are mentioned in this array are considered in the serialization/deserialization process.

Default:
{}

defaultElementName

public abstract String defaultElementName
The default name for elements with this data type.

Default:
""

defaultValidatorType

public abstract Class<? extends Validator> defaultValidatorType
Specifies the validator type to be used for the default case.

Default:
net.sf.jsefa.common.annotation.NoValidatorType.class


Copyright © 2014. All rights reserved.