|
|||||||||
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.DefaultDocumentLoader
public class DefaultDocumentLoader
The default document loader strategy for XSD-based XML documents with validation enabled by default.
Note: full XSD support requires JDK 5.0 or a capable parser such as Xerces 2.0. JDK 1.4 or < do not fully support XSD
out of the box. To use this implementation on JDK 1.4 make sure Xerces is available in your classpath or disable XSD
validation by setting the validating property to false
.
Constructor Summary | |
---|---|
DefaultDocumentLoader()
|
Method Summary | |
---|---|
EntityResolver |
getEntityResolver()
Returns the SAX entity resolver used by the XML parser. |
boolean |
isValidating()
Returns whether or not the XML parser will validate the document. |
Document |
loadDocument(org.springframework.core.io.Resource resource)
Load the XML-based document from the external resource. |
void |
setEntityResolver(EntityResolver entityResolver)
Set a SAX entity resolver to be used for parsing. |
void |
setValidating(boolean validating)
Set if the XML parser should validate the document and thus enforce a schema. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDocumentLoader()
Method Detail |
---|
public boolean isValidating()
public void setValidating(boolean validating)
public EntityResolver getEntityResolver()
public void setEntityResolver(EntityResolver entityResolver)
public Document loadDocument(org.springframework.core.io.Resource resource) throws IOException, ParserConfigurationException, SAXException
DocumentLoader
loadDocument
in interface DocumentLoader
resource
- the document resource
IOException
- an exception occured accessing the resource input stream
ParserConfigurationException
- an exception occured building the document parser
SAXException
- a error occured during document parsing
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |