|
Spring Web Flow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder
public class XmlFlowModelBuilder
Builds a flow model from a XML-based flow definition resource.
| Constructor Summary | |
|---|---|
XmlFlowModelBuilder(org.springframework.core.io.Resource resource)
Create a new XML flow model builder that will parse the XML document at the specified resource location and use the provided locator to access parent flow models. |
|
XmlFlowModelBuilder(org.springframework.core.io.Resource resource,
FlowModelLocator modelLocator)
Create a new XML flow model builder that will parse the XML document at the specified resource location and use the provided locator to access parent flow models. |
|
| Method Summary | |
|---|---|
void |
build()
Builds any variables initialized by the flow when it starts. |
void |
dispose()
Shutdown the builder, releasing any resources it holds. |
protected org.w3c.dom.Document |
getDocument()
Returns the DOM document parsed from the XML file. |
protected org.w3c.dom.Element |
getDocumentElement()
Returns the root document element. |
FlowModel |
getFlowModel()
Get the fully constructed flow model. |
org.springframework.core.io.Resource |
getFlowModelResource()
Get the underlying flow model resource accessed to build this flow model. |
boolean |
hasFlowModelResourceChanged()
Returns true if the underlying flow model resource has changed since the last call to FlowModelBuilder.init(). |
void |
init()
Initialize this builder. |
void |
setDocumentLoader(DocumentLoader documentLoader)
Sets the loader that will load the XML-based flow definition document. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlFlowModelBuilder(org.springframework.core.io.Resource resource)
resource - the path to the XML flow definition (required)
public XmlFlowModelBuilder(org.springframework.core.io.Resource resource,
FlowModelLocator modelLocator)
resource - the path to the XML flow definition (required)modelLocator - a locator for parent flow models to support flow inheritance| Method Detail |
|---|
public void setDocumentLoader(DocumentLoader documentLoader)
DefaultDocumentLoader.
documentLoader - the document loader
public void init()
throws FlowModelBuilderException
FlowModelBuilder
init in interface FlowModelBuilderFlowModelBuilderException - an exception occurred building the flow
public void build()
throws FlowModelBuilderException
FlowModelBuilder
build in interface FlowModelBuilderFlowModelBuilderException - an exception occurred building the flow
public FlowModel getFlowModel()
throws FlowModelBuilderException
FlowModelBuilder
getFlowModel in interface FlowModelBuilderFlowModelBuilderException - an exception occurred building this flow
public void dispose()
throws FlowModelBuilderException
FlowModelBuilderFlowModelBuilder.init() method.
dispose in interface FlowModelBuilderFlowModelBuilderException - an exception occurred disposing this flowpublic org.springframework.core.io.Resource getFlowModelResource()
FlowModelBuilder
getFlowModelResource in interface FlowModelBuilderpublic boolean hasFlowModelResourceChanged()
FlowModelBuilderFlowModelBuilder.init(). Always
returns false if the flow model is not build from a resource.
hasFlowModelResourceChanged in interface FlowModelBuilderprotected org.w3c.dom.Document getDocument()
protected org.w3c.dom.Element getDocumentElement()
public java.lang.String toString()
toString in class java.lang.Object
|
Spring Web Flow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||