Package org.opencastproject.metadata.api
Interface StaticMetadata
public interface StaticMetadata
Provides access to a commonly accepted set of metadata.
Please note that there is no default implementation with setters for each field available
to enforce a different style of usage. Whenever you need to return StaticMetadata
create an anonymous implementation with each getter implementation annotated with @Override.
This way the compiler helps you to ensure that each field is actually set. When it comes to refactoring this
interface, say a field is added and anotherone gets removed a simple compiler run detects all places you
need to change in your client code to adjust to the new schema. So it is highly recommended to stay
away from the traditional setter idiom.
-
Method Details
-
getId
-
getExtent
-
getLanguage
-
getIsPartOf
-
getReplaces
-
getType
-
getAvailable
-
getTemporalPeriod
-
getTemporalInstant
-
getTemporalDuration
-
getTitles
NonEmptyList<MetadataValue<String>> getTitles() -
getSubjects
List<MetadataValue<String>> getSubjects() -
getCreators
List<MetadataValue<String>> getCreators() -
getPublishers
List<MetadataValue<String>> getPublishers() -
getContributors
List<MetadataValue<String>> getContributors() -
getDescription
List<MetadataValue<String>> getDescription() -
getRightsHolders
List<MetadataValue<String>> getRightsHolders() -
getSpatials
List<MetadataValue<String>> getSpatials() -
getAccessRights
List<MetadataValue<String>> getAccessRights() -
getLicenses
List<MetadataValue<String>> getLicenses()
-