com.abra.j2xb.annotations
Annotation Type MOWebParam


@Target(value={METHOD,PARAMETER})
@Retention(value=RUNTIME)
public @interface MOWebParam

Defines mapping options for a web-service method parameter or return value. This annotation is only used by the J2XB-Axis2 module.

Since:
JDK1.5
Version:
1.0, May 1, 2008
Author:
Yoav Abrahami
See Also:
MOPropertyEditor, MOPropertyEditorRegistry, MOPolymorphicAtomProperty

Optional Element Summary
 java.lang.String defaultValue
          defines the default value of the XML element.
 boolean isXmlAttribute
          defines if the value is written as an XML attribute or an XML element
 java.lang.String xmlName
          the xmlName() value defines the xml element or attribute name of the parameter.
 boolean xmlOptional
          defines if the value is optional in the XML representation.
 

xmlName

public abstract java.lang.String xmlName
the xmlName() value defines the xml element or attribute name of the parameter. If not specified, the Java parameter name is used

Default:
""

xmlOptional

public abstract boolean xmlOptional
defines if the value is optional in the XML representation.

Default:
false

isXmlAttribute

public abstract boolean isXmlAttribute
defines if the value is written as an XML attribute or an XML element

Default:
false

defaultValue

public abstract java.lang.String defaultValue
defines the default value of the XML element.

The default value is written in terms of the string representation of the property type, as defined by the matching MOPropertyEditor class.

See Also:
MOPropertyEditor.toString(Class, java.lang.Object), MOPropertyEditor.fromString(Class, String)
Default:
""


Copyright © 2008. All Rights Reserved.