Media Authoring
with Java API

tv.amwa.maj.argument
Class DefinitionCriteriaByClass

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

public class DefinitionCriteriaByClass
extends DefinitionCriteria
implements DefinitionCriteriaByClass, Serializable, Cloneable

Implementation of a criteria for matching a definition determined by reference to the unique identifier of a class definition.

Author:
Richard Cartwright
See Also:
Serialized Form

Constructor Summary
DefinitionCriteriaByClass(AUID classId)
          Create a criteria for matching a definition from the unique identification of a class.
 
Method Summary
 DefinitionCriteriaByClass clone()
           
 boolean equals(Object o)
           
 AUID getClassId()
          Returns the class identifier defining this definition criteria.
 int hashCode()
           
 void setClassId(AUID classId)
          Sets the class identifier defining this definition criteria.
 String toString()
          Creates a pseudo-XML representation of this definition criteria.
 
Methods inherited from class tv.amwa.maj.argument.DefinitionCriteria
getDefinitionType
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface tv.amwa.maj.union.DefinitionCriteria
getDefinitionType
 

Constructor Detail

DefinitionCriteriaByClass

public DefinitionCriteriaByClass(AUID classId)
                          throws NullPointerException

Create a criteria for matching a definition from the unique identification of a class.

Parameters:
classId - Unique identifier of a class providing this definition criteria.
Throws:
NullPointerException - The given class identifier is null.
Method Detail

getClassId

public AUID getClassId()
Description copied from interface: DefinitionCriteriaByClass

Returns the class identifier defining this definition criteria.

Specified by:
getClassId in interface DefinitionCriteriaByClass
Returns:
Class identifier defining this definition criteria.

setClassId

public void setClassId(AUID classId)
                throws NullPointerException
Description copied from interface: DefinitionCriteriaByClass

Sets the class identifier defining this definition criteria.

Specified by:
setClassId in interface DefinitionCriteriaByClass
Parameters:
classId - Class identifier defining this definition criteria.
Throws:
NullPointerException - The class identifier value is null.

equals

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

toString

public String toString()

Creates a pseudo-XML representation of this definition criteria. No XML schema or DTD is defined. For example:

 <DefinitionCriteria classId="urn:x-ul:060e2b34.0206.0101.0d010101.0101.1f00"/>
 

Overrides:
toString in class Object

clone

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