|
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.DefinitionObject
tv.amwa.maj.entity.ContainerDefinition
@AAFClass(uuid1=218169601, uuid2=257, uuid3=8192, uuid4={6,14,43,52,2,6,1,1}, definedName="ContainerDefinition", description="The ContainerDefinition class specifies the mechanism used to store essence data.") public class ContainerDefinition
Implements a definition for the mechanism used to store essence data. A container can be either a kind of file, such as an AAF file, or it can be another mechanism for storing essence data.
THE COMMENTS IN THIS CLASS ARE INCOMPLETE.
Nested Class Summary | |
---|---|
static class |
ContainerDefinition.XMLHandler
|
Nested classes/interfaces inherited from class tv.amwa.maj.entity.DefinitionObject |
---|
DefinitionObject.DefinitionObjectXMLHandler |
Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
---|
InterchangeObject.InterchangeObjectXMLHandler |
Field Summary |
---|
Constructor Summary | |
---|---|
ContainerDefinition(AUID identification,
String name)
Creates and initializes a container definition, which specifies the mechanism used to store essence data. |
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. |
ContainerDefinition |
clone()
Creates a cloned copy of this entity. |
boolean |
essenceIsIdentified()
Returns whether the essence of the defined container is identified, which specifies when true that
the container uses the mob id to identify the
essence data and that the container may contain multiple essence
data objects, each identified by a mob id. |
static ContainerDefinition |
forIdentification(AUID identification)
|
static ContainerDefinition |
forName(String containerName)
|
boolean |
getEssenceIsIdentified()
Returns whether the essence of the defined container is identified, which specifies when true that
the container uses the mob id to identify the
essence data and that the container may contain multiple essence
data objects, each identified by a mob id. |
String |
getLocalizedUID()
|
static boolean |
registerContainerDefinition(ContainerDefinition definedContainer)
|
static int |
registerContainersFromClass(Class<?> classWithContainers)
|
void |
setEssenceIsIdentified(Boolean essenceIsIdentified)
Sets whether the essence of the defined container is identified, which specifies when true that
the container uses the mob id to identify the
essence data and that the container may contain multiple essence
data objects, each identified by a mob id. |
void |
setPropertiesFromInterface(ContainerDefinition castFrom)
|
Methods inherited from class tv.amwa.maj.entity.DefinitionObject |
---|
equals, getAUID, getDescription, getName, hashCode, setDescription, setLocalizedUID, setName |
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.DefinitionObject |
---|
getAUID, getDescription, getName, setDescription, setName |
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 |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public ContainerDefinition(AUID identification, String name) throws NullPointerException
Creates and initializes a container definition, which specifies the mechanism
used to store essence data. A container can be either a kind of file, such as an AAF file,
or it can be another mechanism for storing essence data. The essence is idenfified flag is
initially set to false
. Call
setEssenceIsIdentified()
to
change this.
identification
- Unique identifier for the new container definition.name
- Display name for new container definition.
NullPointerException
- Identification argument is null
.Method Detail |
---|
public static final int registerContainersFromClass(Class<?> classWithContainers) throws NullPointerException
NullPointerException
public static final boolean registerContainerDefinition(ContainerDefinition definedContainer) throws NullPointerException
NullPointerException
public static final ContainerDefinition forName(String containerName) throws NullPointerException
NullPointerException
public static final ContainerDefinition forIdentification(AUID identification) throws NullPointerException
NullPointerException
public final void setPropertiesFromInterface(ContainerDefinition castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)
public boolean essenceIsIdentified() throws PropertyNotPresentException
ContainerDefinition
Returns whether the essence of the defined container is identified, which specifies when true
that
the container uses the mob id to identify the
essence data and that the container may contain multiple essence
data objects, each identified by a mob id. This is an optional
property.
essenceIsIdentified
in interface ContainerDefinition
PropertyNotPresentException
- The optional essence is identified property is not present
in the container definition.@AAFProperty(uuid1=50397697, uuid2=768, uuid3=0, uuid4={6,14,43,52,1,1,1,1}, definedName="EssenceIsIdentified", typeName="Boolean", optional=true, uniqueIdentifier=false, pid=9217) public boolean getEssenceIsIdentified() throws PropertyNotPresentException
ContainerDefinition
Returns whether the essence of the defined container is identified, which specifies when true
that
the container uses the mob id to identify the
essence data and that the container may contain multiple essence
data objects, each identified by a mob id. This is an
optional property.
getEssenceIsIdentified
in interface ContainerDefinition
PropertyNotPresentException
- The optional essence is identified property is not present
in the container definition.public void setEssenceIsIdentified(Boolean essenceIsIdentified)
ContainerDefinition
Sets whether the essence of the defined container is identified, which specifies when true
that
the container uses the mob id to identify the
essence data and that the container may contain multiple essence
data objects, each identified by a mob id. To omit
this optional property, set its value to null
.
setEssenceIsIdentified
in interface ContainerDefinition
essenceIsIdentified
- Is the essence identified?public ContainerDefinition 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 DefinitionObject
Object.clone()
public String getLocalizedUID()
getLocalizedUID
in class DefinitionObject
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 DefinitionObject
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 |