Groovy Documentation

org.jdesktop.swingx.ws.yahoo.search.videosearch
[Java] Class YahooVideoSearch

java.lang.Object
  org.jdesktop.beans.AbstractBean
      org.jdesktop.swingx.ws.yahoo.search.YahooSearch
          org.jdesktop.swingx.ws.yahoo.search.videosearch.YahooVideoSearch

public final class YahooVideoSearch
extends YahooSearch

A non visual JavaBean which allows you to use Yahoo! to search for videos on the internet. See the Yahoo! documentation for this service for more information.

Authors:
rbair


Nested Class Summary
private class YahooVideoSearch.Parser

static class YahooVideoSearch.Result

@author rbair

 
Field Summary
private boolean adultOk

private String appId

private FileFormat format

private String query

private Set sites

private Type type

 
Fields inherited from class YahooSearch
URL_PREFIX
 
Constructor Summary
YahooVideoSearch()

 
Method Summary
String getAppId()

Returns:
the Yahoo!

FileFormat getFileFormat()

@return the file format code

protected String getMethod()

@inheritDoc

protected Map getParameters()

@inheritDoc

String getQuery()

@return the search query to use

protected String getServiceName()

@inheritDoc

Type getType()

protected String getVersionNumber()

@inheritDoc

boolean isAdultOk()

@return true if adult content is ok

protected ResultsList readResults(InputStream in)

@inheritDoc

void setAdultOk(boolean adultOk)

Sets the adult ok boolean.

void setAppId(String appId)

Sets the Yahoo app id to use with this component.

void setFileFormat(FileFormat format)

Sets the format code.

void setQuery(String query)

Sets the search query to use.

void setType(Type type)

Sets the type code.

 
Methods inherited from class YahooSearch
constructUrl, getDefaultResultCount, getMethod, getParameters, getServiceName, getVersionNumber, readResults, search, search
 
Methods inherited from class org.jdesktop.beans.AbstractBean
org.jdesktop.beans.AbstractBean#clone(), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(), org.jdesktop.beans.AbstractBean#wait(), org.jdesktop.beans.AbstractBean#wait(long), org.jdesktop.beans.AbstractBean#wait(long, int), org.jdesktop.beans.AbstractBean#equals(java.lang.Object), org.jdesktop.beans.AbstractBean#toString(), org.jdesktop.beans.AbstractBean#hashCode(), org.jdesktop.beans.AbstractBean#getClass(), org.jdesktop.beans.AbstractBean#notify(), org.jdesktop.beans.AbstractBean#notifyAll()
 

Field Detail

adultOk

private boolean adultOk


appId

private String appId


format

private FileFormat format


query

private String query


sites

private Set sites


type

private Type type


 
Constructor Detail

YahooVideoSearch

public YahooVideoSearch()


 
Method Detail

getAppId

public String getAppId()
Returns:
the Yahoo! app id in use for this component


getFileFormat

public FileFormat getFileFormat()
Returns:
the file format code


getMethod

protected final String getMethod()
inheritDoc:


getParameters

protected final Map getParameters()
inheritDoc:


getQuery

public String getQuery()
Returns:
the search query to use


getServiceName

protected final String getServiceName()
inheritDoc:


getType

public Type getType()


getVersionNumber

protected final String getVersionNumber()
inheritDoc:


isAdultOk

public boolean isAdultOk()
Returns:
true if adult content is ok


readResults

protected ResultsList readResults(InputStream in)
inheritDoc:


setAdultOk

public void setAdultOk(boolean adultOk)
Sets the adult ok boolean. See Yahoo! for more info


setAppId

public void setAppId(String appId)
Sets the Yahoo app id to use with this component. Without an app id, no searches can be executed. You must get an app id from yahoo. See the Yahoo docs for more info.
Parameters:
appId


setFileFormat

public void setFileFormat(FileFormat format)
Sets the format code. See Yahoo! for more info


setQuery

public void setQuery(String query)
Sets the search query to use. This follows all the same conventions as the web based Yahoo! search engine


setType

public void setType(Type type)
Sets the type code. See Yahoo! for more info


 

Groovy Documentation