Class AbstractX4OPhase
java.lang.Object
org.x4o.xml.lang.phase.AbstractX4OPhase
- All Implemented Interfaces:
X4OPhase
- Direct Known Subclasses:
X4OPhaseLanguageInit.X4OPhaseInitLanguageSiblings
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPhaseListener(X4OPhaseListener listener) Adds a phase listener.Gets the phase listeners.booleanIf returns true then this handler will run on all elements.booleandefaults to falsevoidremovePhaseListener(X4OPhaseListener listener) Removed a phase listener.abstract voidrunElementPhase(Element element) Abstract method.voidrunPhase(X4OLanguageSession elementLanguage) Empty method.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface X4OPhase
getId, getPhaseDependencies, getType
-
Field Details
-
phaseListeners
-
-
Constructor Details
-
AbstractX4OPhase
public AbstractX4OPhase()Creates the AbstractX4OPhaseHandler.
-
-
Method Details
-
isRunOnce
-
getPhaseListeners
Gets the phase listeners.- Specified by:
getPhaseListenersin interfaceX4OPhase- Returns:
- The x4o phase listeners.
-
addPhaseListener
Adds a phase listener.- Specified by:
addPhaseListenerin interfaceX4OPhase- Parameters:
listener- The phase listener to add.
-
removePhaseListener
Removed a phase listener.- Specified by:
removePhaseListenerin interfaceX4OPhase- Parameters:
listener- The phase listener to remove.
-
isElementPhase
public boolean isElementPhase()If returns true then this handler will run on all elements.- Specified by:
isElementPhasein interfaceX4OPhase- Returns:
- defaults to true.
-
runElementPhase
Abstract method.- Specified by:
runElementPhasein interfaceX4OPhase- Parameters:
element- The element to run phase for.- Throws:
X4OPhaseException- when phase has error.
-
runPhase
Empty method.- Specified by:
runPhasein interfaceX4OPhase- Parameters:
elementLanguage- The language to run phase for.- Throws:
X4OPhaseException- when phase has error.
-