@MediaClass(definedName="MetaDictionary", uuid1=218169601, uuid2=549, uuid3=0, uuid4={6,14,43,52,2,6,1,1}, description="The meta dictionary class is deprecated and replaced by extension schemes and the baseline dictionary.", symbol="MetaDictionary", namespace="http://www.smpte-ra.org/schemas/2001-2/2007/aaf", prefix="aaf") public class MetaDictionaryImpl extends Object implements MetaDictionary, MetadataObject, Cloneable, Serializable
Contains definitions of meta classes and types.
| Constructor and Description |
|---|
MetaDictionaryImpl() |
| Modifier and Type | Method and Description |
|---|---|
MetaDictionary |
clone()
Create a cloned copy of this meta dictionary.
|
int |
countClassDefinitions()
Returns the number of class definitions contained in this dictionary.
|
int |
countOpaqueTypeDefinitions()
Returns the number of opaque type definitions in the 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)
Deprecated.
|
MetaDefinition |
createMetaInstance(AUID identification)
Deprecated.
|
boolean |
equals(Object o) |
Set<? extends ClassDefinition> |
getClassDefinitions()
Returns the set of all class definitions in this dictionary.
|
boolean |
getIsDynamic()
Is this meta dictionary dynamic? A dynamic meta dictionary represents only the
meta definitions required to represent a given preface at a specific point in time.
|
Set<? extends TypeDefinition> |
getOpaqueTypeDefinitions()
Return the set of all registered opaque type definitions
in the dictionary.
|
Set<? extends 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. |
int |
hashCode() |
ClassDefinition |
lookupClassDefinition(AUID identification)
Returns the class definition with the given identifier that is contained in this dictionary.
|
TypeDefinition |
lookupOpaqueTypeDefinition(AUID typeId)
Return the opaque type definition with the given id.
|
TypeDefinition |
lookupTypeDefinition(AUID identification)
Return the type definition with the given identifier that is contained within this dictionary.
|
void |
makeDynamic(Preface preface)
Turn this meta dictionary from static to dynamic and/or update the meta definitions
to represent those required to represent the given preface.
|
void |
makeStatic()
Turn this meta dictionary into a static meta dictionary, which is the default state.
|
void |
registerClassDefinition(ClassDefinition classDefinition)
Add a class definition to those contained in this dictionary.
|
void |
registerOpaqueTypeDefinition(TypeDefinition typeDef)
Add the opaque type definition to the dictionary.
|
void |
registerTypeDefinition(TypeDefinition typeDefinition)
Add a type definition to those contained in this dictionary.
|
String |
toString() |
public int countClassDefinitions()
MetaDictionaryReturns the number of class definitions contained in this dictionary.
countClassDefinitions in interface MetaDictionarypublic int countOpaqueTypeDefinitions()
MetaDictionaryReturns the number of opaque type definitions in the dictionary.
countOpaqueTypeDefinitions in interface MetaDictionarypublic int countTypeDefinitions()
MetaDictionaryReturns the number of type definitions contained in the dictionary.
countTypeDefinitions in interface MetaDictionarypublic void createForwardClassReference(AUID classId) throws InvalidParameterException
MetaDictionaryCreates 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 MetaDictionaryclassId - 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.@Deprecated public InterchangeObject createInstance(AUID identification) throws NullPointerException, IllegalArgumentException
MetaDictionaryCreates a single uninitialized AAF object of the class associated with a specified interchange object class identifier.
This method is a factory for creating objects found within the body of an AAF file. In MAJ, the equivalent functionality is provided through the factory provided on the media engine.
createInstance in interface MetaDictionaryidentification - Class identifier (id) of the stored object. This is the
corresponding SMPTE identifier (as a GUID) for all predefined built-in
classes or registered extension classes.NullPointerException - Cannot create an instance from a null
value.IllegalArgumentException - The given identifier is not known or is not
for an object of interchange type.@Deprecated public MetaDefinition createMetaInstance(AUID identification) throws NullPointerException, IllegalArgumentException
MetaDictionaryCreates a single uninitialized AAF meta definition (class or type) associated with a specified class identifier.
This method is a factory for creating objects used to describe the meta dictionary of an AAF file. In MAJ, the equivalent functionality is provided through the factory provided on the media engine.
createMetaInstance in interface MetaDictionaryidentification - Identifier (id) of a class or type definition. This is
the corresponding SMPTE identifier (as a GUID) for all predefined
built-in definitions or registered extensions.NullPointerException - Cannot create a meta instance for a null
value.IllegalArgumentException - The given identifier is not known or is not for
a meta definition.@MediaProperty(definedName="ClassDefinitions", uuid1=100729095, uuid2=1792, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, symbol="ClassDefinitions", typeName="ClassDefinitionStrongReferenceSet", optional=true, uniqueIdentifier=false, pid=3) public Set<? extends ClassDefinition> getClassDefinitions()
MetaDictionaryReturns the set of all class definitions in this dictionary.
getClassDefinitions in interface MetaDictionarypublic Set<? extends TypeDefinition> getOpaqueTypeDefinitions()
MetaDictionaryReturn the set of all registered opaque type definitions in the dictionary.
getOpaqueTypeDefinitions in interface MetaDictionary@MediaProperty(definedName="TypeDefinitions", uuid1=100729095, uuid2=2048, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, symbol="TypeDefinitions", typeName="TypeDefinitionStrongReferenceSet", optional=true, uniqueIdentifier=false, pid=4) public Set<? extends TypeDefinition> getTypeDefinitions()
MetaDictionaryReturns the set of all type definitions contained within this dictionary.
getTypeDefinitions in interface MetaDictionarypublic boolean hasForwardClassReference(AUID classId) throws InvalidParameterException
MetaDictionaryReturns true if the given class identification is a
forward reference registered with this dictionary.
hasForwardClassReference in interface MetaDictionaryclassId - Unique class identifier.InvalidParameterException - The given ID is not recognized as a
class definition id.public ClassDefinition lookupClassDefinition(AUID identification) throws NullPointerException, InvalidParameterException
MetaDictionaryReturns the class definition with the given identifier that is contained in this dictionary.
lookupClassDefinition in interface MetaDictionaryidentification - 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.Warehouse.lookForClass(Class),
MediaClasspublic TypeDefinition lookupOpaqueTypeDefinition(AUID typeId) throws NullPointerException, InvalidParameterException
MetaDictionaryReturn the opaque type definition with the given id.
lookupOpaqueTypeDefinition in interface MetaDictionarytypeId - Unique type ID.NullPointerException - Argument is null.InvalidParameterException - The given ID is not recognized as
a type definition ID.public TypeDefinition lookupTypeDefinition(AUID identification) throws NullPointerException, InvalidParameterException
MetaDictionaryReturn the type definition with the given identifier that is contained within this dictionary.
lookupTypeDefinition in interface MetaDictionaryidentification - 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 classDefinition) throws NullPointerException, InvalidParameterException
MetaDictionaryAdd a class definition to those contained in this dictionary.
registerClassDefinition in interface MetaDictionaryclassDefinition - Class definition to add.NullPointerException - The given class definition is null.InvalidParameterException - A class definition with the same identifier
is already contained in this dictionary.Warehouse.lookForClass(Class),
Warehouse.lookForClass(String)public void registerOpaqueTypeDefinition(TypeDefinition typeDef) throws NullPointerException, InvalidParameterException
MetaDictionaryAdd 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 MetaDictionarytypeDef - Type definition object.NullPointerException - Argument is null.InvalidParameterException - The given type has already
been registered.public void registerTypeDefinition(TypeDefinition typeDefinition) throws NullPointerException, InvalidParameterException
MetaDictionaryAdd a type definition to those contained in this dictionary.
registerTypeDefinition in interface MetaDictionarytypeDefinition - 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.Warehouse.lookForType(String),
Warehouse.lookForType(AUID),
Warehouse.registerTypes(Class, String, String),
Warehouse.register(TypeDefinition, String, String)public void makeDynamic(Preface preface) throws NullPointerException
MetaDictionaryTurn this meta dictionary from static to dynamic and/or update the meta definitions to represent those required to represent the given preface.
makeDynamic in interface MetaDictionarypreface - Preface to compute the meta dictionary for.NullPointerException - Cannot make a dynamic meta dictionary from a null
value.MetaDictionary.getIsDynamic(),
MetaDictionary.makeStatic()public void makeStatic()
MetaDictionaryTurn this meta dictionary into a static meta dictionary, which is the default state. In this state, the meta dictionary holds all meta definitions known to the current virtual machine.
makeStatic in interface MetaDictionaryMetaDictionary.getIsDynamic(),
MetaDictionary.makeDynamic(Preface)public boolean getIsDynamic()
MetaDictionaryIs this meta dictionary dynamic? A dynamic meta dictionary represents only the meta definitions required to represent a given preface at a specific point in time. Otherwise, the meta dictionary is static and represents all meta definitions known to the current virtual machine.
getIsDynamic in interface MetaDictionaryMetaDictionary.makeStatic(),
MetaDictionary.makeDynamic(Preface)public MetaDictionary clone()
MetaDictionaryCreate a cloned copy of this meta dictionary.
clone in interface MetaDictionaryclone in class Object(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.