| Modifier and Type | Field and Description |
|---|---|
static org.opencastproject.util.data.Function<DublinCoreValue,org.opencastproject.util.data.Option<Date>> |
EncodingSchemeUtils.dcValueToDate
|
static com.entwinemedia.fn.Fn<DublinCoreValue,Temporal> |
OpencastMetadataCodec.decodeTemporal
OpencastMetadataCodec.decodeTemporal(DublinCoreValue) as a function. |
| Modifier and Type | Method and Description |
|---|---|
static DublinCoreValue |
OpencastMetadataCodec.encodeDate(Date date)
Encode a date with day precision.
|
static DublinCoreValue |
EncodingSchemeUtils.encodeDate(Date date,
Precision precision)
Encode a date with the given precision into a Dublin Core string value, using the recommended W3C-DTF scheme.
|
static DublinCoreValue |
OpencastMetadataCodec.encodeDate(Date date,
Precision p)
Encode a date with a given precision.
|
static DublinCoreValue |
EncodingSchemeUtils.encodeDuration(long duration)
Encode a duration measured in milliseconds into a Dublin Core string using the
DublinCore.ENC_SCHEME_ISO8601 encoding scheme PTnHnMnS. |
static DublinCoreValue |
OpencastMetadataCodec.encodeDuration(long ms)
Encode a duration.
|
static DublinCoreValue |
OpencastMetadataCodec.encodePeriod(Date from,
Date to,
Precision precision)
Encode a period with a given precision.
|
static DublinCoreValue |
EncodingSchemeUtils.encodePeriod(DCMIPeriod period,
Precision precision)
Encode a period with the given precision into a Dublin Core string value using the recommended DCMI Period scheme.
|
DublinCoreValue |
DublinCore.getFirstVal(org.opencastproject.mediapackage.EName property)
Get the first value of a property, no matter what language it is in.
|
DublinCoreValue |
DublinCoreCatalog.getFirstVal(org.opencastproject.mediapackage.EName property) |
static DublinCoreValue |
DublinCoreValue.mk(String value)
Create a new Dublin Core value with the language set to undefined and no particular encoding scheme.
|
static DublinCoreValue |
DublinCoreValue.mk(String value,
String language)
Creates a new Dublin Core value without an encoding scheme.
|
static DublinCoreValue |
DublinCoreValue.mk(String value,
String language,
org.opencastproject.mediapackage.EName encodingScheme)
Create a new Dublin Core value.
|
static DublinCoreValue |
DublinCoreValue.mk(String value,
String language,
com.entwinemedia.fn.data.Opt<org.opencastproject.mediapackage.EName> encodingScheme)
Create a new Dublin Core value.
|
| Modifier and Type | Method and Description |
|---|---|
List<DublinCoreValue> |
DublinCore.get(org.opencastproject.mediapackage.EName property)
Get all values of a property no matter what language they have.
|
List<DublinCoreValue> |
DublinCoreCatalog.get(org.opencastproject.mediapackage.EName property) |
protected com.entwinemedia.fn.data.Opt<DublinCoreValue> |
OpencastDctermsDublinCore.getFirstVal(org.opencastproject.mediapackage.EName property)
Like
DublinCore.getFirstVal(EName) but with the result wrapped in an Opt. |
Map<org.opencastproject.mediapackage.EName,List<DublinCoreValue>> |
DublinCore.getValues()
Get all contained values grouped by property.
|
Map<org.opencastproject.mediapackage.EName,List<DublinCoreValue>> |
DublinCoreCatalog.getValues() |
List<DublinCoreValue> |
DublinCore.getValuesFlat()
Get all values as a flat list.
|
List<DublinCoreValue> |
DublinCoreCatalog.getValuesFlat() |
| Modifier and Type | Method and Description |
|---|---|
void |
DublinCore.add(org.opencastproject.mediapackage.EName property,
DublinCoreValue value)
Add a value to a property.
|
void |
DublinCoreCatalog.add(org.opencastproject.mediapackage.EName property,
DublinCoreValue value) |
static Date |
EncodingSchemeUtils.decodeDate(DublinCoreValue value)
Tries to decode the given value as a W3C-DTF encoded date.
|
static Long |
EncodingSchemeUtils.decodeDuration(DublinCoreValue value)
Decode a string encoded in the ISO8601 encoding scheme.
|
static Date |
EncodingSchemeUtils.decodeMandatoryDate(DublinCoreValue value)
Like
EncodingSchemeUtils.decodeDate(String), but throws an IllegalArgumentException if the value cannot be decoded. |
static Long |
EncodingSchemeUtils.decodeMandatoryDuration(DublinCoreValue value) |
static DCMIPeriod |
EncodingSchemeUtils.decodeMandatoryPeriod(DublinCoreValue value)
Like
EncodingSchemeUtils.decodePeriod(String), but throws an IllegalArgumentException if the value cannot be decoded. |
static Temporal |
EncodingSchemeUtils.decodeMandatoryTemporal(DublinCoreValue value)
Like
EncodingSchemeUtils.decodeTemporal(DublinCoreValue), but throws an IllegalArgumentException if the value cannot
be decoded. |
static DCMIPeriod |
EncodingSchemeUtils.decodePeriod(DublinCoreValue value)
Tries to decode a string in the DCMI period format, using W3C-DTF for the encoding of the individual dates.
|
static Temporal |
EncodingSchemeUtils.decodeTemporal(DublinCoreValue value)
Tries to decode the value to a temporal object.
|
static Temporal |
OpencastMetadataCodec.decodeTemporal(DublinCoreValue temporal)
Decode a temporal value.
|
void |
DublinCore.set(org.opencastproject.mediapackage.EName property,
DublinCoreValue value)
Set a property to a value, overwriting an existing value.
|
void |
DublinCoreCatalog.set(org.opencastproject.mediapackage.EName property,
DublinCoreValue value) |
| Modifier and Type | Method and Description |
|---|---|
void |
DublinCore.set(org.opencastproject.mediapackage.EName property,
List<DublinCoreValue> values)
Set a property to a list of values, overwriting any existing.
|
void |
DublinCoreCatalog.set(org.opencastproject.mediapackage.EName property,
List<DublinCoreValue> values) |
Copyright © 2009–2019 Opencast Project. All rights reserved.