public class XMLOptionsImpl extends java.lang.Object implements XMLOptions
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
anyXML |
protected EcoreBuilder |
ecoreBuilder |
protected java.util.Map<java.lang.String,URI> |
externalSchemaLocation |
protected boolean |
processSchemaLocations |
| Constructor and Description |
|---|
XMLOptionsImpl() |
| Modifier and Type | Method and Description |
|---|---|
EcoreBuilder |
getEcoreBuilder() |
java.util.Map<java.lang.String,URI> |
getExternalSchemaLocations() |
int |
hashCode() |
boolean |
isProcessAnyXML() |
boolean |
isProcessSchemaLocations() |
void |
setEcoreBuilder(EcoreBuilder ecoreBuilder)
This option allows the user to specify implementation of
EcoreBuilder that will be used to process
schema locations to build Ecore dynamically. |
void |
setExternalSchemaLocations(java.util.Map<java.lang.String,URI> schemaLocations)
The XML Schema Recommendation explicitly states that the inclusion of
schemaLocation/noNamespaceSchemaLocation attributes is only a hint;
it does not mandate that these attributes must be used to locate schemas.
|
void |
setProcessAnyXML(boolean anyXML)
This options allows the user to load and deserialize arbitrary XML (i.e.
|
void |
setProcessSchemaLocations(boolean processSchemaLocations)
This options allows the user to specify that the schemaLocation/noNamespaceSchemaLocation attributes
occurring in the instance document will be processed to convert XSD(s) to Ecore file(s).
|
protected EcoreBuilder ecoreBuilder
protected java.util.Map<java.lang.String,URI> externalSchemaLocation
protected boolean anyXML
protected boolean processSchemaLocations
public EcoreBuilder getEcoreBuilder()
getEcoreBuilder in interface XMLOptionsEcoreBuilderpublic java.util.Map<java.lang.String,URI> getExternalSchemaLocations()
getExternalSchemaLocations in interface XMLOptionspublic boolean isProcessAnyXML()
isProcessAnyXML in interface XMLOptionspublic boolean isProcessSchemaLocations()
isProcessSchemaLocations in interface XMLOptionspublic void setEcoreBuilder(EcoreBuilder ecoreBuilder)
XMLOptionsEcoreBuilder that will be used to process
schema locations to build Ecore dynamically.
If this option is not set and either
XMLOptions.getExternalSchemaLocations() is set or XMLOptions.isProcessSchemaLocations() returns true
default EcoreBuilder will be created.setEcoreBuilder in interface XMLOptionsEcoreBuilderpublic void setExternalSchemaLocations(java.util.Map<java.lang.String,URI> schemaLocations)
XMLOptionssetExternalSchemaLocations in interface XMLOptionsschemaLocations - - map of target namespace to schema location of type org.eclipse.emf.common.util.URIpublic void setProcessAnyXML(boolean anyXML)
XMLOptionsfalse, unless set to true explicitly.
To process schemaLocation/noNamespaceSchemaLocation attributes, user have to set
XMLOptions.setProcessSchemaLocations(boolean) to true.setProcessAnyXML in interface XMLOptionsanyXML - whether to process arbitrary XML.XMLResource.getEObjectToExtensionMap()public void setProcessSchemaLocations(boolean processSchemaLocations)
XMLOptionssetProcessSchemaLocations in interface XMLOptionspublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature