|
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.EssenceGroup
@AAFClass(uuid1=218169601, uuid2=257, uuid3=1280, uuid4={6,14,43,52,2,6,1,1}, definedName="EssenceGroup", description="The EssenceGroup class describes multiple digital representations of the same original content source.") public class EssenceGroup
Implements the description of multiple digital representations of the same original content source. The essence type and length of all choices must be the same.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
Nested Class Summary | |
---|---|
static class |
EssenceGroup.ChoicesXMLHandler
|
static class |
EssenceGroup.StillFrameXMLHandler
|
static class |
EssenceGroup.XMLHandler
|
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.Component |
---|
COMPONENT_ITEM |
Constructor Summary | |
---|---|
EssenceGroup(DataDefinition dataDefinition,
long length)
Creates and initializes a new essence group segment, which describes multiple digital representations of the same original content source. |
Method Summary | |
---|---|
void |
appendChoice(Segment choice)
Append a choice to the collection of segment choices of this essence group, which identify the alternate representations that may be chosen. |
void |
appendXMLChildren(Node parent)
Append child elements to the given parent node to serialize the value of an object to an XML fragment. |
EssenceGroup |
clone()
Creates a cloned copy of this entity. |
int |
countChoices()
Returns the number of choices in the collection of alternates of this essence group, which identify the alternate representations that may be chosen. |
boolean |
equals(Object o)
Tests to see if the given object is equal to this interchange object. |
Segment |
getChoiceAt(int index)
Returns the source clip choice at the given index in the collection of choices of this essence group, which identify the alternate representations that may be chosen. |
List<Segment> |
getChoices()
|
SourceReferenceSegment |
getStillFrame()
Gets the still frame property of this essence group, which identifies the essence for a single-frame image representation of the group. |
int |
hashCode()
Returns a hash code value for this interchange object. |
void |
insertChoiceAt(int index,
Segment choice)
Insert another choice to the collections of choices of this essence group at the given index. |
void |
prependChoice(Segment choice)
Prepend a choice to the collection of segment choices of this essence group, which identify the alternate representations that may be chosen. |
void |
removeChoiceAt(int index)
Removes the choice at the given index in the collection of choices of this essence group, which identify the alternate representations that may be chosen. |
void |
setPropertiesFromInterface(EssenceGroup castFrom)
|
void |
setStillFrame(SourceReferenceSegment stillFrame)
Sets the still frame property of this essence group, which identifies the essence for a single-frame image representation of the group. |
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.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 EssenceGroup(DataDefinition dataDefinition, long length) throws NullPointerException, BadLengthException
Creates and initializes a new essence group segment, which describes multiple digital representations of the same original content source.
dataDefinition
- Kind of data described by the component.length
- Length of each and every segment in this group.
NullPointerException
- Data definition argument is null
.
BadLengthException
- Cannot set the length of a component to a negative value.Method Detail |
---|
public final void setPropertiesFromInterface(EssenceGroup castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)
public void appendChoice(Segment choice) throws NullPointerException, InvalidDataDefinitionException, BadLengthException
EssenceGroup
Append a choice to the collection of segment choices of this essence group, which identify the alternate representations that may be chosen. The order of the items in the collection is not meaningful.
appendChoice
in interface EssenceGroup
choice
- Source clip to add in as a choice to the collection of choices of this essence group.
NullPointerException
- The given segment choice is null
.
InvalidDataDefinitionException
- The data definition of the given segment does not convert to
an acceptable definition for this group.
BadLengthException
- The length of the given segment is different to the length
of other choices of this group.public int countChoices()
EssenceGroup
Returns the number of choices in the collection of alternates of this essence group, which identify the alternate representations that may be chosen. The count does not include the still frame.
countChoices
in interface EssenceGroup
public Segment getChoiceAt(int index) throws IndexOutOfBoundsException
EssenceGroup
Returns the source clip choice at the given index in the collection of choices of this essence group, which identify the alternate representations that may be chosen.
getChoiceAt
in interface EssenceGroup
index
- The 0-based index into the collection of choices of this essence group.
IndexOutOfBoundsException
- Index is outside the acceptable range for the collection
of this essence group.public void insertChoiceAt(int index, Segment choice) throws NullPointerException, IndexOutOfBoundsException, InvalidDataDefinitionException, BadLengthException
EssenceGroup
Insert another choice to the collections of choices of this essence group at the given index. The choices identify the alternate representations that may be chosen. Choices already existing at the given and higher indices will be moved up by one index to accommodate.
insertChoiceAt
in interface EssenceGroup
index
- Index at which to insert a new choice into the collection of choices of this essence group.choice
- Segment to add as a choice.
NullPointerException
- The given choice segment is null
.
IndexOutOfBoundsException
- Index is outside the
acceptable range for this group.
InvalidDataDefinitionException
- The data definition of the given segment does not convert to
an acceptable definition for this group.
BadLengthException
- The length of the given segment is different to the length
for other choices of the group.public void prependChoice(Segment choice) throws NullPointerException, InvalidDataDefinitionException, BadLengthException
EssenceGroup
Prepend a choice to the collection of segment choices of this essence group, which identify the alternate representations that may be chosen. The order of the items in the collection is not meaningful.
prependChoice
in interface EssenceGroup
choice
- Source clip to add as a choice to the collection of choices of this essence group.
NullPointerException
- The given choice segment is null
.
InvalidDataDefinitionException
- The data definition of the given segment does not convert to
an acceptable definition for this group.
BadLengthException
- The length of the given segment is different to the length
of other choices of the group.public void removeChoiceAt(int index) throws IndexOutOfBoundsException
EssenceGroup
Removes the choice at the given index in the collection of choices of this essence group, which identify the alternate representations that may be chosen. Items already existing at higher indices will be moved down by one index to accommodate. The essence group should always contain at least one choice, although the implementation may not check this.
removeChoiceAt
in interface EssenceGroup
index
- The 0-based index into the collection of choices indicating which
choice to remove.
IndexOutOfBoundsException
- Index is outside the acceptable
range for this group.@AAFProperty(uuid1=100729092, uuid2=1537, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="Choices", typeName="StrongReferenceVector of Segment", optional=false, uniqueIdentifier=false, pid=1281) public List<Segment> getChoices()
@AAFProperty(uuid1=100729092, uuid2=520, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="StillFrame", typeName="StrongReference to SourceReference", optional=true, uniqueIdentifier=false, pid=1282) public SourceReferenceSegment getStillFrame() throws PropertyNotPresentException
EssenceGroup
Gets the still frame property of this essence group, which identifies the essence for a single-frame image representation of the group. This is an optional property.
getStillFrame
in interface EssenceGroup
PropertyNotPresentException
- The still frame property is not present within this
essence group.public void setStillFrame(SourceReferenceSegment stillFrame) throws NullPointerException, InvalidDataDefinitionException, BadLengthException
EssenceGroup
Sets the still frame property of this essence group, which identifies the essence
for a single-frame image representation of the group. Call this method with null
to omit this optional property.
setStillFrame
in interface EssenceGroup
stillFrame
- Still frame representation for the essence group.
InvalidDataDefinitionException
- The given source clip does not have a compatible data definition that
can convert to the data definition of this essence group.
BadLengthException
- The given source reference segment does not represent a still frame with a
length of exactly 1.
NullPointerException
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 EssenceGroup clone()
MAJCommon
Creates 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 MAJCommon
clone
in class Segment
Object.clone()
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 |