Class DublinCores
java.lang.Object
org.opencastproject.metadata.dublincore.DublinCores
Factory for metadata catalogs following the DublinCore standard.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringNamespace name of Dublin Core metadata generated by Opencast.static final ENameThe dc root element of Opencast DublinCore catalogs.static final ENamestatic final ENameOpencast property: The timezone of the agent specified to be scheduled with an event.static final ENamestatic final ENamestatic final StringPrefix for Opencast properties.static final StringNamespace URI for Opencast properties.static final ENamestatic final ENameThis is a string defining a recurrence pattern as specified in RFC 2445. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Create a new Opencast DublinCore metadata catalog for episodes.Create an Opencast episode DublinCore accessor for aDublinCoreCatalog.Create a new Opencast DublinCore metadata catalog for series.static DublinCoreCatalogmkSimple()Create a new empty catalog with no special namespace registered, no root tag and no flavor.static DublinCoreCatalogCreate a new empty catalog suitable to take properties from the standard DublinCore namespacesDublinCore.ELEMENTS_1_1_NS_URIandDublinCore.TERMS_NS_URI.static DublinCoreCatalogread(InputStream in) Read a DublinCore catalog from a stream containing either JSON or XML.
-
Field Details
-
OC_DC_CATALOG_NS_URI
Namespace name of Dublin Core metadata generated by Opencast. By default this namespace is the default namespace of xml documents generated by this class.- See Also:
-
OC_DC_CATALOG_ROOT_ELEMENT
The dc root element of Opencast DublinCore catalogs. -
OC_PROPERTY_NS_URI
Namespace URI for Opencast properties.- See Also:
-
OC_PROPERTY_NS_PREFIX
Prefix for Opencast properties.- See Also:
-
OC_PROPERTY_AGENT_TIMEZONE
Opencast property: The timezone of the agent specified to be scheduled with an event. IE: "America/Chicago" -
OC_PROPERTY_RECURRENCE
This is a string defining a recurrence pattern as specified in RFC 2445. See http://tools.ietf.org/html/rfc2445#section-4.8.5.4 -
OC_PROPERTY_ANNOTATION
-
OC_PROPERTY_ADVERTISED
-
OC_PROPERTY_PROMOTED
-
OC_PROPERTY_DURATION
-
-
Method Details
-
mkOpencast
Deprecated.usemkOpencastEpisode()insteadCreate a new Opencast DublinCore metadata catalog for episodes.- Set flavor to
MediaPackageElements.EPISODE. - Register all necessary namespaces and set the root tag to
OC_DC_CATALOG_ROOT_ELEMENT. - The catalog does not have an identifier and the
identifierproperty is not set.
- Set flavor to
-
mkOpencastEpisode
Create a new Opencast DublinCore metadata catalog for episodes.- Set flavor to
MediaPackageElements.EPISODE. - Register all necessary namespaces and set the root tag to
OC_DC_CATALOG_ROOT_ELEMENT. - The catalog does not have an identifier and the
identifierproperty is not set.
- Set flavor to
-
mkOpencastEpisode
Create an Opencast episode DublinCore accessor for aDublinCoreCatalog. Read and write operations access and modify the wrapped catalog. -
mkOpencastSeries
Create a new Opencast DublinCore metadata catalog for series.- Set flavor to
MediaPackageElements.SERIES. - Register all necessary namespaces and set the root tag to
OC_DC_CATALOG_ROOT_ELEMENT. - The catalog does not have an identifier and the
identifierproperty is not set.
- Set flavor to
-
mkStandard
Create a new empty catalog suitable to take properties from the standard DublinCore namespacesDublinCore.ELEMENTS_1_1_NS_URIandDublinCore.TERMS_NS_URI.Please note that neither a flavor nor a root tag is set.
-
mkSimple
Create a new empty catalog with no special namespace registered, no root tag and no flavor. -
read
Read a DublinCore catalog from a stream containing either JSON or XML. The method is capable of detecting the used format.The reader is not capable of determining the catalog's flavor.
Implementation note: In order to detect the format the whole stream is read into memory first.
-
mkOpencastEpisode()instead