@Documented @Target(value={PACKAGE,TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) @Inherited public @interface Rdf
Can be applied to Java packages, types, fields, and methods.
Can be used for the following:
Modifier and Type | Optional Element and Description |
---|---|
boolean |
beanUri
Marks a bean property as a resource URI identifier for the bean.
|
RdfCollectionFormat |
collectionFormat
The format for how collections (e.g.
|
String |
namespace
Sets the namespace URI of this property or class.
|
String |
prefix
Sets the XML prefix of this property or class.
|
public abstract boolean beanUri
Has the following effects on the following serializers:
RdfSerializer
- Will be rendered as the value of the public abstract RdfCollectionFormat collectionFormat
RdfCollectionFormat
public abstract String namespace
Must be matched with a @Rdf.prefix()
annotation on this object, a parent object, or a @RdfNs
with the
same name through the @RdfSchema.rdfNs()
annotation on the package.
public abstract String prefix
Must either be matched to a @Rdf.namespace()
annotation on the same object, parent object, or a @RdfNs
with the same name through the @RdfSchema.rdfNs()
annotation on the package.
Copyright © 2018 Apache. All rights reserved.