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 |
isApplicableForMimetype(String sourceMimetype)
Gets whether or not these transformation source options apply for the
given mimetype
|
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, getApplicabledMimetypes, getApplicableMimetypes, putParameterIfNotNull, setApplicableMimetypes
public boolean isApplicableForMimetype(String sourceMimetype)
AbstractTransformationSourceOptions
isApplicableForMimetype
in interface TransformationSourceOptions
isApplicableForMimetype
in class AbstractTransformationSourceOptions
sourceMimetype
- the mimetype of the sourcepublic String getOffset()
public void setOffset(String offset)
offset
- Stringpublic String getDuration()
public void setDuration(String duration)
duration
- Stringpublic static void validateTimeString(String value)
value
- Stringpublic TransformationSourceOptions mergedOptions(TransformationSourceOptions overridingOptions)
AbstractTransformationSourceOptions
TransformationSourceOptions
object from this
one, merging any non-null overriding fields in the given
overridingOptions
mergedOptions
in interface TransformationSourceOptions
mergedOptions
in class AbstractTransformationSourceOptions
overridingOptions
- TransformationSourceOptionsTransformationSourceOptions
objectpublic TransformationSourceOptions.TransformationSourceOptionsSerializer getSerializer()
TransformationSourceOptions
public static TransformationSourceOptions.TransformationSourceOptionsSerializer createSerializerInstance()
Copyright © 2005–2017 Alfresco Software. All rights reserved.