Media Authoring
with Java API

tv.amwa.maj.argument
Class DefinitionCriteriaByKind

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

public class DefinitionCriteriaByKind
extends DefinitionCriteria
implements DefinitionCriteriaByKind, Serializable, Cloneable

Implementation of a criteria for matching a definition determined by its kind, such as data definition, property definition etc..

Author:
Richard Cartwright
See Also:
DefinitionObject, Serialized Form

Constructor Summary
DefinitionCriteriaByKind(DefinitionKind definitionKind)
          Create a definition criteria with the given kind of definition to match.
 
Method Summary
 DefinitionCriteriaByKind clone()
           
 boolean equals(Object o)
           
 DefinitionKind getKind()
          Returns the definition kind for this definition criteria.
 int hashCode()
           
 void setKind(DefinitionKind kind)
          Sets the definition kind for 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

DefinitionCriteriaByKind

public DefinitionCriteriaByKind(DefinitionKind definitionKind)
                         throws NullPointerException

Create a definition criteria with the given kind of definition to match.

Parameters:
definitionKind - Kind of definition criteria.
Throws:
NullPointerException
Method Detail

getKind

public DefinitionKind getKind()
Description copied from interface: DefinitionCriteriaByKind

Returns the definition kind for this definition criteria.

Specified by:
getKind in interface DefinitionCriteriaByKind
Returns:
Definition kind for this definition criteria.

setKind

public void setKind(DefinitionKind kind)
             throws NullPointerException
Description copied from interface: DefinitionCriteriaByKind

Sets the definition kind for this definition criteria.

Specified by:
setKind in interface DefinitionCriteriaByKind
Parameters:
kind - Definition kind for this definition criteria.
Throws:
NullPointerException - The definition kind 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 kind="PropertyDefinition"/>
 

Overrides:
toString in class Object

clone

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