|
Media Authoring with Java API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objecttv.amwa.maj.argument.SearchCriteria
tv.amwa.maj.argument.SearchByAUID
public class SearchByAUID
Implementation of a search criteria for matching mobs defined by an
AUID value. The kind of search represented by this
criteria must be set using method setTag(SearchTag) or through the constructor.
ContentStorage.getMobs(tv.amwa.maj.union.SearchCriteria),
Header.getMobs(tv.amwa.maj.union.SearchCriteria),
Serialized Form| Constructor Summary | |
|---|---|
SearchByAUID(SearchTag tag,
AUID identification)
Create a search criteria defined by an AUID and the kind of item that the item identifies. |
|
| Method Summary | |
|---|---|
SearchByAUID |
clone()
|
boolean |
equals(Object o)
|
AUID |
getAUID()
Returns the AUID that defines this search criteria. |
int |
hashCode()
|
void |
setAUID(AUID identification)
Sets the AUID that defines this search criteria. |
void |
setTag(SearchTag tag)
Set the search type of this search criteria that matches items using an AUID. |
String |
toString()
Create a pseudo-XML representation of this search by AUID 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 |
|---|
public SearchByAUID(SearchTag tag,
AUID identification)
throws NullPointerException,
IllegalArgumentException
Create a search criteria defined by an AUID and the kind of item that the item identifies.
tag - Kind of item that the AUID identifies, indicating the kind of match
performed by a search using this criteria.identification - Identifier defining this search criteria.
NullPointerException - One or both of the given tag or identification values
is null.
IllegalArgumentException| Method Detail |
|---|
public AUID getAUID()
SearchByAUIDReturns the AUID that defines this search criteria.
getAUID in interface SearchByAUID
public void setAUID(AUID identification)
throws NullPointerException
SearchByAUIDSets the AUID that defines this search criteria.
setAUID in interface SearchByAUIDidentification - AUID of this search criteria.
NullPointerException - The given identification is null.
public void setTag(SearchTag tag)
throws NullPointerException,
IllegalArgumentException
SearchByAUIDSet the search type of this search criteria that matches items using an AUID. The tag must be
compatible with matching using AUID values. If this search is not compatible, an
IllegalArgumentException is thrown. Acceptable tags are:
SearchTag.ByClassSearchTag.ByDataDefSearchTag.ByUsageCodeSearchTag.ByCompositionMobUsageCodeSearchTag.ByMasterMobUsageCodeSearchTag.BySourceMobUsageCode
setTag in interface SearchByAUIDtag - Tag that identifies the kind of this search by AUID criteria.
NullPointerException - The given search tag is null.
IllegalArgumentException - The search tag is not compatible with criteria matching using
AUID values.public boolean equals(Object o)
equals in class Objectpublic String toString()
Create a pseudo-XML representation of this search by AUID criteria. No XML schema or DTD defines this element. For example:
<SearchByDataDef identification="urn:x-ul:060e2b34.0401.0101.01030202.01000000"/>
toString in class Object
public SearchByAUID clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic int hashCode()
hashCode in class Object
|
Media Authoring with Java API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||