|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tv.amwa.maj.entity.InterchangeObject tv.amwa.maj.entity.DefinitionObject tv.amwa.maj.entity.DataDefinition
@AAFClass(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.") public class DataDefinition
Implements a definition for the kind of data that can be stored in a component.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
Nested Class Summary | |
---|---|
static class |
DataDefinition.XMLHandler
|
Nested classes/interfaces inherited from class tv.amwa.maj.entity.DefinitionObject |
---|
DefinitionObject.DefinitionObjectXMLHandler |
Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
---|
InterchangeObject.InterchangeObjectXMLHandler |
Field Summary |
---|
Fields inherited from interface tv.amwa.maj.constant.DataDefinitionConstant |
---|
Auxiliary, DataEssence, DescriptiveMetadata, Edgecode, LegacyPicture, LegacySound, LegacyTimecode, Matte, ParsedText, Picture, PictureWithMatte, Sound, Timecode, Unknown |
Constructor Summary | |
---|---|
DataDefinition(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 . |
Method Summary | |
---|---|
void |
appendXMLChildren(Node parent)
Append child elements to the given parent node to serialize the value of an object to an XML fragment. |
DataDefinition |
clone()
Creates a cloned copy of this entity. |
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 |
forIdentification(AUID identification)
|
static DataDefinition |
forName(String dataDefinitionName)
|
String |
getLocalizedUID()
|
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)
|
void |
setPropertiesFromInterface(DataDefinition castFrom)
|
Methods inherited from class tv.amwa.maj.entity.DefinitionObject |
---|
equals, getAUID, getDescription, getName, hashCode, setDescription, setLocalizedUID, setName |
Methods inherited from class tv.amwa.maj.entity.InterchangeObject |
---|
castFromInterface, countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, registerImplementation, setPropertiesFromInterface, setPropertyValue, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface tv.amwa.maj.iface.DefinitionObject |
---|
getAUID, getDescription, getName, setDescription, setName |
Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
Methods inherited from interface tv.amwa.maj.entity.MAJCommon |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public DataDefinition(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
.Method Detail |
---|
public static final int registerDataDefinitionsFromClass(Class<?> classWithDataDefinitions) throws NullPointerException
NullPointerException
public static final boolean registerDataDefinition(DataDefinition definedDataDefinition) throws NullPointerException
NullPointerException
public static final DataDefinition forName(String dataDefinitionName) throws NullPointerException
NullPointerException
public static final DataDefinition forIdentification(AUID identification) throws NullPointerException
NullPointerException
public final void setPropertiesFromInterface(DataDefinition castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)
public boolean doesDataDefConvertFrom(DataDefinition dataDef) throws NullPointerException
DataDefinition
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. Matching takes place based
on the name property
of the given
data definition.
doesDataDefConvertFrom
in interface DataDefinition
dataDef
- Data definition of the type of data to be converted from.
NullPointerException
- Argument is null.public boolean doesDataDefConvertTo(DataDefinition dataDef) throws NullPointerException
DataDefinition
Returns 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 DataDefinition
dataDef
- Data definition to compare this data definition with.
NullPointerException
- The given data definition is null
.public boolean isAuxilaryKind()
DataDefinition
Returns true
if the data definition represents
Auxiliary data; otherwise false
.
isAuxilaryKind
in interface DataDefinition
DataDefinitionConstant.Auxiliary
public boolean isDataDefOf(DataDefinition dataDef) throws NullPointerException
DataDefinition
Returns 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 DataDefinition
dataDef
- Data definition to compare with.
NullPointerException
- The given data definition is null
.public boolean isDescriptiveMetadataKind()
DataDefinition
Returns true
if the data definition represents
data that is descriptive metadata; otherwise false
.
isDescriptiveMetadataKind
in interface DataDefinition
DataDefinitionConstant.DescriptiveMetadata
public boolean isEdgecodeKind()
DataDefinition
Returns true
if the data definition represents
data that is a stream of film edge code values; otherwise
false
.
isEdgecodeKind
in interface DataDefinition
DataDefinitionConstant.Edgecode
public boolean isMatteKind()
DataDefinition
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
.
isMatteKind
in interface DataDefinition
DataDefinitionConstant.Matte
public boolean isPictureKind()
DataDefinition
Returns true
is the data definition is a picture only;
otherwise returns false
.
isPictureKind
in interface DataDefinition
DataDefinitionConstant.Picture
public boolean isPictureWithMatteKind()
DataDefinition
Returns 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 DataDefinition
DataDefinitionConstant.PictureWithMatte
public boolean isSoundKind()
DataDefinition
Returns true
is a data definition corresponds to
sound data; otherwise returns false.
isSoundKind
in interface DataDefinition
DataDefinitionConstant.Sound
public boolean isTimecodeKind()
DataDefinition
Returns true
if the data definition represents
data that is a stream of tape timecode values; otherwise
false
.
isTimecodeKind
in interface DataDefinition
DataDefinitionConstant.Timecode
public DataDefinition clone()
MAJCommon
Creates a cloned copy of this entity. The clone will be initialized to have the same value as this value but exists independently from then on. Changes to this value will not effect the clone and changes to the clone will not effect this. MAJ API clones are true deep clones with no shared references to areas of memory within the original.
This method does not throw a CloneNotSupportedException
as all
entity values must implement the Cloneable
interface. If a cloning
error does occur, a null
value will be returned but this is very unlikely
to happen.
clone
in interface MAJCommon
clone
in class DefinitionObject
Object.clone()
public String getLocalizedUID()
getLocalizedUID
in class DefinitionObject
public void appendXMLChildren(Node parent)
XMLSerializable
Append child elements to the given parent node to serialize the value of an object
to an XML fragment. Methods of the XMLBuilder
class are provided to help with this
process.
appendXMLChildren
in interface XMLSerializable
appendXMLChildren
in class DefinitionObject
parent
- XML parent element to append child nodes to.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |