|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface RDFContainer
Applied to: Method declaration
Value: RDFContainer.ContainerType (optional)
Default value: RDFContainer.ContainerType.NONE
@RDFContainer annotation extends RDFBean property declaration (RDF) for the
properties of Java array or Collection types. The annotation
takes a constant from RDFContainer.ContainerType enumeration as
an argument to specify how the multiple values must be
represented in RDF.
If @RDFContainer annotation is undefined or takes the default
RDFContainer.ContainerType.NONE argument, the property is
represented as a set of individual RDF statements created for
each value. The order of elements is not guaranteed in this
case.
Otherwise, multiple values are represented as a RDF Container
of a type specified by RDFContainer.ContainerType constant.
Examples:
@RDF("foaf:nick")
@RDFContainer(ContainerType.ALT)
public String[] getNick() {
...
@RDF("foaf:knows")
@RDFContainer(ContainerType.NONE) // -- this is unnecessary public
Set getKnows() {
...
| Optional Element Summary | |
|---|---|
RDFContainer.ContainerType |
value
Specifies a type of RDF container for Collection properties. |
public abstract RDFContainer.ContainerType value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||