|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Documented @Target(value={FIELD,METHOD}) public @interface Exported
Mark the field or the getter method whose value gets exposed to the remote API.
ExportedBean
Optional Element Summary | |
---|---|
java.lang.String |
name
Name of the exposed property. |
int |
visibility
Controls how visible this property is. |
public abstract int visibility
If the value is 1, the property will be visible only when the current model object is exposed as the top-level object.
If the value is 2, in addition to above, the property will still be visible if the current model object is exposed as the 2nd-level object.
And the rest goes in the same way. If the value is N, the object is exposed as the Nth level object.
The default value of this property is determined by
ExportedBean.defaultVisibility()
.
So bigger the number, more important the property is.
public abstract java.lang.String name
This token is used as the XML element name or the JSON property name. The default is to use the Java property name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |