Class RdfBeanPropertyMeta


Metadata on bean properties specific to the RDF serializers and parsers pulled from the @Rdf annotation on the bean property.
See Also:
  • Field Details

  • Constructor Details

    • RdfBeanPropertyMeta

      Constructor.
      Parameters:
      bpm - The metadata of the bean property of this additional metadata. Must not be null.
      mp - RDF metadata provider (for finding information about other artifacts).
  • Method Details

    • getNamespace

      Returns the RDF namespace associated with this bean property.

      Namespace is determined in the following order of @Rdf(prefix) annotations:

      1. Bean property field.
      2. Bean getter.
      3. Bean setter.
      4. Bean class.
      5. Bean package.
      6. Bean superclasses.
      7. Bean superclass packages.
      8. Bean interfaces.
      9. Bean interface packages.
      Returns:
      The namespace associated with this bean property, or null if no namespace is associated with it.
    • isBeanUri

      public boolean isBeanUri()
      Returns true if this bean property is marked with @Rdf(beanUri) as true.
      Returns:
      true if this bean property annotation is true.
    • getCollectionFormat

      Returns the RDF collection format of this property from the Rdf.collectionFormat() annotation on this bean property.
      Returns:
      The RDF collection format, or RdfCollectionFormat.DEFAULT if annotation not specified.