Package org.apache.juneau.marshall.jena
Class RdfClassMeta
java.lang.Object
org.apache.juneau.marshall.ExtendedMeta
org.apache.juneau.marshall.ExtendedClassMeta
org.apache.juneau.marshall.jena.RdfClassMeta
Metadata on classes specific to the RDF serializers and parsers pulled from the
@Rdf annotation on the
class.
See Also:
- {doc jmr.RdfDetails}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RdfCollectionFormatReturns the@Rdf(collectionFormat)annotation defined on the class.protected NamespaceReturns the RDF namespace associated with this class.Methods inherited from class org.apache.juneau.marshall.ExtendedClassMeta
getBeanInfo, getInnerClass
-
Constructor Details
-
RdfClassMeta
Constructor.- Parameters:
cm- The class that this annotation is defined on. Must not benull .mp- RDF metadata provider (for finding information about other artifacts).
-
-
Method Details
-
getCollectionFormat
Returns the@Rdf(collectionFormat)annotation defined on the class.- Returns:
- The value of the annotation, or
RdfCollectionFormat.DEFAULTif the annotation is not specified.
-
getNamespace
Returns the RDF namespace associated with this class.Namespace is determined in the following order of
@Rdf(prefix)annotation:- Class.
- Package.
- Superclasses.
- Superclass packages.
- Interfaces.
- Interface packages.
- Returns:
- The namespace associated with this class, or
null if no namespace is associated with it.
-