org.kohsuke.stapler.export
Annotation Type Exported


@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.

Author:
Kohsuke Kawaguchi
See Also:
ExportedBean

Optional Element Summary
 java.lang.String name
          Name of the exposed property.
 int visibility
          Controls how visible this property is.
 

visibility

public abstract int visibility
Controls how visible this property is.

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.

Default:
0

name

public abstract java.lang.String name
Name of the exposed property.

This token is used as the XML element name or the JSON property name. The default is to use the Java property name.

Default:
""


Copyright © 2007. All Rights Reserved.