Media Authoring
with Java API

tv.amwa.maj.meta
Class TypeDefinitionStrongObjectReference

java.lang.Object
  extended by tv.amwa.maj.meta.MetaDefinition
      extended by tv.amwa.maj.meta.TypeDefinition
          extended by tv.amwa.maj.meta.TypeDefinitionObjectReference
              extended by tv.amwa.maj.meta.TypeDefinitionStrongObjectReference
All Implemented Interfaces:
Serializable, DefinitionType, MetaDefinition, TypeDefinition, TypeDefinitionObjectReference, TypeDefinitionStrongObjectReference, XMLSerializable, MAJCommon

@AAFClass(uuid1=218169601,
          uuid2=517,
          uuid3=0,
          uuid4={6,14,43,52,2,6,1,1},
          definedName="TypeDefinitionStrongObjectReference",
          description="The TypeDefinitionStrongObjectReference class defines a property type that defines an object relationship where the target of the strong reference is owned by the object with the property with the TypeDefinitionStrongObjectReference type.")
public final class TypeDefinitionStrongObjectReference
extends TypeDefinitionObjectReference
implements TypeDefinitionStrongObjectReference, Serializable, MAJCommon

Implements the definition of a property type that defines an object relationship where the target of the strong reference is owned by the object with a property of the TypeDefinitionStrongObjectReference type.

THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.

Author:
Richard Cartwright
See Also:
Serialized Form

Nested Class Summary
static class TypeDefinitionStrongObjectReference.XMLHandler
           
 
Nested classes/interfaces inherited from class tv.amwa.maj.meta.TypeDefinitionObjectReference
TypeDefinitionObjectReference.ObjectReferenceValue, TypeDefinitionObjectReference.TypeDefinitionObjectReferenceUnresolved
 
Field Summary
static TypeDefinitionStrongObjectReference ClassDefinition
           
static TypeDefinitionStrongObjectReference CodecDefinition
           
static TypeDefinitionStrongObjectReference Component
           
static TypeDefinitionStrongObjectReference ContainerDefinition
           
static TypeDefinitionStrongObjectReference ContentStorage
           
static TypeDefinitionStrongObjectReference ControlPoint
           
static TypeDefinitionStrongObjectReference DataDefinition
           
static TypeDefinitionStrongObjectReference DescriptiveFramework
           
static TypeDefinitionStrongObjectReference DescriptiveObject
           
static TypeDefinitionStrongObjectReference Dictionary
           
static TypeDefinitionStrongObjectReference EssenceData
           
static TypeDefinitionStrongObjectReference EssenceDescriptor
           
static TypeDefinitionStrongObjectReference FileDescriptor
           
static TypeDefinitionStrongObjectReference Identification
           
static TypeDefinitionStrongObjectReference InterpolationDefinition
           
static TypeDefinitionStrongObjectReference KLVData
           
static TypeDefinitionStrongObjectReference KLVDataDefinition
           
static TypeDefinitionStrongObjectReference Locator
           
static TypeDefinitionStrongObjectReference Mob
           
static TypeDefinitionStrongObjectReference MobSlot
           
static TypeDefinitionStrongObjectReference NetworkLocator
           
static TypeDefinitionStrongObjectReference OperationDefinition
           
static TypeDefinitionStrongObjectReference OperationGroup
           
static TypeDefinitionStrongObjectReference Parameter
           
static TypeDefinitionStrongObjectReference ParameterDefinition
           
static TypeDefinitionStrongObjectReference PluginDefinition
           
static TypeDefinitionStrongObjectReference PropertyDefinition
           
static TypeDefinitionStrongObjectReference RIFFChunk
           
static TypeDefinitionStrongObjectReference Segment
           
static TypeDefinitionStrongObjectReference SourceClip
           
static TypeDefinitionStrongObjectReference SourceReference
           
static TypeDefinitionStrongObjectReference SubDescriptor
           
static TypeDefinitionStrongObjectReference TaggedValue
           
static TypeDefinitionStrongObjectReference TaggedValueDefinition
           
static TypeDefinitionStrongObjectReference TypeDefinition
           
 
Constructor Summary
TypeDefinitionStrongObjectReference(AUID identification, String typeName, ClassDefinition referencedType)
          Creates and initializes the strong object reference type definition, which defines a property type that defines an object relationship where the target of the strong reference is owned 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.
 ClassDefinition getReferencedType()
           
 TypeCategory getTypeCategory()
          Returns the type category to which this type definition belongs, which corresponds to its sub interface.
 void setPropertiesFromInterface(TypeDefinitionStrongObjectReference castFrom)
           
 
Methods inherited from class tv.amwa.maj.meta.TypeDefinitionObjectReference
createValue, deepEquals, 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

ContentStorage

public static final TypeDefinitionStrongObjectReference ContentStorage

Dictionary

public static final TypeDefinitionStrongObjectReference Dictionary

EssenceDescriptor

public static final TypeDefinitionStrongObjectReference EssenceDescriptor

NetworkLocator

public static final TypeDefinitionStrongObjectReference NetworkLocator

OperationGroup

public static final TypeDefinitionStrongObjectReference OperationGroup

Segment

public static final TypeDefinitionStrongObjectReference Segment

SourceClip

public static final TypeDefinitionStrongObjectReference SourceClip

SourceReference

public static final TypeDefinitionStrongObjectReference SourceReference

ClassDefinition

public static final TypeDefinitionStrongObjectReference ClassDefinition

CodecDefinition

public static final TypeDefinitionStrongObjectReference CodecDefinition

Component

public static final TypeDefinitionStrongObjectReference Component

ContainerDefinition

public static final TypeDefinitionStrongObjectReference ContainerDefinition

ControlPoint

public static final TypeDefinitionStrongObjectReference ControlPoint

DataDefinition

public static final TypeDefinitionStrongObjectReference DataDefinition

EssenceData

public static final TypeDefinitionStrongObjectReference EssenceData

Identification

public static final TypeDefinitionStrongObjectReference Identification

InterpolationDefinition

public static final TypeDefinitionStrongObjectReference InterpolationDefinition

Locator

public static final TypeDefinitionStrongObjectReference Locator

Mob

public static final TypeDefinitionStrongObjectReference Mob

MobSlot

public static final TypeDefinitionStrongObjectReference MobSlot

OperationDefinition

public static final TypeDefinitionStrongObjectReference OperationDefinition

Parameter

public static final TypeDefinitionStrongObjectReference Parameter

ParameterDefinition

public static final TypeDefinitionStrongObjectReference ParameterDefinition

PluginDefinition

public static final TypeDefinitionStrongObjectReference PluginDefinition

PropertyDefinition

public static final TypeDefinitionStrongObjectReference PropertyDefinition

TaggedValue

public static final TypeDefinitionStrongObjectReference TaggedValue

TypeDefinition

public static final TypeDefinitionStrongObjectReference TypeDefinition

KLVData

public static final TypeDefinitionStrongObjectReference KLVData

DescriptiveFramework

public static final TypeDefinitionStrongObjectReference DescriptiveFramework

KLVDataDefinition

public static final TypeDefinitionStrongObjectReference KLVDataDefinition

TaggedValueDefinition

public static final TypeDefinitionStrongObjectReference TaggedValueDefinition

SubDescriptor

public static final TypeDefinitionStrongObjectReference SubDescriptor

FileDescriptor

public static final TypeDefinitionStrongObjectReference FileDescriptor

RIFFChunk

public static final TypeDefinitionStrongObjectReference RIFFChunk

DescriptiveObject

public static final TypeDefinitionStrongObjectReference DescriptiveObject
Constructor Detail

TypeDefinitionStrongObjectReference

public TypeDefinitionStrongObjectReference(AUID identification,
                                           @AAFString
                                           String typeName,
                                           ClassDefinition referencedType)
                                    throws NullPointerException

Creates and initializes the strong object reference type definition, which defines a property type that defines an object relationship where the target of the strong reference is owned by the object with the property. An object can be the target of only one strong reference.

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.

Parameters:
identification - AUID to be used to identify this type.
typeName - Friendly name of the type definition.
referencedType - Class definition of objects that it is permissable for this type of object reference to reference.
Throws:
NullPointerException - The identification and/or referenced type is/are null.
Method Detail

setPropertiesFromInterface

public final void setPropertiesFromInterface(TypeDefinitionStrongObjectReference castFrom)
See Also:
MetaDefinition.setPropertiesFromInterface(tv.amwa.maj.iface.MetaDefinition)

getReferencedType

@AAFProperty(uuid1=100729095,
             uuid2=2304,
             uuid3=0,
             uuid4={6,14,43,52,1,1,1,2},
             definedName="ReferencedType",
             typeName="WeakReference to ClassDefinition",
             optional=false,
             uniqueIdentifier=false,
             pid=17)
public final ClassDefinition getReferencedType()

getTypeCategory

public final TypeCategory getTypeCategory()
Description copied from interface: 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.

Specified by:
getTypeCategory in interface TypeDefinition
Specified by:
getTypeCategory in class TypeDefinition
Returns:
Type category to which the type definition belongs.
See Also:
TypeCategory

appendXMLChildren

public final void appendXMLChildren(Node parent)
Description copied from interface: 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.

Specified by:
appendXMLChildren in interface XMLSerializable
Overrides:
appendXMLChildren in class TypeDefinitionObjectReference
Parameters:
parent - XML parent element to append child nodes to.

Media Authoring
with Java API

(c) 2007-2008 Richard Cartwright, all rights reserved. Subject to the terms of the AAF SDK Public Source License.