|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.xml.xsd.SimpleXsdSchema
public class SimpleXsdSchema
The default XsdSchema implementation.
setXsd(Resource), or directly in the constructor.
| Constructor Summary | |
|---|---|
SimpleXsdSchema()
Create a new instance of the SimpleXsdSchema class. |
|
SimpleXsdSchema(org.springframework.core.io.Resource xsdResource)
Create a new instance of the SimpleXsdSchema class with the specified resource. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
XmlValidator |
createValidator()
Creates a XmlValidator based on the schema. |
javax.xml.transform.Source |
getSource()
Returns the Source of the schema. |
java.lang.String |
getTargetNamespace()
Returns the target namespace of this schema. |
void |
setXsd(org.springframework.core.io.Resource xsdResource)
Set the XSD resource to be exposed by calls to this instances' getSource() method. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleXsdSchema()
SimpleXsdSchema class.
A subsequent call to the setXsd(Resource) method is required.
public SimpleXsdSchema(org.springframework.core.io.Resource xsdResource)
SimpleXsdSchema class with the specified resource.
xsdResource - the XSD resource; must not be null
java.lang.IllegalArgumentException - if the supplied xsdResource is null| Method Detail |
|---|
public void setXsd(org.springframework.core.io.Resource xsdResource)
getSource() method.
xsdResource - the XSD resourcepublic java.lang.String getTargetNamespace()
XsdSchema
getTargetNamespace in interface XsdSchemapublic javax.xml.transform.Source getSource()
XsdSchemaSource of the schema.
getSource in interface XsdSchema
public XmlValidator createValidator()
throws java.io.IOException
XsdSchemaXmlValidator based on the schema.
createValidator in interface XsdSchemajava.io.IOException - in case of I/O errors
public void afterPropertiesSet()
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjavax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||