Media Authoring
with Java API

tv.amwa.maj.argument
Class SearchByName

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

public class SearchByName
extends SearchCriteria
implements SearchByName, Serializable, Cloneable

Implementation of a search criteria for matching mobs defined by mob name.

Author:
Richard Cartwright
See Also:
Mob.getName(), Serialized Form

Constructor Summary
SearchByName(String name)
          Create a search criteria defined by the given mob name.
 
Method Summary
 SearchByName clone()
           
 boolean equals(Object o)
           
 String getName()
          Returns the name that defines the search criteria.
 int hashCode()
           
 void setName(String name)
          Sets the name the defines the search criteria.
 String toString()
          Create a pseudo-XML representation of this search criteria defined by mob name.
 
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

SearchByName

public SearchByName(String name)
             throws NullPointerException

Create a search criteria defined by the given mob name.

Parameters:
name - Mob name defining the new search criteria.
Throws:
NullPointerException - The given name value is null.
Method Detail

getName

public String getName()
Description copied from interface: SearchByName

Returns the name that defines the search criteria.

Specified by:
getName in interface SearchByName
Returns:
Name defining the search criteria.

setName

public void setName(String name)
             throws NullPointerException
Description copied from interface: SearchByName

Sets the name the defines the search criteria.

Specified by:
setName in interface SearchByName
Parameters:
name - Name defining the search criteria.
Throws:
NullPointerException - The given name 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 criteria defined by mob name. No XML schema or DTD defines this element. For example:

 <SearchByName name="Watchdog series 27 episode 3"/>
 

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

clone

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