Media Authoring
with Java API

tv.amwa.maj.argument
Class IdentificationCriteriaByIdProductID

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

public class IdentificationCriteriaByIdProductID
extends IdentificationCriteria
implements IdentificationCriteriaByIdProductID, Serializable, Cloneable

Implementation of a criteria for matching an identification by its product id.

Author:
Richard Cartwright
See Also:
Serialized Form

Constructor Summary
IdentificationCriteriaByIdProductID(AUID productId)
          Create a criteria for matching an identification defined by the given product id.
 
Method Summary
 IdentificationCriteriaByIdProductID clone()
           
 boolean equals(Object o)
           
 AUID getProductID()
          Returns the product id that defines this identification criteria as an AUID.
 int hashCode()
           
 void setProductID(AUID productId)
          Sets the product id that defines 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

IdentificationCriteriaByIdProductID

public IdentificationCriteriaByIdProductID(AUID productId)
                                    throws NullPointerException

Create a criteria for matching an identification defined by the given product id.

Parameters:
productId - Product identifier defining the new identification criteria.
Throws:
NullPointerException - The given product id is null.
See Also:
Identification.getProductID()
Method Detail

getProductID

public AUID getProductID()
Description copied from interface: IdentificationCriteriaByIdProductID

Returns the product id that defines this identification criteria as an AUID.

Specified by:
getProductID in interface IdentificationCriteriaByIdProductID
Returns:
Product id of this identification criteria.

setProductID

public void setProductID(AUID productId)
                  throws NullPointerException
Description copied from interface: IdentificationCriteriaByIdProductID

Sets the product id that defines this identification criteria.

Specified by:
setProductID in interface IdentificationCriteriaByIdProductID
Parameters:
productId - Product id of this identification criteria.
Throws:
NullPointerException - The given product id 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 productId="urn:uuid:7ab65789-dfed-7891-f6b7-a8d67892"/>
 

Overrides:
toString in class Object
Returns:
String representation of an identification criteria defined by product id.

clone

public IdentificationCriteriaByIdProductID 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.