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 classSerializableCollection.SerializableCollectionBuilderNested classes/interfaces inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
SerializableObjectWithMetadata.SerializableObjectWithMetadataBuilder -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedSerializableCollection()SerializableCollection(SerializableCollection.SerializableCollectionBuilder serializableCollectionBuilder)SerializableCollection(java.lang.String name, java.util.List<SerializableObject> children, AnyDictionary metadata) -
Method Summary
Modifier and Type Method Description voidclearChildren()<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()voidinsertChild(int index, SerializableObject child)booleanremoveChild(int index, ErrorStatus errorStatus)booleansetChild(int index, SerializableObject child, ErrorStatus errorStatus)voidsetChildren(java.util.List<SerializableObject> children)java.lang.StringtoString()Methods inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
getMetadata, getName, setMetadata, setNameMethods 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:
toStringin classSerializableObjectWithMetadata
-