|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for Search and Whatever plug-ins.
Field Summary | |
static int |
BLOCK
A block search pattern will pass blocks of "found" objects, grouped by context. |
static int |
LINEAR
A linear search pattern will pass each "found" object one at a time. |
static int |
SINGLE_BLOCK
A single-block search pattern will return one block of "found" objects. |
static int |
UNSUPPORTED
Convenience value for marking search methods as unsupported. |
Method Summary | |
void |
addObserver(java.util.Observer o)
Adds the specified observer to a list of observers who will receive feedback from the plug-in. |
java.lang.Object |
clone()
Returns a copy of the plug-in. |
void |
configure(java.lang.String xml)
Used by the load process to configure the plug-in's state so that its state may be restored. |
void |
configure(java.lang.String[] args)
Used by the command-line invocation process to configure the plug-in's state so that it may perform its task without displaying a user interface. |
void |
deleteObserver(java.util.Observer o)
Remvoes the specified observer from the list of observers who will receive feedback from the plug-in. |
java.lang.String |
getAuthor()
Returns the name of the author/company. |
java.lang.String |
getEmail()
Returns the e-mail address of the author |
java.lang.String |
getName()
Returns the full name of the plug-in, such as "File date filter". |
java.lang.Class |
getResultClass()
Returns a Class object representing the object type this plug-in will act upon. |
java.lang.String |
getShortName()
Returns the short name of the plug-in, such as "Date". |
java.lang.String |
getState()
Returns a text description of the plug-in's current state. |
java.awt.Component |
getUI()
Returns the plug-in's user interface component. |
java.lang.String |
getUnixName()
Returns the unique unix names assigned to the plug-in. |
java.lang.String |
getWebsite()
Returns the http address of the author's website. |
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. |
void |
reset()
This method is invoked by the search engine to clear any old settings. |
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. |
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. |
Field Detail |
public static final int UNSUPPORTED
public static final int LINEAR
public static final int BLOCK
public static final int SINGLE_BLOCK
Method Detail |
public java.lang.String getName()
public java.lang.String getShortName()
public java.lang.String getUnixName()
public java.lang.String getAuthor()
public java.lang.String getWebsite()
public java.lang.String getEmail()
public boolean hasUI()
public java.awt.Component getUI()
public void setEnabled(boolean state)
hasUI
);
such behavior is up to the plug-in author.
state
- The new value for the enabled
attribute.public boolean isEnabled()
public java.lang.Object clone()
public java.lang.String getState()
public void reset()
public boolean supports(int pattern)
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.
pattern
- The pattern to test, such as LINEAR
,
BLOCK
, or SINGLE_BLOCK
.public void addObserver(java.util.Observer o)
public void deleteObserver(java.util.Observer o)
public java.lang.String toXMLString(int indent)
public void configure(java.lang.String[] args) throws ArgumentException
ArgumentException
public void configure(java.lang.String xml) throws java.text.ParseException
java.text.ParseException
public java.lang.Class getResultClass()
public boolean supportCommandLine()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |