public class SearchByNameImpl extends SearchCriteriaImpl implements SearchByName, Serializable, Cloneable
Implementation of a search criteria for matching packages defined by package name.
Package.getPackageName(),
Serialized Form| Constructor and Description |
|---|
SearchByNameImpl(String name)
Create a search criteria defined by the given package name.
|
| Modifier and Type | Method and Description |
|---|---|
SearchByNameImpl |
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 package name.
|
getSearchTaggetSearchTagpublic SearchByNameImpl(String name) throws NullPointerException
Create a search criteria defined by the given package name.
name - Package name defining the new search criteria.NullPointerException - The given name value is null.public String getName()
SearchByNameReturns the name that defines the search criteria.
getName in interface SearchByNamepublic void setName(String name) throws NullPointerException
SearchByNameSets the name the defines the search criteria.
setName in interface SearchByNamename - Name defining the search criteria.NullPointerException - The given name is null.public String toString()
Create a pseudo-XML representation of this search criteria defined by package name. No XML schema or DTD defines this element. For example:
<SearchByName name="Watchdog series 27 episode 3"/>
public SearchByNameImpl clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.