|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface RDFSubject
Applied to: Method declaration
Parameter: prefix (String, optional)
@RDFSubject annotation indicates that the annotated getter method returns a String value of RDFBean identifier.
The prefix parameter defines the optional prefix part of RDFBean identifier
and must contain either a namespace URI or a reference to namespace defined
by RDFNamespaces
annotation.
If prefix parameter is set, it is expected that the method returns a local part of RDFBean identifier. Otherwise, the method must return a value of RDFBean identifier as a fully qualified name.
Examples:
@RDFSubject(prefix="http://rdfbeans.example.com/persons/") public String getPersonId() { ...
@RDFSubject(prefix="persons:") public String getPersonId() { ...
@RDFSubject public String getPersonId() { ... // A fully qualified name must be returned
Optional Element Summary | |
---|---|
java.lang.String |
prefix
An optional namespace prefix of RDFBean identifiers |
public abstract java.lang.String prefix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |