|
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.Component
tv.amwa.maj.entity.Segment
tv.amwa.maj.entity.SourceReferenceSegment
tv.amwa.maj.entity.SourceClip
tv.amwa.maj.entity.DescriptiveClip
@AAFClass(uuid1=218169601,
uuid2=257,
uuid3=17664,
uuid4={6,14,43,52,2,6,1,1},
definedName="DescriptiveClip",
description="A descriptive clip specifies what is being described and references a mob to provide that description.")
public class DescriptiveClip
Implements a means to identify what is being described in terms of mob slots and references a mob to provide that description. This enables a segment in a descriptive metadata mob slot to reference a section of descriptive metadata in the mob slot of another mob. Typically, the referenced mob slot would contain descriptive markers.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
| Nested Class Summary | |
|---|---|
static class |
DescriptiveClip.DescribedSlotsHandler
|
static class |
DescriptiveClip.XMLHandler
|
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.SourceReferenceSegment |
|---|
SourceReferenceSegment.ChannelIDsXMLHandler, SourceReferenceSegment.MonoSourceSlotIDsXMLHandler, SourceReferenceSegment.SourceReferenceXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.Segment |
|---|
Segment.SegmentXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.Component |
|---|
Component.ComponentAttributesXMLHandler, Component.ComponentUserCommentsXMLHandler, Component.ComponentXMLHandler, Component.KLVDataXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
|---|
InterchangeObject.InterchangeObjectXMLHandler |
| Field Summary |
|---|
| Fields inherited from class tv.amwa.maj.entity.SourceReferenceSegment |
|---|
SOURCEREFERENCE_ITEM |
| Fields inherited from class tv.amwa.maj.entity.Component |
|---|
COMPONENT_ITEM |
| Constructor Summary | |
|---|---|
DescriptiveClip(DataDefinition dataDefinition,
long length,
SourceReferenceValue sourceReference)
Creates and initializes a new descriptive clip, which specifies what is being descibed and references a mob to provide that description. |
|
| Method Summary | |
|---|---|
void |
addDescribedSlotID(int describedSlotID)
Adds the given described slot id to the list of described slot ids referenced by this descriptive clip,which specify which of the essence mob slots in the mob are being referenced. |
void |
appendXMLChildren(Node parent)
Append child elements to the given parent node to serialize the value of an object to an XML fragment. |
DescriptiveClip |
clone()
Creates a cloned copy of this entity. |
int |
countDescribedSlotIDs()
Returns the number of described slot ids in the set of described slot ids referenced by this descriptive clip, which specify which of the essence mob slots in the mob are being referenced. |
boolean |
equals(Object o)
Tests to see if the given object is equal to this interchange object. |
Set<Integer> |
getDescribedSlotIDs()
Returns a copy of the set of descriptive slot ids referenced by this descriptive clip, which specify which of the essence mob slots in the mob are being referenced. |
int |
hashCode()
Returns a hash code value for this interchange object. |
boolean |
isDescribedSlotIDPresent(int describedSlotID)
Returns true if the given described slot id is present in the
set of described slot ids referenced from this source clip, hich specify which of the essence
mob slots in the mob are being referenced. |
void |
removeDescribedSlotID(int describedSlotID)
Removes the given described slot id from the list of described slot ids referenced by this descriptive clip, which specify which of the essence mob slots in the mob are being referenced. |
void |
setPropertiesFromInterface(DescriptiveClip castFrom)
|
| Methods inherited from class tv.amwa.maj.entity.SourceClip |
|---|
getFade, getFadeInLength, getFadeInType, getFadeOutLength, getFadeoutType, getSourceReference, getStartTime, resolveRef, setFade, setFade, setPropertiesFromInterface, setSourceReference |
| Methods inherited from class tv.amwa.maj.entity.SourceReferenceSegment |
|---|
getChannelIDs, getChannelIDsSize, getMonoSourceSlotIDs, getMonoSourceSlotIDsSize, getSourceID, getSourceMobSlotID, setChannelIDs, setMonoSourceSlotIDs, setPropertiesFromInterface, setSourceID, setSourceMobSlotID |
| Methods inherited from class tv.amwa.maj.entity.Segment |
|---|
segmentOffsetToTC, segmentTCToOffset, setPropertiesFromInterface |
| Methods inherited from class tv.amwa.maj.entity.Component |
|---|
appendAttribute, appendAttribute, appendComment, appendComment, appendKLVData, countAttributes, countComments, countKLVData, getAttributes, getComments, getDataDefinition, getKLVData, getLength, getLengthPresent, removeAttribute, removeComment, removeKLVData, setDataDefinition, setLength, setLengthPresent, 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, toString, wait, wait, wait |
| Methods inherited from interface tv.amwa.maj.iface.SourceClip |
|---|
getFade, getSourceReference, resolveRef, setFade, setFade, setSourceReference |
| Methods inherited from interface tv.amwa.maj.iface.SourceReferenceSegment |
|---|
getChannelIDs, getChannelIDsSize, getMonoSourceSlotIDs, getMonoSourceSlotIDsSize, getSourceID, getSourceMobSlotID, setChannelIDs, setMonoSourceSlotIDs, setSourceID, setSourceMobSlotID |
| Methods inherited from interface tv.amwa.maj.iface.Segment |
|---|
segmentOffsetToTC, segmentTCToOffset |
| Methods inherited from interface tv.amwa.maj.iface.Component |
|---|
appendAttribute, appendAttribute, appendComment, appendComment, appendKLVData, countAttributes, countComments, countKLVData, getAttributes, getComments, getDataDefinition, getKLVData, getLength, removeAttribute, removeComment, removeKLVData, setDataDefinition, setLength |
| 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 |
|---|
toString |
| Constructor Detail |
|---|
public DescriptiveClip(DataDefinition dataDefinition,
long length,
SourceReferenceValue sourceReference)
throws NullPointerException,
BadLengthException
Creates and initializes a new descriptive clip, which specifies what is being descibed and references a mob to provide that description.
dataDefinition - Kind of data represented by this component.length - Length of the source clip component.sourceReference - Reference to the mob providing the description.
NullPointerException - The data definition and/or source reference arguments are
null.
BadLengthException - The length of a descriptive clip cannot be negative.| Method Detail |
|---|
public final void setPropertiesFromInterface(DescriptiveClip castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)
@AAFProperty(uuid1=17236230,
uuid2=0,
uuid3=0,
uuid4={6,14,43,52,1,1,1,5},
definedName="SourceTrackIDs",
typeName="UInt32Set",
optional=true,
uniqueIdentifier=false,
pid=24835)
public Set<Integer> getDescribedSlotIDs()
DescriptiveClipReturns a copy of the set of descriptive slot ids referenced by this descriptive clip, which specify which of the essence mob slots in the mob are being referenced.
getDescribedSlotIDs in interface DescriptiveClip
public void addDescribedSlotID(int describedSlotID)
throws IllegalArgumentException,
InvalidParameterException
DescriptiveClipAdds the given described slot id to the list of described slot ids referenced by this descriptive clip,which specify which of the essence mob slots in the mob are being referenced.
addDescribedSlotID in interface DescriptiveClipdescribedSlotID - Descriptive slot id to add to the set of described slot ids
referenced by this descriptive clip.
IllegalArgumentException - The given slot id is negative.
InvalidParameterException - The given described slot id is already contained
in the list of described slot ids referenced by this descriptive clip.public int countDescribedSlotIDs()
DescriptiveClipReturns the number of described slot ids in the set of described slot ids referenced by this descriptive clip, which specify which of the essence mob slots in the mob are being referenced.
countDescribedSlotIDs in interface DescriptiveClip
public boolean isDescribedSlotIDPresent(int describedSlotID)
throws IllegalArgumentException
DescriptiveClipReturns true if the given described slot id is present in the
set of described slot ids referenced from this source clip, hich specify which of the essence
mob slots in the mob are being referenced.
isDescribedSlotIDPresent in interface DescriptiveClipdescribedSlotID - Described slot id to check to see if it is contained in the set
of described slot ids of this descriptive clip.
IllegalArgumentException - The given slot id is negative.
public void removeDescribedSlotID(int describedSlotID)
throws IllegalArgumentException,
InvalidParameterException
DescriptiveClipRemoves the given described slot id from the list of described slot ids referenced by this descriptive clip, which specify which of the essence mob slots in the mob are being referenced. In effect, optional property empty sets become not present when the last element is removed.
removeDescribedSlotID in interface DescriptiveClipdescribedSlotID - Described slot id to remove from this descriptive clip.
IllegalArgumentException - A given slot id is negative.
InvalidParameterException - The given slot id is not in the set of descriptive
slot ids of this descriptive clip.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 SourceClipo - Object to test for equality with.
SourceReferenceSegment.equals(java.lang.Object)public int hashCode()
MAJCommonReturns a hash code value for this interchange object.
hashCode in interface MAJCommonhashCode in class SourceClipObject.hashCode()public DescriptiveClip clone()
MAJCommonCreates a cloned copy of this entity. The clone will be initialized to have the same value as this value but exists independently from then on. Changes to this value will not effect the clone and changes to the clone will not effect this. MAJ API clones are true deep clones with no shared references to areas of memory within the original.
This method does not throw a CloneNotSupportedException as all
entity values must implement the Cloneable interface. If a cloning
error does occur, a null value will be returned but this is very unlikely
to happen.
clone in interface MAJCommonclone in class SourceClipObject.clone()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 SourceClipparent - 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 | |||||||