com.epam.xml.anotations
Annotation Type XmlAttribute


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface XmlAttribute

Author:
Serhiy_Zahriychuk Date: Oct 14, 2008

Optional Element Summary
 String name
          Name of the XML Schema attribute.
 boolean required
          Specifies if the XML Schema attribute is optional or required.
 

name

public abstract String name
Name of the XML Schema attribute. By default, the XML Schema attribute name is derived from the JavaBean property name.

Returns:
Name
Default:
"##default"

required

public abstract boolean required
Specifies if the XML Schema attribute is optional or required. If true, then the JavaBean property is mapped to a XML Schema attribute that is required. Otherwise it is mapped to a XML Schema attribute that is optional.

Returns:
Required
Default:
false


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.