public class XmlTypeMapping extends TypeMapping
The mapping file format is very simple, and the loading function does not do any validation - it would just produce an empty mapping if another type of XML file was passed.
<typeMapping>
<mapping name="ModelElement" package="*" type="String"/>
...
</typeMapping>
| Constructor and Description |
|---|
XmlTypeMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
load(File file)
Load the mapping from an XML file.
|
void |
load(InputStream stream)
Load the mapping from a stream.
|
addAll, addMapping, clear, contains, getMapping, getStringForType, getType, getType, getTypeFromString, remove, renamepublic void load(File file) throws Exception
file - the fileIOExceptionSAXExceptionParserConfigurationExceptionExceptionpublic void load(InputStream stream) throws Exception
stream - the streamIOExceptionSAXExceptionParserConfigurationExceptionExceptionCopyright © 2006-2013. All Rights Reserved.