|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttv.amwa.maj.entity.InterchangeObject
tv.amwa.maj.entity.Dictionary
@AAFClass(uuid1=218169601, uuid2=257, uuid3=8704, uuid4={6,14,43,52,2,6,1,1}, definedName="Dictionary", description="The Dictionary class has DefinitionObject objects.") public class Dictionary
Implements a container for definitions. The dictionary specified here is both an AAF Dictionary and an AAF MetaDictionary. Every AAF file has a dictionary within its header and contains a representation of the meta dictionary.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
Nested Class Summary | |
---|---|
static class |
Dictionary.CodecDefinitionsXMLHandler
|
static class |
Dictionary.ContainerDefinitionsXMLHandler
|
static class |
Dictionary.DataDefinitionsXMLHandler
|
static class |
Dictionary.InterpolationDefinitionsXMLHandler
|
static class |
Dictionary.KLVDataDefinitionsXMLHandler
|
static class |
Dictionary.OperationDefinitionsXMLHandler
|
static class |
Dictionary.ParameterDefinitionsXMLHandler
|
static class |
Dictionary.PluginDefinitionsXMLHandler
|
static class |
Dictionary.TaggedValueDefinitionsXMLHandler
|
static class |
Dictionary.XMLHandler
|
Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
---|
InterchangeObject.InterchangeObjectXMLHandler |
Field Summary | |
---|---|
static String |
DICTIONARY_TAG
|
Constructor Summary | |
---|---|
Dictionary()
Creates and initializes a new dictionary object, which has the definition objects of an AAF persistent unit. |
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. |
Dictionary |
clone()
Creates a cloned copy of this entity. |
int |
countClassDefinitions()
Returns the number of class definitions contained in this dictionary. |
int |
countCodecDefinitions()
Returns the number of codec definitions contained in this dictionary. |
int |
countContainerDefinitions()
Returns the number of container definitions contained in this dictionary. |
int |
countDataDefinitions()
Returns the number of data definitions contained in this dictionary. |
int |
countInterpolationDefinitions()
Returns the number of interpolation definitions contained in this dictionary. |
int |
countKLVDataDefinitions()
Returns the number of KLV data definitions contained in this dictionary. |
int |
countOpaqueTypeDefinitions()
Returns the number of opaque type definitions in the dictionary. |
int |
countOperationDefinitions()
Returns the number of operation definitions contained in this dictionary. |
int |
countParameterDefinitions()
Returns the number of parameter definitions contained in this dictionary. |
int |
countPluginDefinitions()
Returns the number of plugin definitions contained in this dictionary. |
int |
countTaggedValueDefinitions()
Returns the number of tagged value definitions contained in this dictionary. |
int |
countTypeDefinitions()
Returns the number of type definitions contained in the dictionary. |
void |
createForwardClassReference(AUID classId)
Creates a forward class reference that is used to allow a class definition to be referenced before it has had its full definition stored into this dictionary. |
InterchangeObject |
createInstance(AUID identification)
Creates a single uninitialized AAF object of the class associated with a specified stored object id. |
MetaDefinition |
createMetaInstance(AUID identification)
Creates a single uninitialized AAF meta class or type associated with a specified stored object id. |
Set<ClassDefinition> |
getClassDefinitions()
Returns the set of all class definitions in this dictionary. |
Set<CodecDefinition> |
getCodecDefinitions()
Returns a set of all the codec definitions contained in the dictionary. |
Set<ContainerDefinition> |
getContainerDefinitions()
Returns the set of all container definitions contained in this dictionary. |
Set<DataDefinition> |
getDataDefinitions()
Returns the set of data definitions contained in this dictionary. |
long |
getId()
|
Set<InterpolationDefinition> |
getInterpolationDefinitions()
Returns the set of interpolation definitions contained in this dictionary. |
Set<KLVDataDefinition> |
getKLVDataDefinitions()
Returns the set of KLV data definitions contained in this dictionary. |
Set<TypeDefinition> |
getOpaqueTypeDefinitions()
Return the set of all registered opaque type definitions in the dictionary. |
Set<OperationDefinition> |
getOperationDefinitions()
Returns the set of operation definitions contained in this dictionary. |
Set<ParameterDefinition> |
getParameterDefinitions()
Returns the set of parameter definitions contained in this dictionary. |
Set<PluginDefinition> |
getPluginDefinitions()
Returns the set of plugin definitions contained in this dictionary. |
Set<TaggedValueDefinition> |
getTaggedValueDefinitions()
Returns a set of all tagged value definitions contained in this dictionary. |
Set<TypeDefinition> |
getTypeDefinitions()
Returns the set of all type definitions contained within this dictionary. |
boolean |
hasForwardClassReference(AUID classId)
Returns true if the given class identification is a
forward reference registered with this dictionary. |
DataDefinition |
lookupAuxiliaryDataDefinition()
Returns the auxiliary data definition. |
ClassDefinition |
lookupClassDefinition(AUID id)
Returns the class definition with the given identifier that is contained in this dictionary. |
CodecDefinition |
lookupCodecDefinition(AUID codecId)
Returns the codec definition with the given identifier that is contained in this dictionary. |
ContainerDefinition |
lookupContainerDefinition(AUID containerId)
Returns the container definition with the given identifier that is contained in this dictionary. |
DataDefinition |
lookupDataDefinition(AUID dataDefinitionId)
Return the data definition with the given identifier that is contained in this dictionary. |
DataDefinition |
lookupDescriptiveMedadataDataDefinition()
Returns the descriptive metadata data definition. |
DataDefinition |
lookupEdgecodeDataDefinition()
Returns the edgecode data definition. |
InterpolationDefinition |
lookupInterpoliationDefinition(AUID interpolationId)
Returns the interpolation definition with the given identifier that is contained in this dictionary. |
KLVDataDefinition |
lookupKLVDataDefinition(AUID defId)
Returns the KLV data definition with the given identifier that is contained in this dictionary |
DataDefinition |
lookupLegacyPictureDataDefinition()
Returns the legacy picture data definition. |
DataDefinition |
lookupLegacySoundDataDefinition()
Returns the legacy sound data definition. |
DataDefinition |
lookupLegacyTimecodeDataDefinition()
Returns the legacy timecode data definition. |
DataDefinition |
lookupMatteDataDefinition()
Returns the matte data definition. |
TypeDefinition |
lookupOpaqueTypeDefinition(AUID typeId)
Return the opaque type definition with the given id. |
OperationDefinition |
lookupOperationDefinition(AUID operationId)
Return the operation definition with the given identifier that is contained in this dictionary. |
ParameterDefinition |
lookupParameterDefinition(AUID parameterId)
Returns the parameter definition with the given identifier that is contained in this dictionary. |
DataDefinition |
lookupPictureDataDefinition()
Returns the picture data definition. |
DataDefinition |
lookupPictureWithMatteDataDefinition()
Returns the picture with matte data definition. |
PluginDefinition |
lookupPluginDefinition(AUID pluginId)
Return the plugin definition with the given identifier that is contained in this dictionary. |
DataDefinition |
lookupSoundDataDefinition()
Returns a sound data definition. |
TaggedValueDefinition |
lookupTaggedValueDefinition(AUID defId)
Returns the tagged value definition with the given identifier that is contained in this dictionary. |
DataDefinition |
lookupTimecodeDataDefinition()
Returns the timecode data definition. |
TypeDefinition |
lookupTypeDefinition(AUID id)
Return the type definition with the given identifier that is contained within this dictionary. |
void |
registerClassDefinition(ClassDefinition classDef)
Add a class definition to those contained in this dictionary. |
void |
registerCodecDefinition(CodecDefinition codecDef)
Add a codec definition to those contained in this dictionary. |
void |
registerContainerDefinition(ContainerDefinition containerDefinition)
Add a container definition to those contained in this dictionary. |
void |
registerDataDefinition(DataDefinition dataDef)
Add a data definition to the those contained in this dictionary. |
void |
registerInterpolationDefinition(InterpolationDefinition interpolationDefinition)
Add an interpolation definition to those contained in this dictionary. |
void |
registerKLVDataDefinition(KLVDataDefinition klvDataDefinition)
Add a KLV data definition to those contained in the dictionary. |
void |
registerKLVDataKey(AUID uid,
TypeDefinition typeDef)
Add the definition for the given KLV key to the runtime dictionary. |
void |
registerOpaqueTypeDefinition(TypeDefinition typeDef)
Add the opaque type definition to the dictionary. |
void |
registerOperationDefinition(OperationDefinition operationDefinition)
Add a operation definition to those contained in the dictionary. |
void |
registerParameterDefinition(ParameterDefinition parameterDefinition)
Add a parameter definition to those contained in the dictionary. |
void |
registerPluginDefinition(PluginDefinition pluginDefinition)
Add a plugin definition to those contained in this dictionary. |
void |
registerTaggedValueDefinition(TaggedValueDefinition def)
Add the tagged value definition to those contained in this dictionary. |
void |
registerTypeDefinition(TypeDefinition typeDef)
Add a type definition to those contained in this dictionary. |
void |
setId(long id)
|
void |
setPropertiesFromInterface(Dictionary castFrom)
|
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Field Detail |
---|
public static final String DICTIONARY_TAG
Constructor Detail |
---|
public Dictionary()
Creates and initializes a new dictionary object, which has the definition objects of an AAF persistent unit. All the sets of items in the dictionary are initialized to empty sets.
Method Detail |
---|
public final void setPropertiesFromInterface(Dictionary castFrom)
public int countClassDefinitions()
Dictionary
Returns the number of class definitions contained in this dictionary.
countClassDefinitions
in interface Dictionary
public int countCodecDefinitions()
Dictionary
Returns the number of codec definitions contained in this dictionary.
countCodecDefinitions
in interface Dictionary
public int countContainerDefinitions()
Dictionary
Returns the number of container definitions contained in this dictionary.
countContainerDefinitions
in interface Dictionary
public int countDataDefinitions()
Dictionary
Returns the number of data definitions contained in this dictionary.
countDataDefinitions
in interface Dictionary
public int countInterpolationDefinitions()
Dictionary
Returns the number of interpolation definitions contained in this dictionary.
countInterpolationDefinitions
in interface Dictionary
public int countKLVDataDefinitions()
Dictionary
Returns the number of KLV data definitions contained in this dictionary.
countKLVDataDefinitions
in interface Dictionary
public int countOpaqueTypeDefinitions()
Dictionary
Returns the number of opaque type definitions in the dictionary.
countOpaqueTypeDefinitions
in interface Dictionary
public int countOperationDefinitions()
Dictionary
Returns the number of operation definitions contained in this dictionary.
countOperationDefinitions
in interface Dictionary
public int countParameterDefinitions()
Dictionary
Returns the number of parameter definitions contained in this dictionary.
countParameterDefinitions
in interface Dictionary
public int countPluginDefinitions()
Dictionary
Returns the number of plugin definitions contained in this dictionary.
countPluginDefinitions
in interface Dictionary
public int countTaggedValueDefinitions()
Dictionary
countTaggedValueDefinitions
in interface Dictionary
public int countTypeDefinitions()
Dictionary
Returns the number of type definitions contained in the dictionary.
countTypeDefinitions
in interface Dictionary
public void createForwardClassReference(AUID classId) throws InvalidParameterException
Dictionary
Creates a forward class reference that is used to allow a class definition to be referenced before it has had its full definition stored into this dictionary.
createForwardClassReference
in interface Dictionary
classId
- Unique class identifier for the forward reference.
InvalidParameterException
- The given ID represents an existing
forward class reference or a class definition that has already been
successfully registered.public InterchangeObject createInstance(AUID identification) throws NotImplementedException
Dictionary
Creates a single uninitialized AAF object of the class associated with a specified stored object id. This method is not implemented in the MAJ API as it is not possible to create an uninitialized object. This methods always throws an NotImplementedException and the functionality is replaced by the AAF factory.
This method is a factory for creating objects found within an AAF file.
createInstance
in interface Dictionary
identification
- Class identifier (id) of the stored object. This is the
corresponding SMPTE identifier (as a GUID) for all predefined built-in
classes.
NotImplementedException
- This method is not implemented in the MAJ
API.AAFFactory
public MetaDefinition createMetaInstance(AUID identification) throws NotImplementedException
Dictionary
Creates a single uninitialized AAF meta class or type associated with a specified stored object id. This method is not implemented in the MAJ API as it is not possible to create an uninitialized object. This methods always throws an NotImplementedException and the functionality is replaced by the AAF factory.
createMetaInstance
in interface Dictionary
identification
- Identifier (id) of a class or type definition. This is
the corresponding SMPTE identifier (as a GUID) for all predefined
built-in definitions.
NotImplementedException
- This method is not implemented in the MAJ
API.AAFFactory
@AAFProperty(uuid1=100729095, uuid2=1792, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ClassDefinitions", typeName="StrongReferenceSet of ClassDefinition", optional=true, uniqueIdentifier=false, pid=3) public Set<ClassDefinition> getClassDefinitions()
Dictionary
Returns the set of all class definitions in this dictionary.
getClassDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1287, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="CodecDefinitions", typeName="StrongReferenceSet of CodecDefinition", optional=true, uniqueIdentifier=false, pid=9735) public Set<CodecDefinition> getCodecDefinitions()
Dictionary
Returns a set of all the codec definitions contained in the dictionary.
getCodecDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1288, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ContainerDefinitions", typeName="StrongReferenceSet of ContainerDefinition", optional=true, uniqueIdentifier=false, pid=9736) public Set<ContainerDefinition> getContainerDefinitions()
Dictionary
Returns the set of all container definitions contained in this dictionary.
getContainerDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1285, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="DataDefinitions", typeName="StrongReferenceSet of DataDefinition", optional=true, uniqueIdentifier=false, pid=9733) public Set<DataDefinition> getDataDefinitions()
Dictionary
Returns the set of data definitions contained in this dictionary.
getDataDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1289, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="InterpolationDefinitions", typeName="StrongReferenceSet of InterpolationDefinition", optional=true, uniqueIdentifier=false, pid=9737) public Set<InterpolationDefinition> getInterpolationDefinitions()
Dictionary
Returns the set of interpolation definitions contained in this dictionary.
getInterpolationDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1290, uuid3=0, uuid4={6,14,43,52,1,1,1,7}, definedName="KLVDataDefinitions", typeName="StrongReferenceSet of KLVDataDefinition", optional=true, uniqueIdentifier=false, pid=9738) public Set<KLVDataDefinition> getKLVDataDefinitions()
Dictionary
Returns the set of KLV data definitions contained in this dictionary.
getKLVDataDefinitions
in interface Dictionary
public Set<TypeDefinition> getOpaqueTypeDefinitions()
Dictionary
Return the set of all registered opaque type definitions in the dictionary.
getOpaqueTypeDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1283, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="OperationDefinitions", typeName="StrongReferenceSet of OperationDefinition", optional=true, uniqueIdentifier=false, pid=9731) public Set<OperationDefinition> getOperationDefinitions()
Dictionary
Returns the set of operation definitions contained in this dictionary.
getOperationDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1284, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ParameterDefinitions", typeName="StrongReferenceSet of ParameterDefinition", optional=true, uniqueIdentifier=false, pid=9732) public Set<ParameterDefinition> getParameterDefinitions()
Dictionary
Returns the set of parameter definitions contained in this dictionary.
getParameterDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1286, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="PluginDefinitions", typeName="StrongReferenceSet of PluginDefinition", optional=true, uniqueIdentifier=false, pid=9734) public Set<PluginDefinition> getPluginDefinitions()
Dictionary
Returns the set of plugin definitions contained in this dictionary.
getPluginDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729092, uuid2=1291, uuid3=0, uuid4={6,14,43,52,1,1,1,7}, definedName="TaggedValueDefinitions", typeName="StrongReferenceSet of TaggedValueDefinition", optional=true, uniqueIdentifier=false, pid=9739) public Set<TaggedValueDefinition> getTaggedValueDefinitions()
Dictionary
Returns a set of all tagged value definitions contained in this dictionary.
getTaggedValueDefinitions
in interface Dictionary
@AAFProperty(uuid1=100729095, uuid2=2048, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="TypeDefinitions", typeName="StrongReferenceSet of TypeDefinition", optional=true, uniqueIdentifier=false, pid=4) public Set<TypeDefinition> getTypeDefinitions()
Dictionary
Returns the set of all type definitions contained within this dictionary.
getTypeDefinitions
in interface Dictionary
public boolean hasForwardClassReference(AUID classId) throws InvalidParameterException
Dictionary
Returns true
if the given class identification is a
forward reference registered with this dictionary.
hasForwardClassReference
in interface Dictionary
classId
- Unique class identifier.
InvalidParameterException
- The given ID is not recognized as a
class definition id.public DataDefinition lookupAuxiliaryDataDefinition()
Dictionary
Returns the auxiliary data definition. This is a built-in data definition for auxiliary data.
lookupAuxiliaryDataDefinition
in interface Dictionary
AAFFactory.dataDefinitionForName(String)
,
DataDefinitionConstant.Auxiliary
public ClassDefinition lookupClassDefinition(AUID id) throws NullPointerException, InvalidParameterException
Dictionary
Returns the class definition with the given identifier that is contained in this dictionary.
lookupClassDefinition
in interface Dictionary
id
- Unique identifier for a class contained in this dictionary.
NullPointerException
- Argument is null.
InvalidParameterException
- The given class identifier does not match a class
definition stored in this dictionary.ClassDefinitionWarehouse.forClass(Class)
,
AAFClass
public CodecDefinition lookupCodecDefinition(AUID codecId) throws NullPointerException, InvalidParameterException
Dictionary
Returns the codec definition with the given identifier that is contained in this dictionary.
lookupCodecDefinition
in interface Dictionary
codecId
- Identifier for a codec definition contained in this dictionary.
NullPointerException
- The given identifier is null
.
InvalidParameterException
- The given identifier does not match a
codec definition contained in this dictionary.public ContainerDefinition lookupContainerDefinition(AUID containerId) throws NullPointerException, InvalidParameterException
Dictionary
Returns the container definition with the given identifier that is contained in this dictionary.
lookupContainerDefinition
in interface Dictionary
containerId
- Identifier for a container definition contained in this dictionary.
NullPointerException
- The given identifier is null
.
InvalidParameterException
- The given identifier does not match a
codec definition contained in this dictionary.public DataDefinition lookupDataDefinition(AUID dataDefinitionId) throws NullPointerException, InvalidParameterException
Dictionary
Return the data definition with the given identifier that is contained in this dictionary.
lookupDataDefinition
in interface Dictionary
dataDefinitionId
- Unique identifier for a data definition contained in this dictionary.
NullPointerException
- The given identifier is null
.
InvalidParameterException
- A data definition with the given id could not
be found in this dictionary.public DataDefinition lookupDescriptiveMedadataDataDefinition()
Dictionary
Returns the descriptive metadata data definition. This is a built-in data definition for descriptive metadata.
lookupDescriptiveMedadataDataDefinition
in interface Dictionary
AAFFactory.dataDefinitionForName(String)
,
DataDefinitionConstant.DescriptiveMetadata
public DataDefinition lookupEdgecodeDataDefinition()
Dictionary
Returns the edgecode data definition. This is a built-in data definition for a stream of film edge code values.
lookupEdgecodeDataDefinition
in interface Dictionary
AAFFactory.dataDefinitionForName(String)
,
DataDefinitionConstant.Edgecode
public InterpolationDefinition lookupInterpoliationDefinition(AUID interpolationId) throws NullPointerException, InvalidParameterException
Dictionary
Returns the interpolation definition with the given identifier that is contained in this dictionary.
lookupInterpoliationDefinition
in interface Dictionary
interpolationId
- Identifier for an interpolation definition contained in this dictionary.
NullPointerException
- The given identifier is null
.
InvalidParameterException
- The given identifier does not match
that of an interpolation definition contained in this dictionary.public KLVDataDefinition lookupKLVDataDefinition(AUID defId) throws NullPointerException, InvalidParameterException
Dictionary
Returns the KLV data definition with the given identifier that is contained in this dictionary
lookupKLVDataDefinition
in interface Dictionary
defId
- Identifier for a KLV data definition contained in this dictionary.
NullPointerException
- The given KLV data definition is null
.
InvalidParameterException
- The given id does not match that of a KLV data definition
in the dictionary.public DataDefinition lookupLegacyPictureDataDefinition()
Dictionary
Returns the legacy picture data definition. This is a built-in data definition for a stream of essence that contains image data.
lookupLegacyPictureDataDefinition
in interface Dictionary
DataDefinitionConstant.LegacyPicture
public DataDefinition lookupLegacySoundDataDefinition()
Dictionary
Returns the legacy sound data definition. This is a built-in data definition essence that contains a single channel of sound.
lookupLegacySoundDataDefinition
in interface Dictionary
DataDefinitionConstant.LegacySound
public DataDefinition lookupLegacyTimecodeDataDefinition()
Dictionary
Returns the legacy timecode data definition. This is a built-in data definition for a stream of tape timecode values.
lookupLegacyTimecodeDataDefinition
in interface Dictionary
DataDefinitionConstant.LegacyTimecode
public DataDefinition lookupMatteDataDefinition()
Dictionary
Returns the matte data definition. This is a built-in data definition for a stream of essence that contains alpha values.
lookupMatteDataDefinition
in interface Dictionary
DataDefinitionConstant.Matte
public TypeDefinition lookupOpaqueTypeDefinition(AUID typeId) throws NullPointerException, InvalidParameterException
Dictionary
Return the opaque type definition with the given id.
lookupOpaqueTypeDefinition
in interface Dictionary
typeId
- Unique type ID.
NullPointerException
- Argument is null.
InvalidParameterException
- The given ID is not recognized as
a type definition ID.public OperationDefinition lookupOperationDefinition(AUID operationId) throws NullPointerException, InvalidParameterException
Dictionary
Return the operation definition with the given identifier that is contained in this dictionary.
lookupOperationDefinition
in interface Dictionary
operationId
- Identifier of an operation definition contained in this dictionary.
NullPointerException
- The given identifier is null
.
InvalidParameterException
- The given identifier does not match that of an operation
definition contained in this dictionary.public ParameterDefinition lookupParameterDefinition(AUID parameterId) throws NullPointerException, InvalidParameterException
Dictionary
Returns the parameter definition with the given identifier that is contained in this dictionary.
lookupParameterDefinition
in interface Dictionary
parameterId
- Identifier for a parameter definition contained in this dictionary.
NullPointerException
- The given identifier is null
.
InvalidParameterException
- The given identifier does not match a
parameter definition contained in this dictionary.public DataDefinition lookupPictureDataDefinition()
Dictionary
Returns the picture data definition. This is a built-in data definition for a stream of essence that contains image data.
lookupPictureDataDefinition
in interface Dictionary
AAFFactory.dataDefinitionForName(String)
,
DataDefinitionConstant.Picture
public DataDefinition lookupPictureWithMatteDataDefinition()
Dictionary
Returns the picture with matte data definition. This is a built-in data definition for a stream of essence that contains image data and a matte.
lookupPictureWithMatteDataDefinition
in interface Dictionary
AAFFactory.dataDefinitionForName(String)
,
DataDefinitionConstant.PictureWithMatte
public PluginDefinition lookupPluginDefinition(AUID pluginId) throws NullPointerException, InvalidParameterException
Dictionary
Return the plugin definition with the given identifier that is contained in this dictionary.
lookupPluginDefinition
in interface Dictionary
pluginId
- Identifier for a plugin definition contained in this dictionary.
NullPointerException
- The given identifier is null
.
InvalidParameterException
- The given identifier does not match that of
a plugin definition contained in this dictionary.public DataDefinition lookupSoundDataDefinition()
Dictionary
Returns a sound data definition. This is a built-in data definition for a a stream of essence that contains a single channel of sound.
lookupSoundDataDefinition
in interface Dictionary
AAFFactory.dataDefinitionForName(String)
,
DataDefinitionConstant.Sound
public DataDefinition lookupTimecodeDataDefinition()
Dictionary
Returns the timecode data definition. This is a built-in
data definition
for a stream of tape
timecode values.
lookupTimecodeDataDefinition
in interface Dictionary
AAFFactory.dataDefinitionForName(String)
,
DataDefinitionConstant.Timecode
public TaggedValueDefinition lookupTaggedValueDefinition(AUID defId) throws NullPointerException, InvalidParameterException
Dictionary
Returns the tagged value definition with the given identifier that is contained in this dictionary.
lookupTaggedValueDefinition
in interface Dictionary
defId
- ID of the tagged value definition to lookup in the
dictionary.
NullPointerException
- The given identifier is null
.
InvalidParameterException
- The given identifier does not match that of
a tagged value definition contained in this dictionary.public TypeDefinition lookupTypeDefinition(AUID id) throws NullPointerException, InvalidParameterException
Dictionary
Return the type definition with the given identifier that is contained within this dictionary.
lookupTypeDefinition
in interface Dictionary
id
- Unique identifier for the type definition contained in this dictionary.
NullPointerException
- The given type identifier is null
.
InvalidParameterException
- The given identifier does not match that of a type
definition contained in this dictionary.public void registerClassDefinition(ClassDefinition classDef) throws InvalidParameterException, NullPointerException
Dictionary
Add a class definition to those contained in this dictionary.
registerClassDefinition
in interface Dictionary
classDef
- Class definition to add.
InvalidParameterException
- A class definition with the same identifier
is already contained in this dictionary.
NullPointerException
- The given class definition is null
.AAFFactory.classDefinitionForClass(Class)
,
AAFFactory.classDefinitionForName(String)
,
ClassDefinitionWarehouse
public void registerCodecDefinition(CodecDefinition codecDef) throws NullPointerException, InvalidParameterException
Dictionary
Add a codec definition to those contained in this dictionary.
registerCodecDefinition
in interface Dictionary
codecDef
- Codec definition to add.
NullPointerException
- The given codec definition is null
.
InvalidParameterException
- A codec definition with
the same identifier is already contained in this dictionary.CodecConstant
,
CodecDefinition.forName(String)
,
CodecDefinition.forIdentification(AUID)
public void registerContainerDefinition(ContainerDefinition containerDefinition) throws NullPointerException, InvalidParameterException
Dictionary
Add a container definition to those contained in this dictionary.
registerContainerDefinition
in interface Dictionary
containerDefinition
- Container definition to add.
NullPointerException
- The given container definition is null
.
InvalidParameterException
- A container definition with
the same identifier is already contained in this dictionary.ContainerConstant
,
ContainerDefinition.forName(String)
,
ContainerDefinition.forIdentification(AUID)
public void registerDataDefinition(DataDefinition dataDef) throws NullPointerException, InvalidParameterException
Dictionary
Add a data definition to the those contained in this dictionary.
registerDataDefinition
in interface Dictionary
dataDef
- Data definition to add.
NullPointerException
- The given data definition is null
.
InvalidParameterException
- A data definition with the
same identifier is already contained in this dictionary.DataDefinitionConstant
,
AAFFactory.dataDefinitionForName(String)
,
DataDefinition.forName(String)
,
DataDefinition.forIdentification(AUID)
public void registerInterpolationDefinition(InterpolationDefinition interpolationDefinition) throws NullPointerException, InvalidParameterException
Dictionary
Add an interpolation definition to those contained in this dictionary.
registerInterpolationDefinition
in interface Dictionary
interpolationDefinition
- Interpolation definition to add.
NullPointerException
- The given interpolation definition is null
.
InvalidParameterException
- An interpolation definition with
the same identifier is already contained in this dictionary.InterpolationConstant
,
InterpolationDefinition.forName(String)
,
InterpolationDefinition.forIdentification(AUID)
public void registerKLVDataDefinition(KLVDataDefinition klvDataDefinition) throws NullPointerException, InvalidParameterException
Dictionary
Add a KLV data definition to those contained in the dictionary.
registerKLVDataDefinition
in interface Dictionary
klvDataDefinition
- KLV data definition to add to the dictionary.
NullPointerException
- The given KLV data definition is null
.
InvalidParameterException
- The given KLV data definition has the same identifier
as one already contained in the dictionary.public void registerKLVDataKey(AUID uid, TypeDefinition typeDef) throws NullPointerException, InvalidParameterException
Dictionary
Add the definition for the given KLV key to the runtime dictionary.
The typeDef
parameters will often be
TypeID_UInt8Array
but may be something else.
registerKLVDataKey
in interface Dictionary
uid
- Key to define.typeDef
- Type definition object for the key.
NullPointerException
- Argument is null.
InvalidParameterException
- The specified KLV key has already
been registered.public void registerOpaqueTypeDefinition(TypeDefinition typeDef) throws NullPointerException, InvalidParameterException
Dictionary
Add the opaque type definition to the dictionary.
An opaque type definition defines a property type that has a value whose type is specified in each instance.
registerOpaqueTypeDefinition
in interface Dictionary
typeDef
- Type definition object.
NullPointerException
- Argument is null.
InvalidParameterException
- The given type has already
been registered.public void registerOperationDefinition(OperationDefinition operationDefinition) throws NullPointerException, InvalidParameterException
Dictionary
Add a operation definition to those contained in the dictionary.
registerOperationDefinition
in interface Dictionary
operationDefinition
- Operation definition to add.
NullPointerException
- The given operation definition is null
.
InvalidParameterException
- An operation definition with the
same identifier is already contained in this dictionary.OperationConstant
,
OperationDefinition.forName(String)
,
OperationDefinition.forIdentification(AUID)
public void registerParameterDefinition(ParameterDefinition parameterDefinition) throws NullPointerException, InvalidParameterException
Dictionary
Add a parameter definition to those contained in the dictionary.
registerParameterDefinition
in interface Dictionary
parameterDefinition
- Parameter definition to add.
NullPointerException
- The given parameter definition is null
.
InvalidParameterException
- A parameter definition with the
same identifier is already contained in this dictionary.ParameterConstant
,
ParameterDefinition.forName(String)
,
ParameterDefinition.forIdentification(AUID)
public void registerPluginDefinition(PluginDefinition pluginDefinition) throws NullPointerException, InvalidParameterException
Dictionary
Add a plugin definition to those contained in this dictionary.
registerPluginDefinition
in interface Dictionary
pluginDefinition
- Plugin definition to add.
NullPointerException
- The given plugin definition is null
.
InvalidParameterException
- A plugin definition with
the same identifier is already contained in this dictionary.public void registerTaggedValueDefinition(TaggedValueDefinition def) throws NullPointerException, InvalidParameterException
Dictionary
Add the tagged value definition to those contained in this dictionary.
registerTaggedValueDefinition
in interface Dictionary
def
- Tagged value definition to add to the dictionary.
NullPointerException
- The given tagged value definition is null
.
InvalidParameterException
- The given tagged value definition has the same
identifier as one already contained in the dictionary.public void registerTypeDefinition(TypeDefinition typeDef) throws NullPointerException, InvalidParameterException
Dictionary
Add a type definition to those contained in this dictionary.
registerTypeDefinition
in interface Dictionary
typeDef
- Type definition to add to this dictionary.
NullPointerException
- The given type definition is null
.
InvalidParameterException
- The given type has an id that matches
the id of a type definition already contained in the dictionary.AAFFactory.typeDefinitionForName(String)
,
AAFFactory.typeDefinitionForIdentification(AUID)
,
TypeDefinitionWarehouse
public long getId()
public void setId(long id)
public Dictionary 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 Object
Object.clone()
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 InterchangeObject
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 |