|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.importer.filter.AbstractOnMatchFilter
public abstract class AbstractOnMatchFilter
Convenience base class for implementing filters offering the include/exclude "onmatch" option. Default behavior on match is to include.
Constructor Summary | |
---|---|
AbstractOnMatchFilter()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
OnMatch |
getOnMatch()
Gets the the on match action (exclude or include). |
int |
hashCode()
|
protected void |
loadFromXML(XMLConfiguration xml)
Convenience method for subclasses to load the "onMatch" attribute from an XML file when XMLConfiguration is used. |
protected void |
saveToXML(XMLStreamWriter writer)
Convenience method for subclasses to save the "onMatch" attribute to an XML file when XMLConfiguration is used. |
void |
setOnMatch(OnMatch onMatch)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractOnMatchFilter()
Method Detail |
---|
public OnMatch getOnMatch()
IOnMatchFilter
getOnMatch
in interface IOnMatchFilter
public final void setOnMatch(OnMatch onMatch)
protected final void loadFromXML(XMLConfiguration xml)
XMLConfiguration
is used.
xml
- XML configurationprotected void saveToXML(XMLStreamWriter writer) throws XMLStreamException
XMLConfiguration
is used.
writer
- XML stream writer
XMLStreamException
- problem saving extra content typespublic String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |