Media Authoring
with Java API

tv.amwa.maj.argument
Class SearchByMobID

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

public class SearchByMobID
extends SearchCriteria
implements SearchByMobID, Serializable, Cloneable

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

Author:
Richard Cartwright
See Also:
Serialized Form

Constructor Summary
SearchByMobID(MobID mobId)
          Create a search criteria defined by a mob id.
 
Method Summary
 SearchByMobID clone()
           
 boolean equals(Object o)
           
 MobID getMobId()
          Returns the mob id of the search criteria.
 int hashCode()
           
 void setMobId(MobID mobId)
          Sets the mob id of the search criteria.
 String toString()
          Create a pseudo-XML representation of this search by mob id 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

SearchByMobID

public SearchByMobID(MobID mobId)
              throws NullPointerException

Create a search criteria defined by a mob id.

Parameters:
mobId - MobID to search for.
Throws:
NullPointerException - The given mob id is null.
Method Detail

getMobId

public MobID getMobId()
Description copied from interface: SearchByMobID

Returns the mob id of the search criteria.

Specified by:
getMobId in interface SearchByMobID
Returns:
Mob id of the search criteria.

setMobId

public void setMobId(MobID mobId)
              throws NullPointerException
Description copied from interface: SearchByMobID

Sets the mob id of the search criteria.

Specified by:
setMobId in interface SearchByMobID
Parameters:
mobId - Mob id of the search criteria.
Throws:
NullPointerException - The given mob id 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 id criteria. No XML schema or DTD defines this element. For example:

 <SearchByMobID mobId="urn:x-umid:0102030405060708090a0b0c-0d-0e0f10-1112131415161718191a1b1c1d1e1f20"/>
 

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

clone

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