Package io.opentimeline.opentimelineio
Class SerializableCollection
java.lang.Object
io.opentimeline.OTIOObject
io.opentimeline.opentimelineio.SerializableObject
io.opentimeline.opentimelineio.SerializableObjectWithMetadata
io.opentimeline.opentimelineio.SerializableCollection
- All Implemented Interfaces:
java.lang.AutoCloseable
public class SerializableCollection extends SerializableObjectWithMetadata
A kind of composition which can hold any serializable object.
This composition approximates the concept of a `bin` - a collection of
SerializableObjects that do not have any compositing meaning, but can
serialize to/from OTIO correctly, with metadata and a named collection.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SerializableCollection.SerializableCollectionBuilder
Nested classes/interfaces inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
SerializableObjectWithMetadata.SerializableObjectWithMetadataBuilder
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
SerializableCollection()
SerializableCollection(SerializableCollection.SerializableCollectionBuilder serializableCollectionBuilder)
SerializableCollection(java.lang.String name, java.util.List<SerializableObject> children, AnyDictionary metadata)
-
Method Summary
Modifier and Type Method Description void
clearChildren()
<T extends Composable>
java.util.stream.Stream<T>eachChild(TimeRange searchRange, java.lang.Class<T> descendedFrom, ErrorStatus errorStatus)
java.util.stream.Stream<Clip>
eachClip(TimeRange searchRange, ErrorStatus errorStatus)
java.util.List<SerializableObject>
getChildren()
void
insertChild(int index, SerializableObject child)
boolean
removeChild(int index, ErrorStatus errorStatus)
boolean
setChild(int index, SerializableObject child, ErrorStatus errorStatus)
void
setChildren(java.util.List<SerializableObject> children)
java.lang.String
toString()
Methods inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
getMetadata, getName, setMetadata, setName
Methods inherited from class io.opentimeline.opentimelineio.SerializableObject
clone, currentRefCount, dynamicFields, equals, fromJSONFile, fromJSONString, isEquivalentTo, isUnknownSchema, schemaName, schemaVersion, toJSONFile, toJSONFile, toJSONString, toJSONString
-
Constructor Details
-
SerializableCollection
protected SerializableCollection() -
SerializableCollection
public SerializableCollection(java.lang.String name, java.util.List<SerializableObject> children, AnyDictionary metadata) -
SerializableCollection
public SerializableCollection(SerializableCollection.SerializableCollectionBuilder serializableCollectionBuilder)
-
-
Method Details
-
getChildren
-
setChildren
-
clearChildren
public void clearChildren() -
setChild
-
insertChild
-
removeChild
-
eachChild
public <T extends Composable> java.util.stream.Stream<T> eachChild(TimeRange searchRange, java.lang.Class<T> descendedFrom, ErrorStatus errorStatus) -
eachClip
-
toString
public java.lang.String toString()- Overrides:
toString
in classSerializableObjectWithMetadata
-