|
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.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()
DefinitionType
Returns the identification of the definition. This is normally a registered SMPTE universal label.
getAUID
in interface DefinitionType
getAUID
in interface MetaDefinition
public 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
DefinitionType
Returns the optional description of the definition.
getDescription
in interface DefinitionType
getDescription
in interface MetaDefinition
PropertyNotPresentException
- The optional name property is not present for the
definition.public final void setDescription(String description)
MetaDefinition
Sets the description of this meta definition. Set this optional property to
null
to omit it.
setDescription
in interface MetaDefinition
description
- 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()
DefinitionType
Returns the name of the definition.
getName
in interface DefinitionType
getName
in interface MetaDefinition
public final void setName(String name) throws NullPointerException
MetaDefinition
Sets the name of this meta definition.
setName
in interface MetaDefinition
name
- Name to set for this meta definition.
NullPointerException
- The given meta definition name is null
.public final boolean equals(Object o)
MAJCommon
Tests 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 MAJCommon
equals
in class Object
o
- 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()
MAJCommon
Returns a hash code value for this embeddable object.
hashCode
in interface MAJCommon
hashCode
in class Object
Object.hashCode()
public String toString()
MAJCommon
Create and return a human-readable string representation of this embeddable value.
toString
in interface MAJCommon
toString
in class Object
Object.toString()
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
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 |