@Component public class XmlSettingsHelper extends Object
コンストラクタと説明 |
---|
XmlSettingsHelper() |
修飾子とタイプ | メソッドと説明 |
---|---|
<T> void |
marshal(T xml,
String xmlPath)
marshal.
|
<T> T |
unmarshal(Class<T> clazz,
File xmlFile,
File xsdFile)
unmarshal.
|
<T> T |
unmarshal(Class<T> clazz,
String xmlString,
File xsdFile)
unmarshal.
|
<T> T |
unmarshal(Class<T> clazz,
String xmlFilePath,
String xsdFilePath)
unmarshal.
|
public <T> void marshal(T xml, String xmlPath) throws IOException, JAXBException
T
- Classxml
- XML設定データxmlPath
- XML設定ファイルパスIOException
- IOException
JAXBException
- JAXBException
public <T> T unmarshal(Class<T> clazz, String xmlString, File xsdFile) throws JAXBException, SAXException
T
- Classclazz
- Class
xmlString
- XML文字列xsdFile
- XSDファイルJAXBException
- JAXBException
SAXException
- SAXException
public <T> T unmarshal(Class<T> clazz, File xmlFile, File xsdFile) throws JAXBException, SAXException
T
- Classclazz
- Class
xmlFile
- XMLファイルxsdFile
- XSDファイルJAXBException
- JAXBException
SAXException
- SAXException
public <T> T unmarshal(Class<T> clazz, String xmlFilePath, String xsdFilePath) throws JAXBException, SAXException
T
- Classclazz
- Class
xmlFilePath
- XMLファイルパスxsdFilePath
- XSDファイルパスJAXBException
- JAXBException
SAXException
- SAXException
Copyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.