Media Authoring
with Java API

tv.amwa.maj.argument
Class IdentificationCriteriaByIdRefImplVersion

java.lang.Object
  extended by tv.amwa.maj.argument.IdentificationCriteria
      extended by tv.amwa.maj.argument.IdentificationCriteriaByIdRefImplVersion
All Implemented Interfaces:
Serializable, Cloneable, IdentificationCriteria, IdentificationCriteriaByIdRefImplVersion

public class IdentificationCriteriaByIdRefImplVersion
extends IdentificationCriteria
implements IdentificationCriteriaByIdRefImplVersion, Serializable, Cloneable

Implementation of a criteria for matching an identification by its reference implementation version, also known as its toolkit version.

Author:
Richard Cartwright
See Also:
Serialized Form

Constructor Summary
IdentificationCriteriaByIdRefImplVersion(ProductVersion referenceImplementationVersion)
          Create an identification criteria by reference implementation version.
 
Method Summary
 IdentificationCriteriaByIdRefImplVersion clone()
           
 boolean equals(Object o)
           
 ProductVersion getReferenceImplementationVersion()
          Returns the product version of this identification criteria.
 int hashCode()
           
 void setReferenceImplementationVersion(ProductVersion referenceImplementationVersion)
          Sets the product version of this identification criteria.
 String toString()
          Pseudo-XML representation of this identification criteria.
 
Methods inherited from class tv.amwa.maj.argument.IdentificationCriteria
getIdentificationCriteriaType
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface tv.amwa.maj.union.IdentificationCriteria
getIdentificationCriteriaType
 

Constructor Detail

IdentificationCriteriaByIdRefImplVersion

public IdentificationCriteriaByIdRefImplVersion(ProductVersion referenceImplementationVersion)
                                         throws NullPointerException

Create an identification criteria by reference implementation version.

Parameters:
referenceImplementationVersion - Product version of a reference implementation.
Throws:
NullPointerException - The given product version value is null.
See Also:
Identification.getRefImplVersion()
Method Detail

getReferenceImplementationVersion

public ProductVersion getReferenceImplementationVersion()
Description copied from interface: IdentificationCriteriaByIdRefImplVersion

Returns the product version of this identification criteria.

Specified by:
getReferenceImplementationVersion in interface IdentificationCriteriaByIdRefImplVersion
Returns:
Product version of this identification criteria.

setReferenceImplementationVersion

public void setReferenceImplementationVersion(ProductVersion referenceImplementationVersion)
                                       throws NullPointerException
Description copied from interface: IdentificationCriteriaByIdRefImplVersion

Sets the product version of this identification criteria.

Specified by:
setReferenceImplementationVersion in interface IdentificationCriteriaByIdRefImplVersion
Parameters:
referenceImplementationVersion - Product version of this identification criteria.
Throws:
NullPointerException - The given product version is null.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()

Pseudo-XML representation of this identification criteria. No corresponding XML schema or DTD is defined. For example:

 <IdentificationCriteria>
   <ProductVersion>
     <major>1</major>
     <minor>2</minor>
     <tertiary>3</tertiary>
     <patchLevel>4</patchLevel>
     <type>Debug</type>
   </ProductVersion>
 </IdentificationCriteria>
 

Overrides:
toString in class Object
Returns:
String representation of an identification criteria defined by reference implementation version.

clone

public IdentificationCriteriaByIdRefImplVersion clone()
                                               throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Media Authoring
with Java API

(c) 2007-2008 Richard Cartwright, all rights reserved. Subject to the terms of the AAF SDK Public Source License.