Package org.citydb.config
Class ConfigUtil
- java.lang.Object
-
- org.citydb.config.ConfigUtil
-
public class ConfigUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CITYDB_CONFIG_NAMESPACE_URI
-
Constructor Summary
Constructors Constructor Description ConfigUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateSchema(java.io.File file)
static ConfigUtil
getInstance()
javax.xml.bind.JAXBContext
getJAXBContext()
void
marshal(java.lang.Object object, java.io.File file)
java.lang.Object
unmarshal(java.io.File file)
java.lang.Object
unmarshal(java.io.InputStream inputStream)
ConfigUtil
withConfigClass(java.lang.Class<?> configClass)
ConfigUtil
withConfigClasses(java.lang.Class<?>... configClasses)
-
-
-
Field Detail
-
CITYDB_CONFIG_NAMESPACE_URI
public static final java.lang.String CITYDB_CONFIG_NAMESPACE_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ConfigUtil getInstance()
-
withConfigClass
public ConfigUtil withConfigClass(java.lang.Class<?> configClass)
-
withConfigClasses
public ConfigUtil withConfigClasses(java.lang.Class<?>... configClasses)
-
marshal
public void marshal(java.lang.Object object, java.io.File file) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
unmarshal
public java.lang.Object unmarshal(java.io.File file) throws javax.xml.bind.JAXBException, java.io.IOException
- Throws:
javax.xml.bind.JAXBException
java.io.IOException
-
unmarshal
public java.lang.Object unmarshal(java.io.InputStream inputStream) throws javax.xml.bind.JAXBException, java.io.IOException
- Throws:
javax.xml.bind.JAXBException
java.io.IOException
-
generateSchema
public void generateSchema(java.io.File file) throws javax.xml.bind.JAXBException, java.io.IOException
- Throws:
javax.xml.bind.JAXBException
java.io.IOException
-
getJAXBContext
public javax.xml.bind.JAXBContext getJAXBContext() throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
-