Package com.norconex.importer
Class ImporterEvent
java.lang.Object
java.util.EventObject
com.norconex.commons.lang.event.Event
com.norconex.importer.ImporterEvent
- All Implemented Interfaces:
Serializable
An Importer event.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImporterEvent.ImporterEventBuilder<C extends ImporterEvent,B extends ImporterEvent.ImporterEventBuilder<C, B>> Nested classes/interfaces inherited from class com.norconex.commons.lang.event.Event
Event.EventBuilder<C extends Event,B extends Event.EventBuilder<C, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImporterEvent.ImporterEventBuilder<?, ?> builder()protected booleanbooleanGets the document associated with this event, if applicable.Gets the document parse state (nevernull).inthashCode()booleanisParsed()Gets whether this document was parsed.toString()A string representation of this event.Methods inherited from class com.norconex.commons.lang.event.Event
getException, getMessage, getName, is, isMethods inherited from class java.util.EventObject
getSource
-
Field Details
-
IMPORTER_INIT_BEGIN
- See Also:
-
IMPORTER_INIT_END
- See Also:
-
IMPORTER_HANDLER_BEGIN
- See Also:
-
IMPORTER_HANDLER_END
- See Also:
-
IMPORTER_HANDLER_ERROR
- See Also:
-
IMPORTER_HANDLER_CONDITION_TRUE
- See Also:
-
IMPORTER_HANDLER_CONDITION_FALSE
- See Also:
-
IMPORTER_PARSER_BEGIN
- See Also:
-
IMPORTER_PARSER_END
- See Also:
-
IMPORTER_PARSER_ERROR
- See Also:
-
-
Constructor Details
-
ImporterEvent
-
-
Method Details
-
isParsed
public boolean isParsed()Gets whether this document was parsed. Convenience method equivalent toreturn getParseState() == ParseState.POST.- Returns:
trueif the document was parsed
-
toString
A string representation of this event. -
builder
-
getParseState
Gets the document parse state (nevernull).- Returns:
- parse state
-
getDocument
Gets the document associated with this event, if applicable.- Returns:
- a document
-
equals
-
canEqual
-
hashCode
public int hashCode()
-