|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(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. |
Source |
getSource()
Returns the Source of the schema. |
String |
getTargetNamespace()
Returns the target namespace of this schema. |
void |
setXsd(Resource xsdResource)
Set the XSD resource to be exposed by calls to this instances' getSource() method. |
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(Resource xsdResource)
SimpleXsdSchema
class with the specified resource.
xsdResource
- the XSD resource; must not be null
IllegalArgumentException
- if the supplied xsdResource
is null
Method Detail |
---|
public void setXsd(Resource xsdResource)
getSource()
method.
xsdResource
- the XSD resourcepublic String getTargetNamespace()
XsdSchema
getTargetNamespace
in interface XsdSchema
public Source getSource()
XsdSchema
Source
of the schema.
getSource
in interface XsdSchema
public XmlValidator createValidator() throws IOException
XsdSchema
XmlValidator
based on the schema.
createValidator
in interface XsdSchema
IOException
- in case of I/O errorspublic void afterPropertiesSet() throws ParserConfigurationException, IOException, SAXException
afterPropertiesSet
in interface InitializingBean
ParserConfigurationException
IOException
SAXException
public String toString()
toString
in class Object
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |