Package io.opentimeline.opentimelineio
Class Composable
java.lang.Object
io.opentimeline.OTIOObject
io.opentimeline.opentimelineio.SerializableObject
io.opentimeline.opentimelineio.SerializableObjectWithMetadata
io.opentimeline.opentimelineio.Composable
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
Item
,Transition
public class Composable extends SerializableObjectWithMetadata
An object that can be composed by tracks.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Composable.ComposableBuilder
Nested classes/interfaces inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
SerializableObjectWithMetadata.SerializableObjectWithMetadataBuilder
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
Composable()
Composable(AnyDictionary metadata)
Composable(Composable.ComposableBuilder builder)
Composable(java.lang.String name)
Composable(java.lang.String name, AnyDictionary metadata)
-
Method Summary
Modifier and Type Method Description RationalTime
getDuration(ErrorStatus errorStatus)
boolean
isOverlapping()
boolean
isVisible()
Composition
parent()
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
-
Composable
protected Composable() -
Composable
-
Composable
public Composable(java.lang.String name) -
Composable
-
Composable
-
-
Method Details
-
isVisible
public boolean isVisible()- Returns:
- the visibility of the Composable. By default true.
-
isOverlapping
public boolean isOverlapping()- Returns:
- Return whether an Item is overlapping. By default false.
-
parent
- Returns:
- the parent Composable, or null if this has no parent.
-
getDuration
- Parameters:
errorStatus
- errorStatus to report in case this is not implemented in a sub-class.- Returns:
- the duration of the Composable object.
-
toString
public java.lang.String toString()- Overrides:
toString
in classSerializableObjectWithMetadata
-