|
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.meta.MetaDefinition
@AAFClass(uuid1=218169601,
uuid2=548,
uuid3=0,
uuid4={6,14,43,52,2,6,1,1},
definedName="MetaDefinition",
description="The MetaDefinition class is an abstract class that defines a class, type, or property in an AAF file.")
public abstract class MetaDefinition
Implements the definition of a class, type, or property in an AAF file.
Extension of the meta model with external classes is not encouraged. The metamodel can be used to describe extensions in the main AAF object model. Therefore, the registration of classes is restricted to this package only.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
| Constructor Summary | |
|---|---|
MetaDefinition()
|
|
| 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. |
static MetaDefinition |
castFromInterface(MetaDefinition alien)
Casts a class that implements one of the generic meta definition interfaces of the Java AAF object model to a known concrete implementation. |
boolean |
deepEquals(Object o)
Check to see if this definition is equal to the given object by comparing each property. |
boolean |
equals(Object o)
Tests to see if the given object is equal to this embeddable value. |
AUID |
getAUID()
Returns the identification of the definition. |
String |
getDescription()
Returns the optional description of the definition. |
AUID |
getIdentification()
|
String |
getName()
Returns the name of the definition. |
int |
hashCode()
Returns a hash code value for this embeddable object. |
void |
setDescription(String description)
Sets the description of this meta definition. |
void |
setName(String name)
Sets the name of this meta definition. |
void |
setPropertiesFromInterface(MetaDefinition castFrom)
Set all the properties of this meta definition from the given class that implements the meta definition interface. |
String |
toString()
Create and return a human-readable string representation of this embeddable value. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MetaDefinition()
| Method Detail |
|---|
public static final MetaDefinition castFromInterface(MetaDefinition alien)
throws NullPointerException,
ClassCastException
Casts a class that implements one of the generic meta definition interfaces of the Java AAF object model to a known concrete implementation. If the given class matches the known implementation, no casting takes place.
Implementing classes must first be registered using the registerImplementation(Class)
method. A maximum of one concrete implementing class per interface is permitted. External
classes that implement more than one interface are not supported and the behaviour of this
method will not be deterministic in this case.
alien - Class implementing any interface that extends
MetaDefinition.
NullPointerException - Argument is null.
ClassCastException - The given class cannot be cast to a known implementations due to
incompatibilities, unknown interfaces, instantiation or invovation exceptions.
public final void setPropertiesFromInterface(MetaDefinition castFrom)
throws NullPointerException
Set all the properties of this meta definition from the given class that implements the
meta definition interface.
castFrom - Class to extract property values from.
NullPointerException - Cannot set properties using a null value.
@AAFProperty(uuid1=100729095,
uuid2=4864,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="Identification",
typeName="AUID",
optional=false,
uniqueIdentifier=true,
pid=5)
public final AUID getAUID()
DefinitionTypeReturns the identification of the definition. This is normally a registered SMPTE universal label.
getAUID in interface DefinitionTypegetAUID in interface MetaDefinitionpublic AUID getIdentification()
@AAFProperty(uuid1=100729095,
uuid2=5121,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="Description",
typeName="String",
optional=true,
uniqueIdentifier=false,
pid=7)
public final String getDescription()
throws PropertyNotPresentException
DefinitionTypeReturns the optional description of the definition.
getDescription in interface DefinitionTypegetDescription in interface MetaDefinitionPropertyNotPresentException - The optional name property is not present for the
definition.public final void setDescription(String description)
MetaDefinitionSets the description of this meta definition. Set this optional property to
null to omit it.
setDescription in interface MetaDefinitiondescription - Description of this meta definition.
@AAFProperty(uuid1=50463745,
uuid2=513,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="Name",
typeName="String",
optional=true,
uniqueIdentifier=false,
pid=6)
public final String getName()
DefinitionTypeReturns the name of the definition.
getName in interface DefinitionTypegetName in interface MetaDefinition
public final void setName(String name)
throws NullPointerException
MetaDefinitionSets the name of this meta definition.
setName in interface MetaDefinitionname - Name to set for this meta definition.
NullPointerException - The given meta definition name is null.public final boolean equals(Object o)
MAJCommonTests to see if the given object is equal to this embeddable value. To be equal, the given value must be not null, share the same interface to its value and each of the properties of the value must each be equal.
equals in interface MAJCommonequals in class Objecto - Object to test for equality with.
Object.equals(Object)public boolean deepEquals(Object o)
Check to see if this definition is equal to the given object by comparing each
property. The equals(Object) method only checks that the identies of two
definitions are equal, relying on the unqiueness ensured by identity registration.
This method is provided for debugging and validation purposes.
o - Object to compare to this definition.
public final int hashCode()
MAJCommonReturns a hash code value for this embeddable object.
hashCode in interface MAJCommonhashCode in class ObjectObject.hashCode()public String toString()
MAJCommonCreate and return a human-readable string representation of this embeddable value.
toString in interface MAJCommontoString in class ObjectObject.toString()public void appendXMLChildren(Node parent)
XMLSerializableAppend 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 XMLSerializableparent - 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 | |||||||