Media Authoring
with Java API

tv.amwa.maj.argument
Class IdentificationCriteriaByIdGeneration

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

public class IdentificationCriteriaByIdGeneration
extends IdentificationCriteria
implements IdentificationCriteriaByIdGeneration, Serializable, Cloneable

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

Author:
Richard Cartwright
See Also:
Serialized Form

Constructor Summary
IdentificationCriteriaByIdGeneration(AUID generationID)
          Create a new identification criteria with a generation ID.
 
Method Summary
 IdentificationCriteriaByIdGeneration clone()
           
 boolean equals(Object o)
           
 AUID getGenerationID()
          Returns the generation id of the identification criteria.
 int hashCode()
           
 void setGenerationID(AUID generationID)
          Sets the generation id of the 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

IdentificationCriteriaByIdGeneration

public IdentificationCriteriaByIdGeneration(AUID generationID)
                                     throws NullPointerException

Create a new identification criteria with a generation ID.

Parameters:
generationID - Generation identifier to match with this identification criteria.
Throws:
NullPointerException - The given generation id is null.
Method Detail

getGenerationID

public AUID getGenerationID()
Description copied from interface: IdentificationCriteriaByIdGeneration

Returns the generation id of the identification criteria.

Specified by:
getGenerationID in interface IdentificationCriteriaByIdGeneration
Returns:
Generation id of the identification criteria.

setGenerationID

public void setGenerationID(AUID generationID)
                     throws NullPointerException
Description copied from interface: IdentificationCriteriaByIdGeneration

Sets the generation id of the identification criteria.

Specified by:
setGenerationID in interface IdentificationCriteriaByIdGeneration
Parameters:
generationID - Set the generation id of the identification criteria.
Throws:
NullPointerException - The given generation 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 generationId="urn:uuid:7ab65789-dfed-7891-f6b7-a8d67892"/>
 

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

clone

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