Enum EventType
- java.lang.Object
-
- java.lang.Enum<EventType>
-
- org.xwiki.rendering.listener.chaining.EventType
-
- All Implemented Interfaces:
Serializable
,Comparable<EventType>
public enum EventType extends Enum<EventType>
Stores event types and offers a way to call a stored event.- Since:
- 1.8RC1
- Version:
- $Id: a41a437f6d5e24a013e4966e8b5d38b97de43db3 $
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
fireEvent(Listener listener, Object... eventParameters)
Calls an event method on the passed listener with the passed parameters.boolean
isInlineEnd()
static EventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEGIN_DOCUMENT
public static final EventType BEGIN_DOCUMENT
-
END_DOCUMENT
public static final EventType END_DOCUMENT
-
BEGIN_GROUP
public static final EventType BEGIN_GROUP
- See Also:
Listener.beginGroup(java.util.Map)
-
END_GROUP
public static final EventType END_GROUP
- See Also:
Listener.endGroup(java.util.Map)
-
BEGIN_PARAGRAPH
public static final EventType BEGIN_PARAGRAPH
- See Also:
Listener.beginParagraph(java.util.Map)
-
END_PARAGRAPH
public static final EventType END_PARAGRAPH
- See Also:
Listener.endParagraph(java.util.Map)
-
BEGIN_DEFINITION_LIST
public static final EventType BEGIN_DEFINITION_LIST
-
END_DEFINITION_LIST
public static final EventType END_DEFINITION_LIST
-
BEGIN_DEFINITION_TERM
public static final EventType BEGIN_DEFINITION_TERM
- See Also:
Listener.beginDefinitionTerm()
-
END_DEFINITION_TERM
public static final EventType END_DEFINITION_TERM
- See Also:
Listener.endDefinitionTerm()
-
BEGIN_DEFINITION_DESCRIPTION
public static final EventType BEGIN_DEFINITION_DESCRIPTION
- See Also:
Listener.beginDefinitionDescription()
-
END_DEFINITION_DESCRIPTION
public static final EventType END_DEFINITION_DESCRIPTION
- See Also:
Listener.endDefinitionDescription()
-
BEGIN_FORMAT
public static final EventType BEGIN_FORMAT
-
END_FORMAT
public static final EventType END_FORMAT
-
BEGIN_HEADER
public static final EventType BEGIN_HEADER
-
END_HEADER
public static final EventType END_HEADER
-
BEGIN_LINK
public static final EventType BEGIN_LINK
-
END_LINK
public static final EventType END_LINK
-
BEGIN_LIST
public static final EventType BEGIN_LIST
-
END_LIST
public static final EventType END_LIST
-
BEGIN_LIST_ITEM
public static final EventType BEGIN_LIST_ITEM
- See Also:
Listener.beginListItem()
-
END_LIST_ITEM
public static final EventType END_LIST_ITEM
- See Also:
Listener.endListItem()
-
BEGIN_MACRO_MARKER
public static final EventType BEGIN_MACRO_MARKER
-
END_MACRO_MARKER
public static final EventType END_MACRO_MARKER
-
BEGIN_QUOTATION
public static final EventType BEGIN_QUOTATION
- See Also:
Listener.beginQuotation(java.util.Map)
-
END_QUOTATION
public static final EventType END_QUOTATION
- See Also:
Listener.endQuotation(java.util.Map)
-
BEGIN_QUOTATION_LINE
public static final EventType BEGIN_QUOTATION_LINE
- See Also:
Listener.beginQuotationLine()
-
END_QUOTATION_LINE
public static final EventType END_QUOTATION_LINE
- See Also:
Listener.endQuotationLine()
-
BEGIN_SECTION
public static final EventType BEGIN_SECTION
- See Also:
Listener.beginSection(java.util.Map)
-
END_SECTION
public static final EventType END_SECTION
- See Also:
Listener.endSection(java.util.Map)
-
BEGIN_TABLE
public static final EventType BEGIN_TABLE
- See Also:
Listener.beginTable(java.util.Map)
-
END_TABLE
public static final EventType END_TABLE
- See Also:
Listener.endTable(java.util.Map)
-
BEGIN_TABLE_CELL
public static final EventType BEGIN_TABLE_CELL
- See Also:
Listener.beginTableCell(java.util.Map)
-
END_TABLE_CELL
public static final EventType END_TABLE_CELL
- See Also:
Listener.endTableCell(java.util.Map)
-
BEGIN_TABLE_HEAD_CELL
public static final EventType BEGIN_TABLE_HEAD_CELL
-
END_TABLE_HEAD_CELL
public static final EventType END_TABLE_HEAD_CELL
- See Also:
Listener.endTableHeadCell(java.util.Map)
-
BEGIN_TABLE_ROW
public static final EventType BEGIN_TABLE_ROW
- See Also:
Listener.beginTableRow(java.util.Map)
-
END_TABLE_ROW
public static final EventType END_TABLE_ROW
- See Also:
Listener.endTableRow(java.util.Map)
-
BEGIN_METADATA
public static final EventType BEGIN_METADATA
-
END_METADATA
public static final EventType END_METADATA
-
ON_RAW_TEXT
public static final EventType ON_RAW_TEXT
-
ON_EMPTY_LINES
public static final EventType ON_EMPTY_LINES
- See Also:
Listener.onEmptyLines(int)
-
ON_HORIZONTAL_LINE
public static final EventType ON_HORIZONTAL_LINE
- See Also:
Listener.onHorizontalLine(java.util.Map)
-
ON_ID
public static final EventType ON_ID
- See Also:
Listener.onId(String)
-
ON_IMAGE
public static final EventType ON_IMAGE
-
ON_MACRO
public static final EventType ON_MACRO
-
ON_NEW_LINE
public static final EventType ON_NEW_LINE
- See Also:
Listener.onNewLine()
-
ON_SPACE
public static final EventType ON_SPACE
- See Also:
Listener.onSpace()
-
ON_SPECIAL_SYMBOL
public static final EventType ON_SPECIAL_SYMBOL
- See Also:
Listener.onSpecialSymbol(char)
-
ON_VERBATIM
public static final EventType ON_VERBATIM
-
ON_WORD
public static final EventType ON_WORD
- See Also:
Listener.onWord(String)
-
BEGIN_FIGURE
public static final EventType BEGIN_FIGURE
- See Also:
Listener.beginFigure(Map)
-
BEGIN_FIGURE_CAPTION
public static final EventType BEGIN_FIGURE_CAPTION
- See Also:
Listener.beginFigureCaption(Map)
-
END_FIGURE
public static final EventType END_FIGURE
- See Also:
Listener.endFigure(Map)
-
END_FIGURE_CAPTION
public static final EventType END_FIGURE_CAPTION
- See Also:
Listener.endFigureCaption(Map)
-
-
Method Detail
-
values
public static EventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EventType c : EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fireEvent
public abstract void fireEvent(Listener listener, Object... eventParameters)
Calls an event method on the passed listener with the passed parameters.- Parameters:
listener
- the listener to calleventParameters
- the parameters to use when calling the event method on the passed listener
-
isInlineEnd
public boolean isInlineEnd()
- Returns:
- true if the event stops the inline mode or false otherwise
-
-