@MediaClass(uuid1=218169601, uuid2=550, uuid3=0, uuid4={6,14,43,52,2,6,1,1}, definedName="ExtensionScheme", symbol="ExtensionScheme", description="Groups together a collection of meta definitions for an extension to a file and provides a globally unique identifier for the collection.", namespace="http://www.smpte-ra.org/schemas/2001-2/2007/aaf", prefix="aaf") public class ExtensionSchemeImpl extends Object implements ExtensionScheme, Cloneable, Serializable, MetadataObject, WeakReferenceTarget
| Constructor and Description |
|---|
ExtensionSchemeImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetaDefinition(MetaDefinition metaDefinition)
Add a meta definition to the set of definitions that form this extension
scheme.
|
void |
clearMetaDefinitions()
Clear all the meta definitions from this extensions scheme, omitting this optional property.
|
ExtensionScheme |
clone()
Create a cloned copy of this extension scheme.
|
boolean |
containsMetaDefinition(AUID metaDefinitionID)
Determines whether the given identifier is for a meta definition that is present
within those that make up this extension scheme.
|
boolean |
containsMetaDefinition(MetaDefinition metaDefinition)
Determines whether the given meta definition is present within those that make up this
extension scheme.
|
boolean |
containsMetaDefinition(String metaDefinitionName)
Determines whether the given name is for a meta definition that is present
within those that make up this extension scheme.
|
int |
countMetaDefinitions()
Count the number of meta definitions in this extensions scheme.
|
boolean |
deepEquals(Object o) |
boolean |
equals(Object o) |
AUID |
getAUID()
Returns the unique identifier of the target of the reference.
|
String |
getExtensionDescription()
Returns the description of the extension scheme.
|
Set<MetaDefinition> |
getMetaDefinitions()
Returns the set of meta definitions that form the extensions scheme.
|
String |
getPreferredPrefix()
Returns the preferred namespace tag when SMPTE Reg-XML encoding is used.
|
AUID |
getSchemeID()
Returns the globally unique identification of the extension scheme.
|
String |
getSchemeURI()
Returns the namespace URI for the extension scheme.
|
String |
getWeakTargetReference()
Provides a name that can be used to make a weak object reference to an
instance of the implementing class.
|
int |
hashCode() |
MetaDefinition |
lookupMetaDefinition(AUID metaDefinitionID)
Lookup a meta definition within this extension scheme by its identifier.
|
MetaDefinition |
lookupMetaDefinition(String metaDefinitionName)
Lookup a meta definition within this extension scheme by its name.
|
AUID |
lookupMetaDefinitionIdentifier(String metaDefinitionName)
Lookup the identifier of a meta definition in this extension scheme from
its name.
|
boolean |
removeMetaDefinition(AUID metaDefinitionID)
Remove the identified meta definition from those that make up this
extension scheme.
|
boolean |
removeMetaDefinition(MetaDefinition metaDefinition)
Remove the given meta definition from those that make up this
extension scheme.
|
void |
setExtensionDescription(String extensionDescription)
Sets the description of the extension scheme.
|
void |
setPreferredPrefix(String preferredPrefix)
Sets the preferred namespace tag when SMPTE Reg-XML encoding is used.
|
void |
setSchemeID(AUID schemeID)
Sets the globally unique identification of the extensions scheme.
|
void |
setSchemeURI(String schemeURI)
Sets the namespace URI for the extension scheme.
|
String |
toString() |
@MediaProperty(uuid1=100729095, uuid2=6912, uuid3=0, uuid4={6,14,43,52,1,1,1,13}, definedName="SchemeID", aliases="ExtensionSchemeID", typeName="AUID", optional=false, uniqueIdentifier=true, pid=36, symbol="SchemeID", description="Globally unique identification of the extension scheme.") public AUID getSchemeID()
ExtensionSchemeReturns the globally unique identification of the extension scheme.
getSchemeID in interface ExtensionSchemeExtensionScheme.getSchemeURI(),
ApplicationPluginObject.getApplicationScheme(),
Preface.getApplicationSchemes(),
Preface.getDescriptiveSchemes()@MediaPropertySetter(value="SchemeID") public void setSchemeID(AUID schemeID) throws NullPointerException
ExtensionSchemeSets the globally unique identification of the extensions scheme. An extension scheme may be used as part of an application metadata plugin or descriptive framework.
setSchemeID in interface ExtensionSchemeschemeID - Globally unique identification of the extensions scheme.NullPointerException - Cannot set the scheme identifier using a null
value.ExtensionScheme.setSchemeURI(String),
tv.amwa.maj.model.ApplicationPluginObject#setApplicationScheme(AUID),
Preface.getApplicationSchemes(),
Preface.getDescriptiveSchemes()public AUID getAUID()
WeakReferenceTargetReturns the unique identifier of the target of the reference.
getAUID in interface WeakReferenceTarget@MediaProperty(uuid1=100729095, uuid2=7168, uuid3=0, uuid4={6,14,43,52,1,1,1,13}, definedName="SchemeURI", aliases={"ExtensionSchemeURI","SymbolSpaceURI","ExtensionSymbolSpaceURI"}, typeName="UTF16String", optional=false, uniqueIdentifier=false, pid=37, symbol="SchemeURI", description="Namespace URI for the extension scheme.") public String getSchemeURI()
ExtensionSchemeReturns the namespace URI for the extension scheme.
getSchemeURI in interface ExtensionSchemeExtensionScheme.getSchemeID(),
MetaDefinition.getNamespace(),
MediaClass.namespace(),
MediaProperty.namespace()@MediaPropertySetter(value="SchemeURI") public void setSchemeURI(String schemeURI) throws NullPointerException
ExtensionSchemeSets the namespace URI for the extension scheme.
setSchemeURI in interface ExtensionSchemeschemeURI - Namespace URI for the extension scheme.NullPointerException - Cannot set the scheme identifier using a null
value.ExtensionScheme.setSchemeID(AUID),
MetaDefinition.setNamespace(String),
MediaClass.namespace(),
MediaProperty.namespace()@MediaProperty(uuid1=100729095, uuid2=7424, uuid3=0, uuid4={6,14,43,52,1,1,1,13}, definedName="PreferredPrefix", typeName="UTF16String", optional=true, uniqueIdentifier=false, pid=38, symbol="PreferredPrefix", description="Preferred namespace tag when SMPTE Reg-XML encoding is used.") public String getPreferredPrefix() throws PropertyNotPresentException
ExtensionSchemeReturns the preferred namespace tag when SMPTE Reg-XML encoding is used. This is an optional property.
getPreferredPrefix in interface ExtensionSchemePropertyNotPresentException - The optional preferred prefix property is
not present for this extension scheme.ExtensionScheme.getSchemeURI(),
MetaDefinition.getPrefix(),
MediaClass.prefix(),
MediaProperty.prefix()@MediaPropertySetter(value="PreferredPrefix") public void setPreferredPrefix(String preferredPrefix)
ExtensionSchemeSets the preferred namespace tag when SMPTE Reg-XML encoding is used. Set this optional
property to null to omit it.
setPreferredPrefix in interface ExtensionSchemepreferredPrefix - Preferred namespace tag when SMPTE Reg-XML encoding is used.ExtensionScheme.setSchemeURI(String),
MediaClass.prefix(),
MediaProperty.prefix()@MediaProperty(uuid1=100729095, uuid2=7680, uuid3=0, uuid4={6,14,43,52,1,1,1,13}, definedName="ExtensionDescription", aliases="Description", typeName="UTF16String", optional=true, uniqueIdentifier=false, pid=39, symbol="ExtensionDescription", description="Description of the extension scheme.") public String getExtensionDescription() throws PropertyNotPresentException
ExtensionSchemeReturns the description of the extension scheme. This is an optional property.
getExtensionDescription in interface ExtensionSchemePropertyNotPresentException - The optional description property of the extension scheme is
not present.@MediaPropertySetter(value="ExtensionDescription") public void setExtensionDescription(String extensionDescription)
ExtensionSchemeSets the description of the extension scheme. Set this optional property to null
to omit it.
setExtensionDescription in interface ExtensionSchemeextensionDescription - Description of the extension scheme.@MediaProperty(uuid1=100729095, uuid2=7936, uuid3=0, uuid4={6,14,43,52,1,1,1,13}, definedName="MetaDefinitions", typeName="MetaDefinitionStrongReferenceSet", optional=true, uniqueIdentifier=false, pid=40, symbol="MetaDefinitions", description="Set of meta definitions that form the extensions scheme. The meta definitions are the class definitions, property definitions and type definitions} that define extensions classes and properties for use in descriptive frameworks, descriptive objects, application plugin objects and application referenced objects.") public Set<MetaDefinition> getMetaDefinitions() throws PropertyNotPresentException
ExtensionSchemeReturns the set of meta definitions that form the extensions scheme. The meta definitions are the class definitions, property definitions and type definitions that define extensions classes and properties for use in:
This is an optional property, although omitting it and defining an empty scheme would not make much sense.
getMetaDefinitions in interface ExtensionSchemePropertyNotPresentException - The optional meta definitions property is not present for this
extension scheme.@MediaSetAdd(value="MetaDefinitions") public void addMetaDefinition(MetaDefinition metaDefinition) throws NullPointerException
ExtensionSchemeAdd a meta definition to the set of definitions that form this extension scheme.
addMetaDefinition in interface ExtensionSchememetaDefinition - Meta definition to add to the scheme.NullPointerException - Cannot use a null value to add to the set of meta
definitions.ExtensionScheme.getMetaDefinitions()@MediaPropertyClear(value="MetaDefinitions") public void clearMetaDefinitions()
ExtensionSchemeClear all the meta definitions from this extensions scheme, omitting this optional property.
clearMetaDefinitions in interface ExtensionSchemeExtensionScheme.getMetaDefinitions()@MediaPropertyContains(value="MetaDefinitions") public boolean containsMetaDefinition(MetaDefinition metaDefinition) throws NullPointerException
ExtensionSchemeDetermines whether the given meta definition is present within those that make up this extension scheme.
containsMetaDefinition in interface ExtensionSchememetaDefinition - Meta definition to check for.NullPointerException - Cannot use a null value to check for a meta definition.ExtensionScheme.containsMetaDefinition(AUID),
ExtensionScheme.containsMetaDefinition(String),
ExtensionScheme.getMetaDefinitions()public boolean containsMetaDefinition(AUID metaDefinitionID) throws NullPointerException
ExtensionSchemeDetermines whether the given identifier is for a meta definition that is present within those that make up this extension scheme.
containsMetaDefinition in interface ExtensionSchemeNullPointerException - Cannot use a null value to check for a meta definition.ExtensionScheme.containsMetaDefinition(MetaDefinition),
ExtensionScheme.containsMetaDefinition(String),
ExtensionScheme.getMetaDefinitions()public boolean containsMetaDefinition(String metaDefinitionName) throws NullPointerException
ExtensionSchemeDetermines whether the given name is for a meta definition that is present within those that make up this extension scheme.
containsMetaDefinition in interface ExtensionSchemeNullPointerException - Cannot use a null value to check for a meta definition.ExtensionScheme.containsMetaDefinition(MetaDefinition),
ExtensionScheme.containsMetaDefinition(AUID),
ExtensionScheme.getMetaDefinitions()public MetaDefinition lookupMetaDefinition(AUID metaDefinitionID) throws NullPointerException
ExtensionSchemeLookup a meta definition within this extension scheme by its identifier.
lookupMetaDefinition in interface ExtensionSchememetaDefinitionID - Identifier of the meta definition to find in the extension scheme.null if no matching meta definition could be
found.NullPointerException - Cannot look for a meta definition using a null value.ExtensionScheme.lookupMetaDefinition(String),
ExtensionScheme.lookupMetaDefinitionIdentifier(String),
ExtensionScheme.getMetaDefinitions()public MetaDefinition lookupMetaDefinition(String metaDefinitionName) throws NullPointerException
ExtensionSchemeLookup a meta definition within this extension scheme by its name.
lookupMetaDefinition in interface ExtensionSchememetaDefinitionName - Name of the meta definition to find in the extension scheme.null if no matching meta definition could be
found.NullPointerException - Cannot look for a meta definition using a null value.ExtensionScheme.lookupMetaDefinition(AUID),
ExtensionScheme.lookupMetaDefinitionIdentifier(String),
ExtensionScheme.getMetaDefinitions()public AUID lookupMetaDefinitionIdentifier(String metaDefinitionName) throws NullPointerException
ExtensionSchemeLookup the identifier of a meta definition in this extension scheme from its name.
lookupMetaDefinitionIdentifier in interface ExtensionSchememetaDefinitionName - Name of the meta definition to find in the extension scheme.NullPointerException - Cannot look for a meta definition using a null value.ExtensionScheme.lookupMetaDefinition(AUID),
ExtensionScheme.lookupMetaDefinition(String),
ExtensionScheme.getMetaDefinitions()@MediaPropertyCount(value="MetaDefinitions") public int countMetaDefinitions()
ExtensionSchemeCount the number of meta definitions in this extensions scheme.
countMetaDefinitions in interface ExtensionSchemeExtensionScheme.getMetaDefinitions()@MediaPropertyRemove(value="MetaDefinitions") public boolean removeMetaDefinition(MetaDefinition metaDefinition) throws NullPointerException
ExtensionSchemeRemove the given meta definition from those that make up this extension scheme.
removeMetaDefinition in interface ExtensionSchememetaDefinition - Meta definition to remove.false if
the meta definition was not part of this extension scheme.NullPointerException - Cannot remove a meta definition using a null value.ExtensionScheme.removeMetaDefinition(AUID),
ExtensionScheme.getMetaDefinitions()public boolean removeMetaDefinition(AUID metaDefinitionID) throws NullPointerException
ExtensionSchemeRemove the identified meta definition from those that make up this extension scheme.
removeMetaDefinition in interface ExtensionSchemefalse if
the meta definition was not part of this extension scheme.NullPointerException - Cannot remove a meta definition using a null value.ExtensionScheme.removeMetaDefinition(MetaDefinition),
ExtensionScheme.getMetaDefinitions()public 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 WeakReferenceTargetpublic boolean deepEquals(Object o)
public ExtensionScheme clone()
ExtensionSchemeCreate a cloned copy of this extension scheme.
clone in interface ExtensionSchemeclone in class Object(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.