|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Unmarshaller
The Unmarshaller class governs the process of deserializing XML data into newly created Java content trees, optionally validating the XML data as it is unmarshalled.
Method Summary | |
---|---|
ValidationEventHandler |
getEventHandler()
Return the current event handler or the default event handler if one hasn't been set. |
Object |
getProperty(String name)
Get the particular property in the underlying implementation of Unmarshaller. |
UnmarshallerHandler |
getUnmarshallerHandler()
Get an unmarshaller handler object that can be used as a component in an XML pipeline. |
boolean |
isValidating()
Indicates whether or not the Unmarshaller is configured to validate during unmarshal operations. |
void |
setEventHandler(ValidationEventHandler handler)
Allow an application to register a ValidationEventHandler. |
void |
setProperty(String name,
Object value)
Set the particular property in the underlying implementation of Unmarshaller. |
void |
setValidating(boolean validating)
Specifies whether or not the default validation mechanism of the Unmarshaller should validate during unmarshal operations. |
Object |
unmarshal(File file)
Unmarshal XML data from the specified file and return the resulting content tree. |
Object |
unmarshal(InputSource source)
Unmarshal XML data from the specified SAX InputSource and return the resulting content tree. |
Object |
unmarshal(InputStream is)
Unmarshal XML data from the specified InputStream and return the resulting content tree. |
Object |
unmarshal(Node node)
Unmarshal XML data from the specified DOM tree and return the resulting content tree. |
Object |
unmarshal(Source source)
Unmarshal XML data from the specified XML Source and return the resulting content tree. |
Object |
unmarshal(URL url)
Unmarshal XML data from the specified URL and return the resulting content tree. |
Method Detail |
---|
ValidationEventHandler getEventHandler() throws JAXBException
JAXBException
Object getProperty(String name) throws PropertyException
PropertyException
UnmarshallerHandler getUnmarshallerHandler()
boolean isValidating() throws JAXBException
JAXBException
void setEventHandler(ValidationEventHandler handler) throws JAXBException
JAXBException
void setProperty(String name, Object value) throws PropertyException
PropertyException
void setValidating(boolean validating) throws JAXBException
JAXBException
Object unmarshal(File file) throws JAXBException
JAXBException
Object unmarshal(InputSource source) throws JAXBException
JAXBException
Object unmarshal(InputStream is) throws JAXBException
JAXBException
Object unmarshal(Node node) throws JAXBException
JAXBException
Object unmarshal(Source source) throws JAXBException
JAXBException
Object unmarshal(URL url) throws JAXBException
JAXBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |