Package io.opentimeline.opentimelineio
Class SerializableObject
java.lang.Object
io.opentimeline.OTIOObject
io.opentimeline.opentimelineio.SerializableObject
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
SerializableObjectWithMetadata,UnknownSchema
public class SerializableObject extends OTIOObject
Base object for things that can be [de]serialized to/from .otio files.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SerializableObject() -
Method Summary
Modifier and Type Method Description SerializableObjectclone(ErrorStatus errorStatus)Create a deepcopy of the SerializableObjectintcurrentRefCount()AnyDictionarydynamicFields()booleanequals(java.lang.Object obj)static SerializableObjectfromJSONFile(java.lang.String fileName, ErrorStatus errorStatus)static SerializableObjectfromJSONString(java.lang.String input, ErrorStatus errorStatus)booleanisEquivalentTo(SerializableObject serializableObject)Returns true if the contents of self and other match.booleanisUnknownSchema()In general, SerializableObject will have a known schema but UnknownSchema subclass will redefine this property to be Truejava.lang.StringschemaName()intschemaVersion()booleantoJSONFile(java.lang.String fileName, ErrorStatus errorStatus)booleantoJSONFile(java.lang.String fileName, ErrorStatus errorStatus, int indent)java.lang.StringtoJSONString(ErrorStatus errorStatus)java.lang.StringtoJSONString(ErrorStatus errorStatus, int indent)java.lang.StringtoString()
-
Constructor Details
-
SerializableObject
public SerializableObject()
-
-
Method Details
-
toJSONFile
-
toJSONFile
-
toJSONString
-
toJSONString
-
fromJSONFile
-
fromJSONString
-
isEquivalentTo
Returns true if the contents of self and other match.- Parameters:
serializableObject- other SerializableObject- Returns:
- true if the contents of both match, otherwise false
-
clone
Create a deepcopy of the SerializableObject- Parameters:
errorStatus- errorStatus to report error while cloning- Returns:
- a deepcopy of the object
-
dynamicFields
-
isUnknownSchema
public boolean isUnknownSchema()In general, SerializableObject will have a known schema but UnknownSchema subclass will redefine this property to be True- Returns:
- true if schema is unknown, otherwise false
-
schemaName
public java.lang.String schemaName() -
schemaVersion
public int schemaVersion() -
currentRefCount
public int currentRefCount() -
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-