Media Authoring
with Java API

tv.amwa.maj.argument
Class SearchByMobKind

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

public class SearchByMobKind
extends SearchCriteria
implements SearchByMobKind, Serializable, Cloneable

Implementaiton of a earch criteria for matching mobs defined by a kind of mob.

Author:
Richard Cartwright
See Also:
Serialized Form

Constructor Summary
SearchByMobKind(MobKind kind)
          Create a search criteria defined by mob kind.
 
Method Summary
 SearchByMobKind clone()
           
 boolean equals(Object o)
           
 MobKind getKind()
          Returns the kind of mob of the search criteria.
 int hashCode()
           
 void setKind(MobKind kind)
          Sets the kind of mob of the search criteria.
 String toString()
          Create a pseudo-XML representation of this search by mob kind criteria.
 
Methods inherited from class tv.amwa.maj.argument.SearchCriteria
getSearchTag
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface tv.amwa.maj.union.SearchCriteria
getSearchTag
 

Constructor Detail

SearchByMobKind

public SearchByMobKind(MobKind kind)

Create a search criteria defined by mob kind.

Parameters:
kind - Kind of Mob to search for.
Throws:
NullPointerException - The given mob kind is null.
Method Detail

getKind

public MobKind getKind()
Description copied from interface: SearchByMobKind

Returns the kind of mob of the search criteria.

Specified by:
getKind in interface SearchByMobKind
Returns:
Kind of mob of the search criteria.

setKind

public void setKind(MobKind kind)
             throws NullPointerException
Description copied from interface: SearchByMobKind

Sets the kind of mob of the search criteria.

Specified by:
setKind in interface SearchByMobKind
Parameters:
kind - Kind of mob of the search criteria.
Throws:
NullPointerException - The given mob kind is null.

equals

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

toString

public String toString()

Create a pseudo-XML representation of this search by mob kind criteria. No XML schema or DTD defines this element. For example:

 <SearchByMobKind kind="TapeMob"/>
 

Overrides:
toString in class Object
Returns:
XML representation of this search by mob kind criteria.

clone

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