Package org.opencastproject.metadata.api
Interface StaticMetadata
-
public interface StaticMetadataProvides 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
StaticMetadatacreate 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<MetadataValue<String>>getAccessRights()org.opencastproject.util.data.Option<Interval>getAvailable()List<MetadataValue<String>>getContributors()org.opencastproject.util.data.Option<Date>getCreated()List<MetadataValue<String>>getCreators()List<MetadataValue<String>>getDescription()org.opencastproject.util.data.Option<Long>getExtent()org.opencastproject.util.data.Option<String>getId()org.opencastproject.util.data.Option<String>getIsPartOf()org.opencastproject.util.data.Option<String>getLanguage()List<MetadataValue<String>>getLicenses()List<MetadataValue<String>>getPublishers()org.opencastproject.util.data.Option<String>getReplaces()List<MetadataValue<String>>getRightsHolders()List<MetadataValue<String>>getSpatials()List<MetadataValue<String>>getSubjects()org.opencastproject.util.data.Option<Long>getTemporalDuration()org.opencastproject.util.data.Option<Date>getTemporalInstant()org.opencastproject.util.data.Option<Date[]>getTemporalPeriod()org.opencastproject.util.data.NonEmptyList<MetadataValue<String>>getTitles()org.opencastproject.util.data.Option<String>getType()
-
-
-
Method Detail
-
getId
org.opencastproject.util.data.Option<String> getId()
-
getCreated
org.opencastproject.util.data.Option<Date> getCreated()
-
getExtent
org.opencastproject.util.data.Option<Long> getExtent()
-
getLanguage
org.opencastproject.util.data.Option<String> getLanguage()
-
getIsPartOf
org.opencastproject.util.data.Option<String> getIsPartOf()
-
getReplaces
org.opencastproject.util.data.Option<String> getReplaces()
-
getType
org.opencastproject.util.data.Option<String> getType()
-
getAvailable
org.opencastproject.util.data.Option<Interval> getAvailable()
-
getTemporalPeriod
org.opencastproject.util.data.Option<Date[]> getTemporalPeriod()
-
getTemporalInstant
org.opencastproject.util.data.Option<Date> getTemporalInstant()
-
getTemporalDuration
org.opencastproject.util.data.Option<Long> getTemporalDuration()
-
getTitles
org.opencastproject.util.data.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()
-
-