|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--com.usefullittlethings.saw.apps.shared.AbstractPlugin
Abstract implementation of the PluginIfc interface that provides
default methods for items such as setBase
,
getAuthor
, etc.
Field Summary |
Fields inherited from interface com.usefullittlethings.saw.model.PluginIfc |
BLOCK, LINEAR, SINGLE_BLOCK, UNSUPPORTED |
Constructor Summary | |
AbstractPlugin()
|
Method Summary | |
abstract java.lang.Object |
clone()
Returns a copy of the plug-in. |
static java.lang.String |
decodeXML(java.lang.String xml)
|
static boolean |
decodeXMLBoolean(java.lang.String xml)
|
static java.lang.String |
encodeXML(java.lang.String xml)
|
java.lang.String |
getAuthor()
Returns the name of the author/company. |
java.lang.String |
getEmail()
Returns the e-mail address of the author |
abstract java.lang.String |
getName()
Returns the full name of the plug-in, such as "File date filter". |
abstract java.lang.String |
getShortName()
Returns the short name of the plug-in, such as "Date". |
abstract java.lang.String |
getState()
Returns a text description of the plug-in's current state. |
abstract java.awt.Component |
getUI()
Returns the plug-in's user interface component. |
java.lang.String |
getWebsite()
Returns the http address of the author's website. |
abstract boolean |
hasUI()
Returns true/false indicating if the plug-in has a user interface for configuring the plug-in. |
boolean |
isEnabled()
Returns the enabled state of the plug-in. |
abstract void |
reset()
This method is invoked by the search engine to clear any old settings. |
void |
setBase(java.lang.Object base)
Sets the base refernce point for this plug-in. |
void |
setEnabled(boolean state)
Sets the enabled flag for the plug-in. |
boolean |
supportCommandLine()
Indicates if this lpug-in can be used via the command-line interface. |
abstract boolean |
supports(int pattern)
Returns a flag indicating whether or not the specified search pattern is supported by the plug-in. |
java.lang.String |
toXMLString(int indent)
Renders the state of the plug-in in XML format. |
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.usefullittlethings.saw.model.PluginIfc |
addObserver, configure, configure, deleteObserver, getResultClass, getUnixName |
Constructor Detail |
public AbstractPlugin()
Method Detail |
public void setBase(java.lang.Object base)
public java.lang.String getAuthor()
PluginIfc
getAuthor
in interface PluginIfc
public java.lang.String getWebsite()
PluginIfc
getWebsite
in interface PluginIfc
public java.lang.String getEmail()
PluginIfc
getEmail
in interface PluginIfc
public void setEnabled(boolean state)
PluginIfc
hasUI
);
such behavior is up to the plug-in author.
setEnabled
in interface PluginIfc
state
- The new value for the enabled
attribute.public boolean isEnabled()
PluginIfc
isEnabled
in interface PluginIfc
public static java.lang.String encodeXML(java.lang.String xml)
public static java.lang.String decodeXML(java.lang.String xml)
public static boolean decodeXMLBoolean(java.lang.String xml)
public boolean supportCommandLine()
PluginIfc
supportCommandLine
in interface PluginIfc
public abstract java.lang.String getName()
PluginIfc
getName
in interface PluginIfc
public abstract java.lang.String getShortName()
PluginIfc
getShortName
in interface PluginIfc
public abstract boolean hasUI()
PluginIfc
hasUI
in interface PluginIfc
public abstract java.awt.Component getUI()
PluginIfc
getUI
in interface PluginIfc
public abstract java.lang.Object clone()
PluginIfc
clone
in interface PluginIfc
clone
in class java.lang.Object
public abstract java.lang.String getState()
PluginIfc
getState
in interface PluginIfc
public abstract void reset()
PluginIfc
reset
in interface PluginIfc
public abstract boolean supports(int pattern)
PluginIfc
BLOCK
and
SINGLE_BLOCK
search patterns.
All search controllers will have a preferred heirarchy by which filters and actions are applied to the search results.
A search pattern should not be arbitrarily unsupported! This may create a condition where there is no commonly supported search pattern for both the search plug-in and the filter/action plug-ins. Under such conditions, the search operation will be cancelled and the user notified of the problem.
supports
in interface PluginIfc
pattern
- The pattern to test, such as LINEAR
,
BLOCK
, or SINGLE_BLOCK
.public java.lang.String toXMLString(int indent)
PluginIfc
toXMLString
in interface PluginIfc
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |