|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tv.amwa.maj.entity.InterchangeObject tv.amwa.maj.entity.Component tv.amwa.maj.entity.Segment tv.amwa.maj.entity.SourceReferenceSegment
@AAFClass(uuid1=218169601, uuid2=257, uuid3=4096, uuid4={6,14,43,52,2,6,1,1}, definedName="SourceReference", description="The SourceReference class represents the essence or other data described by a MobSlot in a Mob.") public abstract class SourceReferenceSegment
Implements the representation of essence or other data described by a mob slot in a mob.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
Nested Class Summary | |
---|---|
static class |
SourceReferenceSegment.ChannelIDsXMLHandler
|
static class |
SourceReferenceSegment.MonoSourceSlotIDsXMLHandler
|
static class |
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 | |
---|---|
static String |
SOURCEREFERENCE_ITEM
|
Fields inherited from class tv.amwa.maj.entity.Component |
---|
COMPONENT_ITEM |
Constructor Summary | |
---|---|
SourceReferenceSegment()
|
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 |
equals(Object o)
Tests to see if the given object is equal to this interchange object. |
int[] |
getChannelIDs()
For references to a multi-channel mob slot, returns the channel ids property of this source reference, which specifies the channels within that mob slot that are referenced. |
int |
getChannelIDsSize()
Returns the number of elements of the channel ids array of this source reference. |
int[] |
getMonoSourceSlotIDs()
For references from a multi-channel mob slot to multiple mono mob slots, returns the mono source slot ids property of this source reference, which specifies multiple mono mob slots that are referenced. |
int |
getMonoSourceSlotIDsSize()
Returns the size of the mono source slot ids array. |
MobID |
getSourceID()
Returns the source id of this source reference. |
int |
getSourceMobSlotID()
Returns the mob slot id of this source reference. |
int |
hashCode()
Returns a hash code value for this interchange object. |
void |
setChannelIDs(int[] channelIDs)
For references to a multi-channel mob slot, sets the channel ids property of this source reference, which specifies the channels within that mob slot that are referenced. |
void |
setMonoSourceSlotIDs(int[] monoSourceSlotIDs)
For references from a multi-channel mob slot to multiple mono mob slots, sets the mono source slot ids property of this source reference, which specifies multiple mono mob slots that are referenced. |
void |
setPropertiesFromInterface(SourceReferenceSegment castFrom)
|
void |
setSourceID(MobID sourceID)
Set the source id of this source reference, which identifies the mob being referenced. |
void |
setSourceMobSlotID(int slotID)
Sets the mob slot id of this source reference. |
Methods inherited from class tv.amwa.maj.entity.Segment |
---|
clone, 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.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 |
---|
clone, toString |
Field Detail |
---|
public static final String SOURCEREFERENCE_ITEM
Constructor Detail |
---|
public SourceReferenceSegment()
Method Detail |
---|
public final void setPropertiesFromInterface(SourceReferenceSegment castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)
@AAFProperty(uuid1=100729091, uuid2=1792, uuid3=0, uuid4={6,14,43,52,1,1,1,7}, definedName="ChannelIDs", typeName="UInt32Array", optional=true, uniqueIdentifier=false, pid=4355) public int[] getChannelIDs() throws PropertyNotPresentException
SourceReferenceSegment
For references to a multi-channel mob slot, returns the channel ids property of this source reference, which specifies the channels within that mob slot that are referenced. This optional property is omitted to indicate that all channels in the referenced mob slot are referenced in the same order.
The number of channel ids shall equal the number of channels being described the mob slot containing the source reference, e.g. 1 element for a mono audio slot, 6 elements for a 5.1 multi-channel audio slot.
getChannelIDs
in interface SourceReferenceSegment
PropertyNotPresentException
- The optional channel ids property is
not present in this source reference.public void setChannelIDs(int[] channelIDs) throws IllegalArgumentException
SourceReferenceSegment
For references to a multi-channel mob slot, sets the
channel ids property of this source reference, which specifies the channels
within that mob slot that are referenced. Set this
optional property to null
to omit it and indicate that all channels in the
referenced mob slot are referenced in the same order.
The number of channel ids shall equal the number of
channels being described the mob slot
containing
the source reference, e.g. 1 element for a mono audio slot,
6 elements for a 5.1 multi-channel audio slot.
setChannelIDs
in interface SourceReferenceSegment
channelIDs
- Array of channel IDs to set for the source
reference.
IllegalArgumentException
public int getChannelIDsSize() throws PropertyNotPresentException
SourceReferenceSegment
Returns the number of elements of the channel ids array of this source reference. For references to a multi-channel mob slot, the channel ids property specifies the channels within that mob slot that are referenced. This is an optional property.
getChannelIDsSize
in interface SourceReferenceSegment
PropertyNotPresentException
- The optional channel ids property is
not present in this source reference.@AAFProperty(uuid1=100729091, uuid2=2048, uuid3=0, uuid4={6,14,43,52,1,1,1,8}, definedName="MonoSourceSlotIDs", typeName="UInt32Array", optional=true, uniqueIdentifier=false, pid=4356) public int[] getMonoSourceSlotIDs() throws PropertyNotPresentException
SourceReferenceSegment
For references from a multi-channel mob slot to multiple mono mob slots, returns the mono source slot ids property of this source reference, which specifies multiple mono mob slots that are referenced. This is an optional property that is omitted to specify that this is a single-channel reference.
The number of elements in the mono source slot ids array shall equal the number of channels being described by the mob slot containing this source reference, e.g. 6 elements for a 5.1 multi-channel audio mob slot.
getMonoSourceSlotIDs
in interface SourceReferenceSegment
PropertyNotPresentException
- This optional mono source slot ids property is
not present in this source reference.public void setMonoSourceSlotIDs(int[] monoSourceSlotIDs) throws IllegalArgumentException
SourceReferenceSegment
For references from a multi-channel mob slot to
multiple mono mob slots, sets the mono source
slot ids property of this source reference, which specifies multiple mono
mob slots that are referenced. Set this optional
property to null
to omit it and specify that this is
a single-channel reference.
The number of elements in the mono source slot ids array shall equal the number of channels being described by the mob slot containing this source reference, e.g. 6 elements for a 5.1 multi-channel audio mob slot.
setMonoSourceSlotIDs
in interface SourceReferenceSegment
monoSourceSlotIDs
- Array of mono source slot ids for this
source reference.
IllegalArgumentException
public int getMonoSourceSlotIDsSize() throws PropertyNotPresentException
SourceReferenceSegment
Returns the size of the mono source slot ids array. For references from a multi-channel mob slot to multiple mono mob slots, the mono source slot ids property specifies multiple mono mob slots that are referenced. This is an optional property.
getMonoSourceSlotIDsSize
in interface SourceReferenceSegment
PropertyNotPresentException
- The optional mono source slot ids property is not
present for this source reference.@AAFProperty(uuid1=100729091, uuid2=256, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="SourceID", typeName="MobIDType", optional=true, uniqueIdentifier=false, pid=4353) public MobID getSourceID() throws PropertyNotPresentException
SourceReferenceSegment
Returns the source id of this source reference. This is an optional property.
If the source id property is the zero mob id, the mob owning the source reference describes the original source. If this property is omitted, the reference is to another mob slot within the same mob.
getSourceID
in interface SourceReferenceSegment
PropertyNotPresentException
- The optional source id property is not present
in this source reference, implying that this is a reference to a mob slot within the
same mob.SourceReferenceValue.getSourceID()
public void setSourceID(MobID sourceID)
SourceReferenceSegment
Set the source id of this source reference, which identifies the mob being referenced.
If the property has a value of the zero mob id, it means that the mob owning this source reference describes the original
source. Set this optional property to null
to omit and indicate that this
reference is to another mob slot in the same mob.
For source clips, it is recommended that the
setSourceReference()
method
is used to set the source id property in preference to this method.
setSourceID
in interface SourceReferenceSegment
sourceID
- Source id of this source reference.SourceReferenceValue.setSourceID(MobID)
,
MobID.getZeroMobID()
,
SourceClip.setSourceReference(SourceReferenceValue)
@AAFProperty(uuid1=100729091, uuid2=512, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="SourceMobSlotID", typeName="UInt32", optional=false, uniqueIdentifier=false, pid=4354) public int getSourceMobSlotID()
SourceReferenceSegment
Returns the mob slot id of this source reference. If the source id property is the the zero mob id, the source mob slot id should be 0.
getSourceMobSlotID
in interface SourceReferenceSegment
SourceReferenceValue.getSourceSlotID()
public void setSourceMobSlotID(int slotID) throws IllegalArgumentException
SourceReferenceSegment
Sets the mob slot id of this source reference. If the source id property is the the zero mob id, the source mob slot id should be 0.
setSourceMobSlotID
in interface SourceReferenceSegment
slotID
- Mob slot id of this source reference.
IllegalArgumentException
- The given source mob slot id is negative.SourceReferenceValue.setSourceSlotID(int)
public boolean equals(Object o)
MAJCommon
Tests 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 MAJCommon
equals
in class Component
o
- Object to test for equality with.
Object.equals(Object)
public int hashCode()
MAJCommon
Returns a hash code value for this interchange object.
hashCode
in interface MAJCommon
hashCode
in class Component
Object.hashCode()
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 Component
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 |