|
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
tv.amwa.maj.meta.TypeDefinition
tv.amwa.maj.meta.TypeDefinitionObjectReference
tv.amwa.maj.meta.TypeDefinitionWeakObjectReference
@AAFClass(uuid1=218169601, uuid2=518, uuid3=0, uuid4={6,14,43,52,2,6,1,1}, definedName="TypeDefinitionWeakObjectReference", description="The TypeDefinitionWeakObjectReference class defines a property type that defines an object relationship where the target of the weak reference is referenced by the object with the property with the TypeDefinitionWeakObjectReference type.") public final class TypeDefinitionWeakObjectReference
Implements the definition of a property type that defines an object relationship where the target of the weak reference is referenced by the object with the property with the TypeDefinitionWeakObjectReference type.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
Nested Class Summary | |
---|---|
static class |
TypeDefinitionWeakObjectReference.XMLHandler
|
Nested classes/interfaces inherited from class tv.amwa.maj.meta.TypeDefinitionObjectReference |
---|
TypeDefinitionObjectReference.ObjectReferenceValue, TypeDefinitionObjectReference.TypeDefinitionObjectReferenceUnresolved |
Constructor Summary | |
---|---|
TypeDefinitionWeakObjectReference(AUID identification,
String typeName,
ClassDefinition objectType,
AUID[] targetSet)
Creates and initializes a weak object reference type definition, which defines a property type that defines an object relationship where the target of the weak reference is referenced by the object with the property. |
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. |
boolean |
deepEquals(Object o)
Check to see if this definition is equal to the given object by comparing each property. |
ClassDefinition |
getReferencedType()
|
AUID[] |
getTargetSet()
|
TypeCategory |
getTypeCategory()
Returns the type category to which this type definition belongs, which corresponds to its sub interface. |
void |
setPropertiesFromInterface(TypeDefinitionWeakObjectReference castFrom)
|
Methods inherited from class tv.amwa.maj.meta.TypeDefinitionObjectReference |
---|
createValue, getObject, getObjectType, setObject, setPropertiesFromInterface |
Methods inherited from class tv.amwa.maj.meta.TypeDefinition |
---|
setPropertiesFromInterface |
Methods inherited from class tv.amwa.maj.meta.MetaDefinition |
---|
castFromInterface, equals, getAUID, getDescription, getIdentification, getName, hashCode, setDescription, setName, setPropertiesFromInterface, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface tv.amwa.maj.iface.TypeDefinitionObjectReference |
---|
createValue, getObject, getObjectType, setObject |
Methods inherited from interface tv.amwa.maj.iface.MetaDefinition |
---|
getAUID, getDescription, getName, setDescription, setName |
Methods inherited from interface tv.amwa.maj.meta.MAJCommon |
---|
equals, hashCode, toString |
Field Detail |
---|
public static final TypeDefinitionWeakObjectReference ClassDefinition
public static final TypeDefinitionWeakObjectReference ContainerDefinition
public static final TypeDefinitionWeakObjectReference DataDefinition
public static final TypeDefinitionWeakObjectReference InterpolationDefinition
public static final TypeDefinitionWeakObjectReference Mob
public static final TypeDefinitionWeakObjectReference OperationDefinition
public static final TypeDefinitionWeakObjectReference ParameterDefinition
public static final TypeDefinitionWeakObjectReference TypeDefinition
public static final TypeDefinitionWeakObjectReference PluginDefinition
public static final TypeDefinitionWeakObjectReference CodecDefinition
public static final TypeDefinitionWeakObjectReference PropertyDefinition
Constructor Detail |
---|
public TypeDefinitionWeakObjectReference(AUID identification, @AAFString String typeName, ClassDefinition objectType, AUID[] targetSet) throws NullPointerException
Creates and initializes a weak object reference type definition, which defines a property
type that defines an object relationship where the target of the weak reference is referenced
by the object with the property. Only objects that define a unique identification
(AUID
or
mob id
) can be the targets of weak object
references. An object can be the target of one or more than one weak references.
The targetSet
parameter points to an array of
property definition AUIDs that indicate the location of the property
containing the target of the weak reference. The AUIDs indicate the
containment path to the target property, starting at the root header
object.
For example, if the containment hierarchy is:
Header->A->B->C
AUID
corresponds to
the header's property that contains object A; the second
AUID
corresponds to object A's
property which contains object B; and the third
AUID
corresponds
to object B's property C that contans the target of this weak reference.
If any intermediate property is a vector or set, all
objects in that vector or set are searched for the target.
Note that the final AUID
must
correspond to a property that is currently set.
Creating new and unregistered type definitions is not recommended as this may cause
interoperability issues with other systems. The official registry of type definitions
is available from SMPTE at SMPTE Metadata Registries
And Related Items. The full range of data types documented in the AAF 1.1 object
specification can be accessed by name and identification using either
AAFFactory.typeDefinitionForName(String)
or
AAFFactory.typeDefinitionForIdentification(tv.amwa.maj.record.AUID)
respectively.
identification
- AUID to be used to identify this type.typeName
- Friendly name of the type definition.objectType
- Class definition of objects that the reference is permitted
to reference. The referenced object may also belong to a subclass of the
referenced class.targetSet
- List of property definition ids that indicate where
the target of the reference is to be found.
NullPointerException
- One or more of the identification, object type or target
set arguments is null and all are required.Method Detail |
---|
public final void setPropertiesFromInterface(TypeDefinitionWeakObjectReference castFrom)
MetaDefinition.setPropertiesFromInterface(tv.amwa.maj.iface.MetaDefinition)
@AAFProperty(uuid1=100729095, uuid2=2560, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ReferencedType", typeName="WeakReference to ClassDefinition", optional=false, uniqueIdentifier=false, pid=18) public ClassDefinition getReferencedType()
@AAFProperty(uuid1=50397699, uuid2=2816, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="TargetSet", typeName="AUIDArray", optional=false, uniqueIdentifier=false, pid=19) public AUID[] getTargetSet()
public TypeCategory getTypeCategory()
TypeDefinition
Returns the type category to which this type definition belongs, which
corresponds to its sub interface. For example, TypeCategory.Int
is returned for a TypeDefinitionInteger
.
getTypeCategory
in interface TypeDefinition
getTypeCategory
in class TypeDefinition
TypeCategory
public final boolean deepEquals(Object o)
MetaDefinition
Check to see if this definition is equal to the given object by comparing each
property. The MetaDefinition.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.
deepEquals
in class TypeDefinitionObjectReference
o
- Object to compare to this definition.
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 TypeDefinitionObjectReference
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 |