@MediaClass(uuid1=218169601, uuid2=257, uuid3=6912, uuid4={6,14,43,52,2,6,1,1}, definedName="DataDefinition", description="The DataDefinition class specifies the kind of data that can be stored in a Component.", symbol="DataDefinition") public class DataDefinitionImpl extends DefinitionObjectImpl implements DataDefinition, Serializable, Cloneable, DataDefinitionConstant
Implements a definition for the kind of data that can be stored in a component.
ObjectClassPropertyIDAuxiliary, DataEssence, DescriptiveMetadata, Edgecode, LegacyPicture, LegacySound, LegacyTimecode, Matte, ParsedText, Picture, PictureWithMatte, Sound, Timecode, Unknown| Constructor and Description |
|---|
DataDefinitionImpl() |
DataDefinitionImpl(AUID identification,
String name)
Creates and initializes the required fields of a data definition, which specifies
the kind of data that can be stored in a
component. |
| Modifier and Type | Method and Description |
|---|---|
DataDefinition |
clone()
Create a cloned copy of this interchange object.
|
static int |
count() |
boolean |
doesDataDefConvertFrom(DataDefinition dataDef)
Returns
true if data represented by this type of
data definition can be created by converting from the type
represented by the given data definition. |
boolean |
doesDataDefConvertTo(DataDefinition dataDef)
Returns
true if the data represented by this data
definition can be converted to the data definition given as an argument. |
static DataDefinition |
forAUID(AUID identification) |
static DataDefinition |
forIdentification(AUID identification) |
static DataDefinition |
forName(String dataDefinitionName) |
String |
getWeakTargetReference()
Provides a name that can be used to make a weak object reference to an
instance of the implementing class.
|
static Collection<String> |
inventory() |
boolean |
isAuxilaryKind()
Returns
true if the data definition represents
Auxiliary data; otherwise false. |
boolean |
isDataDefOf(DataDefinition dataDef)
Returns
true is this data definition matches the
data definition provided in the parameter; otherwise false. |
boolean |
isDescriptiveMetadataKind()
Returns
true if the data definition represents
data that is descriptive metadata; otherwise false. |
boolean |
isEdgecodeKind()
Returns
true if the data definition represents
data that is a stream of film edge code values; otherwise
false. |
boolean |
isMatteKind()
Returns
true in the data definition is a matte, in
other words a stream of essence that contains an image of alpha
values; otherwise false. |
boolean |
isPictureKind()
Returns
true is the data definition is a picture only;
otherwise returns false. |
boolean |
isPictureWithMatteKind()
Returns
true if the data definition is for a picture
with a matte; otherwise returns false. |
boolean |
isSoundKind()
Returns
true is a data definition corresponds to
sound data; otherwise returns false. |
boolean |
isTimecodeKind()
Returns
true if the data definition represents
data that is a stream of tape timecode values; otherwise
false. |
static boolean |
registerDataDefinition(DataDefinition definedDataDefinition) |
static int |
registerDataDefinitionsFromClass(Class<?> classWithDataDefinitions) |
getAUID, getDefinitionObjectIdentificationString, getDescription, getLocalizedUID, getName, initializeDefinitionObjectIdentification, initializeDefinitionObjectName, setAUID, setDefinitionObjectIdentificationString, setDescription, setLocalizedUID, setNameaddApplicationPlugin, appendXMLChildren, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getComment, getGeneration, getLinkedGenerationID, getLinkedGenerationIDString, getObjectClass, getPersistentID, getPersistentIndex, hashCode, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setLinkedGenerationIDString, setObjectClass, setPersistentID, setPersistentIndex, toStringgetAUID, getDescription, getName, setDescription, setNameaddApplicationPlugin, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getGeneration, getLinkedGenerationID, getObjectClass, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setObjectClass, toStringgetPersistentID, setPersistentIndexpublic DataDefinitionImpl()
public DataDefinitionImpl(AUID identification, @AAFString String name) throws NullPointerException
Creates and initializes the required fields of a data definition, which specifies
the kind of data that can be stored in a component.
identification - Unique identifier for the data definition.name - Name for the data definition.NullPointerException - One or both of the arguments is null.public static final int registerDataDefinitionsFromClass(Class<?> classWithDataDefinitions) throws NullPointerException
NullPointerExceptionpublic static final boolean registerDataDefinition(DataDefinition definedDataDefinition) throws NullPointerException
NullPointerExceptionpublic static final DataDefinition forName(String dataDefinitionName) throws NullPointerException
NullPointerExceptionpublic static final DataDefinition forIdentification(AUID identification) throws NullPointerException
NullPointerExceptionpublic static final DataDefinition forAUID(AUID identification) throws NullPointerException
NullPointerExceptionpublic static final Collection<String> inventory()
public static final int count()
public boolean doesDataDefConvertFrom(DataDefinition dataDef) throws NullPointerException
DataDefinitionReturns true if data represented by this type of
data definition can be created by converting from the type
represented by the given data definition. Matching takes place based
on the name property of the given
data definition.
doesDataDefConvertFrom in interface DataDefinitiondataDef - Data definition of the type of data to be converted from.NullPointerException - Argument is null.public boolean doesDataDefConvertTo(DataDefinition dataDef) throws NullPointerException
DataDefinitionReturns true if the data represented by this data
definition can be converted to the data definition given as an argument.
Matching takes place passed on the name
property of the data definition.
doesDataDefConvertTo in interface DataDefinitiondataDef - Data definition to compare this data definition with.NullPointerException - The given data definition is null.public boolean isAuxilaryKind()
DataDefinitionReturns true if the data definition represents
Auxiliary data; otherwise false.
isAuxilaryKind in interface DataDefinitionDataDefinitionConstant.Auxiliarypublic boolean isDataDefOf(DataDefinition dataDef) throws NullPointerException
DataDefinitionReturns true is this data definition matches the
data definition provided in the parameter; otherwise false.
Matching takes place using the name property of the definition.
isDataDefOf in interface DataDefinitiondataDef - Data definition to compare with.NullPointerException - The given data definition is null.public boolean isDescriptiveMetadataKind()
DataDefinitionReturns true if the data definition represents
data that is descriptive metadata; otherwise false.
isDescriptiveMetadataKind in interface DataDefinitionDataDefinitionConstant.DescriptiveMetadatapublic boolean isEdgecodeKind()
DataDefinitionReturns true if the data definition represents
data that is a stream of film edge code values; otherwise
false.
isEdgecodeKind in interface DataDefinitionDataDefinitionConstant.Edgecodepublic boolean isMatteKind()
DataDefinitionReturns true in the data definition is a matte, in
other words a stream of essence that contains an image of alpha
values; otherwise false.
isMatteKind in interface DataDefinitionDataDefinitionConstant.Mattepublic boolean isPictureKind()
DataDefinitionReturns true is the data definition is a picture only;
otherwise returns false.
isPictureKind in interface DataDefinitionDataDefinitionConstant.Picturepublic boolean isPictureWithMatteKind()
DataDefinitionReturns true if the data definition is for a picture
with a matte; otherwise returns false. Pictures like this
have both picture data alpha values.
isPictureWithMatteKind in interface DataDefinitionDataDefinitionConstant.PictureWithMattepublic boolean isSoundKind()
DataDefinitionReturns true is a data definition corresponds to
sound data; otherwise returns false.
isSoundKind in interface DataDefinitionDataDefinitionConstant.Soundpublic boolean isTimecodeKind()
DataDefinitionReturns true if the data definition represents
data that is a stream of tape timecode values; otherwise
false.
isTimecodeKind in interface DataDefinitionDataDefinitionConstant.Timecodepublic DataDefinition clone()
InterchangeObjectCreate a cloned copy of this interchange object.
clone in interface MediaEntityclone in interface DataDefinitionclone in interface DefinitionObjectclone in interface InterchangeObjectclone in class DefinitionObjectImplpublic String getWeakTargetReference()
WeakReferenceTargetProvides a name that can be used to make a weak object reference to an instance of the implementing class.
getWeakTargetReference in interface WeakReferenceTargetgetWeakTargetReference in class DefinitionObjectImpl(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.