Class DefaultX4OPhaseManager
java.lang.Object
org.x4o.xml.lang.phase.DefaultX4OPhaseManager
- All Implemented Interfaces:
X4OPhaseManager, X4OPhaseManagerLocal
X4OPhaseManager stores the X4OPhaseHandler and puts them in the right order.
And will execute the phases when runPhases is called.
- Version:
- 1.0 Jan 6, 2008
- Author:
- Willem Cazander
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddX4OPhase(X4OPhase phase) Adds an X4OPhaseHandler.voiddoReleasePhaseManual(X4OLanguageSession languageSession) Run release phase manual if auto release is disabled by config.Returns all the X4OPhaseHandlers.getOrderedPhases(X4OPhaseType type) Returns all the X4OPhaseHandlers in ordered list.Gets an X4OPhase object by the phaseName.Gets all the keys of the phases registrated whith this phase manager.voidrunPhases(X4OLanguageSession languageSession, X4OPhaseType type) Runs all the phases in the right order.voidrunPhasesForElement(Element e, X4OPhaseType type, X4OPhase p) Runs phase on single element.
-
Constructor Details
-
DefaultX4OPhaseManager
public DefaultX4OPhaseManager()Constructor.
-
-
Method Details
-
getPhase
Description copied from interface:X4OPhaseManagerGets an X4OPhase object by the phaseName.- Specified by:
getPhasein interfaceX4OPhaseManager- Parameters:
phaseName- The phaseName to lookup.- Returns:
- The X4OPhase requested or null.
-
getPhaseKeys
Description copied from interface:X4OPhaseManagerGets all the keys of the phases registrated whith this phase manager.- Specified by:
getPhaseKeysin interfaceX4OPhaseManager- Returns:
- The phase keys.
-
addX4OPhase
Adds an X4OPhaseHandler.- Specified by:
addX4OPhasein interfaceX4OPhaseManagerLocal- Parameters:
phase- The X4OPhaseHandler to add.
-
getAllPhases
-
getOrderedPhases
Returns all the X4OPhaseHandlers in ordered list.- Returns:
- Returns all X4OPhaseHandler is order.
-
runPhases
public void runPhases(X4OLanguageSession languageSession, X4OPhaseType type) throws X4OPhaseException Runs all the phases in the right order.- Specified by:
runPhasesin interfaceX4OPhaseManager- Throws:
X4OPhaseException- When a running handlers throws one.
-
runPhasesForElement
Runs phase on single element.- Specified by:
runPhasesForElementin interfaceX4OPhaseManager- Parameters:
e- The Element to process.p- The phase to run.- Throws:
X4OPhaseException- When a running handlers throws one.
-
doReleasePhaseManual
Run release phase manual if auto release is disabled by config.- Specified by:
doReleasePhaseManualin interfaceX4OPhaseManager- Parameters:
languageSession- The session to release.- Throws:
X4OPhaseException- When a running handlers throws one.
-