|
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.Identification
@AAFClass(uuid1=218169601, uuid2=257, uuid3=12288, uuid4={6,14,43,52,2,6,1,1}, definedName="Identification", description="The Identification class provides information about the application that created or modified the file.") public class Identification
Implements a representation of identity information about the application that created or modified a file.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
Nested Class Summary | |
---|---|
static class |
Identification.ProductVersionXMLHandler
|
static class |
Identification.ToolkitVersionXMLHandler
|
static class |
Identification.XMLHandler
|
Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
---|
InterchangeObject.InterchangeObjectXMLHandler |
Field Summary | |
---|---|
static String |
APICompanyName
|
static AUID |
APIProductID
|
static String |
APIProductName
|
static ProductVersion |
APIProductVersion
|
static String |
APIProductVersionString
|
static ProductVersion |
APIToolkitVersion
|
static String |
IDENTIFICATION_TAG
|
Constructor Summary | |
---|---|
Identification(String companyName,
String productName,
String productVersionString,
AUID productID)
Creates and initializes a new identification object, which provides information about the application that created or modified the current persistent unit. |
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. |
Identification |
clone()
Creates a cloned copy of this entity. |
boolean |
equals(Object o)
Two identifications are equals if they have the same generation id. |
String |
getCompanyName()
Returns the company name property of this identification, which specifies the name of the company or organization that created the application. |
TimeStamp |
getDate()
Returns the time stamp property of this identification. |
Identification |
getGeneration()
Gets the generation of this object, which identifies when this object was created or last modified. |
AUID |
getGenerationAUID()
Shortcut to get the AUID of the identification representing this object's generation. |
String |
getPlatform()
Returns the platform property of this identification, which specifies the toolkit and the platform on which the application is running, e.g. |
AUID |
getProductID()
Returns the product id of this identification, which uniquely identifies the application. |
String |
getProductName()
Returns the product name of this identification, which specifies the name of the application. |
ProductVersion |
getProductVersion()
Gets the product version property associated with this identification, which specifies the version number of the application. |
String |
getProductVersionString()
Returns the product version string of this identification, which specifies the version number of the application in string form. |
ProductVersion |
getRefImplVersion()
Returns the reference implementation which created this identification object. |
ProductVersion |
getToolkitVersion()
Returns the reference implementation which created this identification object. |
int |
hashCode()
Returns a hash code value for this interchange object. |
void |
setProductVersion(ProductVersion version)
Set the product version property of this identification, which specifies the version number of the application. |
void |
setPropertiesFromInterface(Identification castFrom)
|
Methods inherited from class tv.amwa.maj.entity.InterchangeObject |
---|
castFromInterface, countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, 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.InterchangeObject |
---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
Methods inherited from interface tv.amwa.maj.entity.MAJCommon |
---|
toString |
Field Detail |
---|
public static final String APICompanyName
public static final String APIProductName
public static final ProductVersion APIProductVersion
public static final String APIProductVersionString
public static final AUID APIProductID
public static final ProductVersion APIToolkitVersion
public static final String IDENTIFICATION_TAG
Constructor Detail |
---|
public Identification(@AAFString String companyName, @AAFString String productName, @AAFString String productVersionString, AUID productID) throws NullPointerException
Creates and initializes a new identification object, which provides information about the application that created or modified the current persistent unit. The mandatory date and generation AUID properties of the identification will be created automatically.
companyName
- Name of the company or organization that created the application.productName
- Name of the application.productVersionString
- Version number of the application in string form.productID
- Unique identifier for the application.
NullPointerException
- One or more of the arguments is null
and all
arguments are required.Method Detail |
---|
public final void setPropertiesFromInterface(Identification castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)
@AAFProperty(uuid1=85985025, uuid2=513, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="CompanyName", typeName="String", optional=false, uniqueIdentifier=false, pid=15361) public String getCompanyName()
Identification
Returns the company name property of this identification, which specifies the name of the company or organization that created the application.
getCompanyName
in interface Identification
@AAFProperty(uuid1=117571856, uuid2=515, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="Date", typeName="TimeStamp", optional=false, uniqueIdentifier=false, pid=15366) public TimeStamp getDate()
Identification
Returns the time stamp property of this identification. The date-time stamp recorded in this object corresponds to the time that this file was created or modified on the occasion that this identification was added to the file.
getDate
in interface Identification
Header.appendIdentification(Identification)
@AAFProperty(uuid1=85985025, uuid2=256, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="GenerationAUID", typeName="AUID", optional=false, uniqueIdentifier=false, pid=15369) public AUID getGenerationAUID()
InterchangeObject
Shortcut to get the AUID of the identification representing this object's generation.
This method will succeed if generation tracking is enabled for
this object. Call InterchangeObject.enableGenerationTracking()
and
InterchangeObject.disableGenerationTracking()
to control generation tracking for
this object. Call InterchangeObject.isGenerationTracked()
to determine if
generation tracking is currently enabled for this object.
getGenerationAUID
in interface Identification
getGenerationAUID
in interface InterchangeObject
getGenerationAUID
in class InterchangeObject
InterchangeObject.getGeneration()
,
Identification.getGenerationAUID()
@AAFProperty(uuid1=85985025, uuid2=1537, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="Platform", typeName="String", optional=true, uniqueIdentifier=false, pid=15368) public String getPlatform()
Identification
Returns the platform property of this identification, which specifies the toolkit and the platform on which the application is running, e.g. "MAJ API". This is an optional property.
This information is provided only to allow diagnostic printing of platform information to be read by humans. The format of the strings is not guaranteed to remain the same for a given platform.
getPlatform
in interface Identification
@AAFProperty(uuid1=85985025, uuid2=1792, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ProductID", typeName="AUID", optional=false, uniqueIdentifier=false, pid=15365) public AUID getProductID()
Identification
Returns the product id of this identification, which uniquely identifies the application.
getProductID
in interface Identification
@AAFProperty(uuid1=85985025, uuid2=769, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ProductName", typeName="String", optional=false, uniqueIdentifier=false, pid=15362) public String getProductName()
Identification
Returns the product name of this identification, which specifies the name of the application.
getProductName
in interface Identification
@AAFProperty(uuid1=85985025, uuid2=1024, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ProductVersion", typeName="ProductVersion", optional=true, uniqueIdentifier=false, pid=15363) public ProductVersion getProductVersion() throws PropertyNotPresentException
Identification
Gets the product version property associated with this identification, which specifies the version number of the application. This is an optional property.
getProductVersion
in interface Identification
PropertyNotPresentException
- The optional product version property is
not present in this identification.public void setProductVersion(ProductVersion version)
Identification
Set the product version property of this identification, which specifies the
version number of the application. Set this optional property to null
to
omit it.
setProductVersion
in interface Identification
version
- Product version to set for this identification.@AAFProperty(uuid1=85985025, uuid2=1281, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ProductVersionString", typeName="String", optional=false, uniqueIdentifier=false, pid=15364) public String getProductVersionString()
Identification
Returns the product version string of this identification, which specifies the version number of the application in string form.
getProductVersionString
in interface Identification
@AAFProperty(uuid1=85985025, uuid2=2560, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="ToolkitVersion", typeName="ProductVersion", optional=true, uniqueIdentifier=false, pid=15367) public ProductVersion getToolkitVersion()
Returns the reference implementation which created this identification object.
Same as getRefImplVersion()
to use the AAF specification name.
Identification.getRefImplVersion()
public ProductVersion getRefImplVersion()
Identification
Returns the reference implementation which created this identification object.
getRefImplVersion
in interface Identification
public Identification getGeneration()
InterchangeObject
Gets the generation of this object, which identifies when this object was created or last modified.
This method will succeed if generation tracking is enabled for
this object. Call InterchangeObject.enableGenerationTracking()
and
InterchangeObject.disableGenerationTracking()
to control generation tracking for
this object. Call InterchangeObject.isGenerationTracked()
to determine if
generation tracking is currently enabled for this object.
getGeneration
in interface InterchangeObject
getGeneration
in class InterchangeObject
public boolean equals(Object o)
Two identifications are equals if they have the same generation id.
equals
in interface MAJCommon
equals
in class Object
o
- Object to test for equality with.
Object.equals(java.lang.Object)
public int hashCode()
MAJCommon
Returns a hash code value for this interchange object.
hashCode
in interface MAJCommon
hashCode
in class Object
Object.hashCode()
public Identification 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 Object
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 InterchangeObject
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 |