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() |
TemporalSourceOptions(TemporalSourceOptions options) |
| 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]
|
Integer |
getElementIntervalSeconds()
Gets the interval in seconds to pull elements from the source,
i.e.
|
Integer |
getMaxElements()
Gets the maximum number of elements that should be
returned from the transformation.
|
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
|
void |
setDuration(String duration)
Sets the duration of the source to read
with a format of hh:mm:ss[.xxx]
|
void |
setElementIntervalSeconds(Integer elementIntervalSeconds)
Sets the interval in seconds to pull elements from the source,
i.e.
|
void |
setMaxElements(Integer maxElements)
Sets the maximum number of elements that should be
returned from the transformation.
|
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]
|
getApplicableMediaTypes, merge, putParameterIfNotNull, setApplicableMediaTypes, toStringpublic TemporalSourceOptions()
public TemporalSourceOptions(TemporalSourceOptions options)
public 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 Integer getElementIntervalSeconds()
public void setElementIntervalSeconds(Integer elementIntervalSeconds)
elementIntervalSeconds - public Integer getMaxElements()
public void setMaxElements(Integer maxElements)
maxElements - public static void validateTimeString(String value)
value - public TransformationSourceOptions.TransformationSourceOptionsSerializer getSerializer()
TransformationSourceOptionspublic static TransformationSourceOptions.TransformationSourceOptionsSerializer createSerializerInstance()
Copyright © 2015 Alfresco Software. All rights reserved.