|
COSMOS ${releaseVersion} data-collection Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=FIELD) @Retention(value=RUNTIME) public @interface ManagedRelation
Annotation used to indicate a container that acts as storage for relationships between the property's manageable resource and other manageable resources. The containing class is expected to provide add and remove methods that add and remove resources from the container. The default behavior is to look for addXXX and removeXXX, where XXX is the name of the container. Calls to addXXX will create relations, and calls to removeXXX will remove them.
| Required Element Summary | |
|---|---|
java.lang.String |
type
The type of the relation |
| Optional Element Summary | |
|---|---|
java.lang.String |
addName
The name of the "add" method. |
java.lang.String |
name
The name of the relation |
java.lang.String |
namespace
The namespace to be used for the relation. |
java.lang.String |
relatedClassName
The name of the class corresponding to the related resource. |
java.lang.String |
removeName
The name of the "add" method. |
java.lang.String[] |
roles
The roles played by the participants in the relation. |
| Element Detail |
|---|
public abstract java.lang.String type
public abstract java.lang.String name
public abstract java.lang.String addName
public abstract java.lang.String removeName
public abstract java.lang.String relatedClassName
public abstract java.lang.String namespace
public abstract java.lang.String[] roles
|
COSMOS ${releaseVersion} data-collection Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||