|
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.entity.InterchangeObject
tv.amwa.maj.entity.EssenceDescriptor
tv.amwa.maj.entity.AAFFileDescriptor
@AAFClass(uuid1=218169601,
uuid2=257,
uuid3=9472,
uuid4={6,14,43,52,2,6,1,1},
definedName="FileDescriptor",
description="The FileDescriptor class describes an essence source that is directly manipulated by an AAF application.")
public abstract class AAFFileDescriptor
Implements a file descriptor that describes an essence source that is directly manipulated by an AAF application.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
| Nested Class Summary | |
|---|---|
static class |
AAFFileDescriptor.FileDescriptorXMLHandler
|
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
EssenceDescriptor.EssenceDescriptorXMLHandler, EssenceDescriptor.LocatorXMLHandler, EssenceDescriptor.SubDescriptorXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
|---|
InterchangeObject.InterchangeObjectXMLHandler |
| Field Summary | |
|---|---|
static String |
FILEDESCRIPTOR_ITEM
|
| Fields inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
ESSENCEDESCRIPTOR_ITEM |
| Constructor Summary | |
|---|---|
AAFFileDescriptor()
|
|
| 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 |
describesStaticEssence()
Determines whether this file descriptor describes static or time-varying essence. |
boolean |
equals(Object o)
Tests to see if the given object is equal to this interchange object. |
CodecDefinition |
getCodecDefinition()
Returns the codec of the described file, which identifies the mechanism used to compress and uncompress samples of essence or used to convert samples of essence from one format to another. |
ContainerDefinition |
getContainerFormat()
Returns the file format of the described file, which identifies the container mechanism used to store the essence. |
long |
getLength()
Returns the length of the essence in sample units (not edit units). |
int |
getLinkedSlotID()
Returns the linked slot id of this file descriptor, which specifies which mob slot of the associated source mob this descriptor describes when the source mob is described by a multiple descriptor. |
Rational |
getSampleRate()
Returns the sample rate of the essence. |
int |
hashCode()
Returns a hash code value for this interchange object. |
void |
setCodecDefinition(CodecDefinition codecDefinition)
Set the codec of the described file, which identifies the mechanism used to compress and uncompress samples of essence or used to convert samples of essence from one format to another. |
void |
setContainerFormat(ContainerDefinition format)
Specifies the file format of the described file, which identifies the container mechanism used to store the essence. |
void |
setDescribesStaticEssence()
Sets this file descriptor so that it describes static essence. |
void |
setDescribesTimeVaryingEssence(Rational sampleRate,
long length)
Sets this file descriptor so that it describes time varying essence. |
void |
setLength(long length)
Sets the length of the essence in sample units (not edit units). |
void |
setLinkedSlotID(Integer linkedSlotID)
Set the linked slot id of this file descriptor, which specifies which mob slot of the associated source mob this descriptor describes when the source mob is described by a multiple descriptor. |
void |
setPropertiesFromInterface(AAFFileDescriptor castFrom)
|
void |
setSampleRate(Rational rate)
Sets sample rate of the essence. |
| Methods inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
appendLocator, appendSubDescriptor, clone, countLocators, countSubDescriptors, getLocatorAt, getLocators, getSubDescriptorAt, getSubDescriptors, insertLocatorAt, insertSubDescriptorAt, prependLocator, prependSubDescriptor, removeLocatorAt, removeSubDescriptorAt, setPropertiesFromInterface |
| Methods inherited from class tv.amwa.maj.entity.InterchangeObject |
|---|
castFromInterface, countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, registerImplementation, setPropertiesFromInterface, setPropertyValue, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface tv.amwa.maj.iface.EssenceDescriptor |
|---|
appendLocator, appendSubDescriptor, countLocators, countSubDescriptors, getLocatorAt, getLocators, getSubDescriptorAt, getSubDescriptors, insertLocatorAt, insertSubDescriptorAt, prependLocator, prependSubDescriptor, removeLocatorAt, removeSubDescriptorAt |
| Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
|---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
| Methods inherited from interface tv.amwa.maj.entity.MAJCommon |
|---|
clone, toString |
| Field Detail |
|---|
public static final String FILEDESCRIPTOR_ITEM
| Constructor Detail |
|---|
public AAFFileDescriptor()
| Method Detail |
|---|
public final void setPropertiesFromInterface(AAFFileDescriptor castFrom)
@AAFProperty(uuid1=100729092,
uuid2=259,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="CodecDefinition",
typeName="WeakReference to CodecDefinition",
optional=true,
uniqueIdentifier=false,
pid=12293)
public CodecDefinition getCodecDefinition()
throws PropertyNotPresentException
AAFFileDescriptorReturns the codec of the described file, which identifies the mechanism used to compress and uncompress samples of essence or used to convert samples of essence from one format to another.
getCodecDefinition in interface AAFFileDescriptorPropertyNotPresentException - The optional codec definition property is not present for
this file descriptor.public void setCodecDefinition(CodecDefinition codecDefinition)
AAFFileDescriptorSet the codec of the described file, which identifies the mechanism used to compress and uncompress samples of essence or used to convert samples of essence from one format to another.
setCodecDefinition in interface AAFFileDescriptorcodecDefinition - Codec that was used for the file.CodecDefinition.forName(String),
CodecConstant
@AAFProperty(uuid1=100729092,
uuid2=258,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="ContainerFormat",
typeName="WeakReference to ContainerDefinition",
optional=true,
uniqueIdentifier=false,
pid=12292)
public ContainerDefinition getContainerFormat()
throws PropertyNotPresentException
AAFFileDescriptorReturns the file format of the described file, which identifies the container mechanism used to store the essence.
The container format is defined as an optional property but version 1.1 of
the AAF object specification requires it to be specified for each file. However,
file descriptors created with tools supporting earlier versions of the AAF
specification may omit the property, in which case a PropertyNotPresentException
is thrown.
getContainerFormat in interface AAFFileDescriptorPropertyNotPresentException - The (rarely) optional container format property
is not present in this file descriptor.public void setContainerFormat(ContainerDefinition format)
AAFFileDescriptorSpecifies the file format of the described file, which identifies the container mechanism used to store the essence.
The container format is defined as an optional property but version 1.1 of
the AAF object specification requires it to be specified for each file. The property
can be omitted by setting its value to null for compatibility with
older versions of the specification.
setContainerFormat in interface AAFFileDescriptorformat - File format to set for this file descriptor.ContainerDefinition.forName(String),
ContainerConstant
@AAFProperty(uuid1=67502338,
uuid2=0,
uuid3=0,
uuid4={6,14,43,52,1,1,1,1},
definedName="Length",
typeName="LengthType",
optional=false,
uniqueIdentifier=false,
pid=12290)
public long getLength()
throws BadPropertyException
AAFFileDescriptorReturns the length of the essence in sample units (not edit units).
getLength in interface AAFFileDescriptorBadPropertyException - The length property is not present as this file
descriptor describes static essence.
public void setLength(long length)
throws BadPropertyException,
BadLengthException
AAFFileDescriptorSets the length of the essence in sample units (not edit units).
setLength in interface AAFFileDescriptorlength - Length of the essence in samples.
BadPropertyException - The length property is not present as this file
descriptor describes static essence.
BadLengthException - The length of the described material is negative.
@AAFProperty(uuid1=67502337,
uuid2=0,
uuid3=0,
uuid4={6,14,43,52,1,1,1,1},
definedName="SampleRate",
typeName="Rational",
optional=false,
uniqueIdentifier=false,
pid=12289)
public Rational getSampleRate()
throws BadPropertyException
AAFFileDescriptorReturns the sample rate of the essence.
getSampleRate in interface AAFFileDescriptorBadPropertyException - The sample rate property is not present as this file
descriptor describes static essence.
public void setSampleRate(Rational rate)
throws NullPointerException,
BadPropertyException
AAFFileDescriptorSets sample rate of the essence.
setSampleRate in interface AAFFileDescriptorrate - Sample rate of the essence.
NullPointerException - The given sample rate is null.
BadPropertyException - The sample rate property is not present as this file
descriptor describes static essence.public boolean describesStaticEssence()
Determines whether this file descriptor describes static or time-varying essence. This method
returns true if static essence is described and false if time-varying
essence is described. If the file descriptor describes static essence then the
sample rate and length properties are not
present.
public void setDescribesStaticEssence()
Sets this file descriptor so that it describes static essence.
public void setDescribesTimeVaryingEssence(Rational sampleRate,
long length)
throws NullPointerException,
BadLengthException
Sets this file descriptor so that it describes time varying essence. In this state, the
sample rate and length properties are required
and so must be provided to the call to this method.
sampleRate - Sample rate for this file descriptor.length - Length of the material represented by this file descriptor.
NullPointerException - Argument is null.
BadLengthException - The length of the described material is negative.
@AAFProperty(uuid1=100729091,
uuid2=1280,
uuid3=0,
uuid4={6,14,43,52,1,1,1,5},
definedName="LinkedSlotID",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=12294)
public int getLinkedSlotID()
throws PropertyNotPresentException
AAFFileDescriptorReturns the linked slot id of this file descriptor, which specifies which mob slot of the associated source mob this descriptor describes when the source mob is described by a multiple descriptor. This is an optional property.
getLinkedSlotID in interface AAFFileDescriptorPropertyNotPresentException - The optional linked slot id property is not
present in this file descriptor.
public void setLinkedSlotID(Integer linkedSlotID)
throws IllegalArgumentException
AAFFileDescriptorSet the linked slot id of this file descriptor, which specifies which
mob slot of the associated source mob
this descriptor describes when the source mob is described by a multiple descriptor. In this case, this file descriptor is one of the collection of file descriptors
that are part of a multiple descriptor, as returned by MultipleDescriptor.getFileDescriptors(). If this
file descriptor is not part of a multiple descriptor collection, set this optional property to
null to omit it.
setLinkedSlotID in interface AAFFileDescriptorlinkedSlotID - Linked slot id of this file descriptor.
IllegalArgumentException - The linked slot id is negative.public boolean equals(Object o)
MAJCommonTests to see if the given object is equal to this interchange object. 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 EssenceDescriptoro - Object to test for equality with.
Object.equals(Object)public int hashCode()
MAJCommonReturns a hash code value for this interchange object.
hashCode in interface MAJCommonhashCode in class EssenceDescriptorObject.hashCode()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 XMLSerializableappendXMLChildren in class EssenceDescriptorparent - 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 | |||||||