public class TemporalSourceOptions extends AbstractTransformationSourceOptions
If only the offset is specified transformers should attempt a transform from that offset to the end if possible.
If only a duration is specified transformers should attempt a transform from the start until that duration is reached if possible.
| Modifier and Type | Class and Description |
|---|---|
class |
TemporalSourceOptions.TemporalSourceOptionsSerializer
Serializer for temporal source options
|
TransformationSourceOptions.TransformationSourceOptionsSerializer| Constructor and Description |
|---|
TemporalSourceOptions() |
| Modifier and Type | Method and Description |
|---|---|
static TransformationSourceOptions.TransformationSourceOptionsSerializer |
createSerializerInstance()
Creates an instance of the options serializer
|
String |
getDuration()
Gets the duration of the source to read
with a format of hh:mm:ss[.xxx]
|
String |
getOffset()
Gets the offset time code from which to start the transformation
with a format of hh:mm:ss[.xxx]
|
TransformationSourceOptions.TransformationSourceOptionsSerializer |
getSerializer()
Gets the serializer for the source options.
|
boolean |
isApplicableForMediaType(String sourceMimetype)
Gets whether or not these transformation source options apply for the
given media type
|
TransformationSourceOptions |
mergedOptions(TransformationSourceOptions overridingOptions)
Creates a new
TransformationSourceOptions object from this
one, merging any non-null overriding fields in the given
overridingOptions |
void |
setDuration(String duration)
Sets the duration of the source to read
with a format of hh:mm:ss[.xxx]
|
void |
setOffset(String offset)
Sets the offset time code from which to start the transformation
with a format of hh:mm:ss[.xxx]
|
static void |
validateTimeString(String value)
Validates that the given value is of the form hh:mm:ss[.xxx]
|
clone, getApplicableMediaTypes, putParameterIfNotNull, setApplicableMediaTypes, toStringpublic boolean isApplicableForMediaType(String sourceMimetype)
AbstractTransformationSourceOptionsisApplicableForMediaType in interface TransformationSourceOptionsisApplicableForMediaType in class AbstractTransformationSourceOptionssourceMimetype - the media type of the sourcepublic String getOffset()
public void setOffset(String offset)
offset - public String getDuration()
public void setDuration(String duration)
duration - public static void validateTimeString(String value)
value - public TransformationSourceOptions mergedOptions(TransformationSourceOptions overridingOptions)
AbstractTransformationSourceOptionsTransformationSourceOptions object from this
one, merging any non-null overriding fields in the given
overridingOptionsmergedOptions in interface TransformationSourceOptionsmergedOptions in class AbstractTransformationSourceOptionsTransformationSourceOptions objectpublic TransformationSourceOptions.TransformationSourceOptionsSerializer getSerializer()
TransformationSourceOptionspublic static TransformationSourceOptions.TransformationSourceOptionsSerializer createSerializerInstance()
Copyright © 2014 Alfresco Software. All rights reserved.