|
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
@AAFClass(uuid1=218169601,
uuid2=257,
uuid3=4352,
uuid4={6,14,43,52,2,6,1,1},
definedName="SourceClip",
description="The SourceClip class represents the essence and identifies the source of the essence.")
public class SourceClip
Implements a representation of essence and identifies the source of the essence. This interface uses the source reference values to manage the properties of a source clip.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
| Nested Class Summary | |
|---|---|
static class |
SourceClip.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 | |
|---|---|
SourceClip(DataDefinition dataDefinition,
long length,
SourceReferenceValue sourceReference)
Creates and initializes a new source clip, which represents an item of essence and identifies the source of the essence. |
|
| 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. |
SourceClip |
clone()
Creates a cloned copy of this entity. |
boolean |
equals(Object o)
Tests to see if the given object is equal to this interchange object. |
Fade |
getFade()
Deprecated. |
long |
getFadeInLength()
Deprecated. |
FadeType |
getFadeInType()
Deprecated. |
long |
getFadeOutLength()
Deprecated. |
FadeType |
getFadeoutType()
Deprecated. |
SourceReferenceValue |
getSourceReference()
The method returns the source reference of this source clip. |
long |
getStartTime()
|
int |
hashCode()
Returns a hash code value for this interchange object. |
Mob |
resolveRef()
Returns the mob that this source clip references. |
void |
setFade(Fade fade)
Deprecated. |
void |
setFade(long fadeInLength,
FadeType fadeInType,
long fadeOutLength,
FadeType fadeOutType)
Deprecated. |
void |
setPropertiesFromInterface(SourceClip castFrom)
|
void |
setSourceReference(SourceReferenceValue sourceReference)
Sets the source reference of this source clip. |
| 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.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 SourceClip(DataDefinition dataDefinition,
long length,
SourceReferenceValue sourceReference)
throws NullPointerException,
BadLengthException
Creates and initializes a new source clip, which represents an item of essence and identifies the source of the essence.
dataDefinition - Kind of data represented by this component.length - Length of the source clip component.sourceReference - Reference to the source clip.
NullPointerException - The data definition and/or source reference arguments
are null.
BadLengthException - The length of the component must be non-negative.| Method Detail |
|---|
public final void setPropertiesFromInterface(SourceClip castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)public SourceReferenceValue getSourceReference()
SourceClipThe method returns the source reference of this source clip. The source reference includes the start time property of this source clip.
getSourceReference in interface SourceClipSourceReferenceValue.isContextual(),
SourceReferenceValue.isOriginalSource(),
SourceReferenceValue.getStartTime()
public void setSourceReference(SourceReferenceValue sourceReference)
throws NullPointerException
SourceClipSets the source reference of this source clip. The source reference includes the start time property of this source clip.
setSourceReference in interface SourceClipsourceReference - Source reference of this source clip.
NullPointerException - The given source reference is null.SourceReferenceValue.originalSource(),
SourceReferenceValue.inContextReference(int),
SourceReferenceValue.inContextReference(int, Long),
SourceReferenceValue.SourceReferenceValue(tv.amwa.maj.record.MobID, int, Long)
public Mob resolveRef()
throws MobNotFoundException
SourceClipReturns the mob that this source clip references.
resolveRef in interface SourceClipMobNotFoundException - The source reference of this source clip
could not be resolved to a mob.
@Deprecated
public void setFade(long fadeInLength,
FadeType fadeInType,
long fadeOutLength,
FadeType fadeOutType)
throws BadLengthException
SourceClipSets the optional fade properties of this source clip. The fade properties only apply to a source clip of data definition (or convertible to a data definition) of type sound. All arguments should be specified. Length units are specified by the containing mob slot's edit rate.
setFade in interface SourceClipfadeInLength - Fade in length for the source clip.fadeInType - Fade in type for the source clip.fadeOutLength - Fade out length for the source clip.fadeOutType - Fade out type for the source clip.
BadLengthException - One or both of the length parameters of the fade is/are negative.Component.getDataDefinition(),
DataDefinitionConstant.Sound,
SourceClip.setFade(tv.amwa.maj.record.Fade)@Deprecated public Fade getFade()
SourceClipThis method returns the optional fade information for this source clip. This function only applies to audio source clips. Length units are specified by the containing mob slot's edit rate.
getFade in interface SourceClip
@Deprecated
public void setFade(Fade fade)
throws NullPointerException
SourceClipSets the optional fade properties of this source clip from a set of fade properties. The fade properties only apply to a source clip of data definition (or convertible to a data definition) of type sound. Length units are specified by the containing mob slot's edit rate.
setFade in interface SourceClipfade - Parameters of a fade for this source clip.
NullPointerException - The given set of fade properties is null.Component.getDataDefinition(),
DataDefinitionConstant.Sound,
Fade.Fade(long, FadeType, long, FadeType),
SourceClip.setFade(long, FadeType, long, FadeType)
@AAFProperty(uuid1=117572097,
uuid2=261,
uuid3=512,
uuid4={6,14,43,52,1,1,1,2},
definedName="FadeInLength",
typeName="LengthType",
optional=true,
uniqueIdentifier=false,
pid=4610)
@Deprecated
public long getFadeInLength()
throws PropertyNotPresentException
PropertyNotPresentException
@AAFProperty(uuid1=87033089,
uuid2=0,
uuid3=0,
uuid4={6,14,43,52,1,1,1,1},
definedName="FadeInType",
typeName="FadeType",
optional=true,
uniqueIdentifier=false,
pid=4611)
@Deprecated
public FadeType getFadeInType()
throws PropertyNotPresentException
PropertyNotPresentException
@AAFProperty(uuid1=117572097,
uuid2=261,
uuid3=768,
uuid4={6,14,43,52,1,1,1,2},
definedName="FadeOutLength",
typeName="LengthType",
optional=true,
uniqueIdentifier=false,
pid=4612)
@Deprecated
public long getFadeOutLength()
throws PropertyNotPresentException
PropertyNotPresentException
@AAFProperty(uuid1=87033090,
uuid2=0,
uuid3=0,
uuid4={6,14,43,52,1,1,1,1},
definedName="FadeOutType",
typeName="FadeType",
optional=true,
uniqueIdentifier=false,
pid=4613)
@Deprecated
public FadeType getFadeoutType()
throws PropertyNotPresentException
PropertyNotPresentException
@AAFProperty(uuid1=117571843,
uuid2=260,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="StartTime",
typeName="PositionType",
optional=true,
uniqueIdentifier=false,
pid=4609)
public long getStartTime()
throws PropertyNotPresentException
PropertyNotPresentExceptionpublic 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 SourceReferenceSegmento - 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 SourceReferenceSegmentObject.hashCode()public SourceClip 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 SegmentObject.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 SourceReferenceSegmentparent - 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 | |||||||