Media Authoring
with Java API

tv.amwa.maj.argument
Class DefinitionCriteriaByName

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

public class DefinitionCriteriaByName
extends DefinitionCriteria
implements DefinitionCriteriaByName, Serializable, Cloneable

Implementation of a criteria for matching a definition by its name.

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

Constructor Summary
DefinitionCriteriaByName(String name)
          Create a criteria for matching a definition by name.
 
Method Summary
 DefinitionCriteriaByName clone()
           
 boolean equals(Object o)
           
 String getName()
          Returns the name defining this definition criteria.
 int hashCode()
           
 void setName(String name)
          Sets the name 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

DefinitionCriteriaByName

public DefinitionCriteriaByName(String name)
                         throws NullPointerException

Create a criteria for matching a definition by name.

Parameters:
name - Name of definition to match.
Throws:
NullPointerException - The given definition name is null.
Method Detail

getName

public String getName()
Description copied from interface: DefinitionCriteriaByName

Returns the name defining this definition criteria.

Specified by:
getName in interface DefinitionCriteriaByName
Returns:
Name defining this definition criteria.

setName

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

Sets the name defining this definition criteria.

Specified by:
setName in interface DefinitionCriteriaByName
Parameters:
name - Name defining this definition criteria.
Throws:
NullPointerException - The definition name 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 name="Picture"/>
 

Overrides:
toString in class Object

clone

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