|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface allows user specify various XML deserialization and serialization options
Method Summary | |
EcoreBuilder |
getEcoreBuilder()
|
Map |
getExternalSchemaLocations()
|
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(Map 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 processAnyXML)
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). |
Method Detail |
public void setProcessAnyXML(boolean processAnyXML)
false
, unless set to true
explicitly.
To process schemaLocation/noNamespaceSchemaLocation attributes, user have to set
setProcessSchemaLocations(boolean)
to true
.
XMLResource.getEObjectToExtensionMap()
public boolean isProcessAnyXML()
public void setEcoreBuilder(EcoreBuilder ecoreBuilder)
EcoreBuilder
that will be used to process
schema locations to build Ecore dynamically.
If this option is not set and either
getExternalSchemaLocations()
is set or isProcessSchemaLocations()
returns true
default EcoreBuilder
will be created.
EcoreBuilder
public EcoreBuilder getEcoreBuilder()
EcoreBuilder
public void setExternalSchemaLocations(Map schemaLocations)
schemaLocations
- - map of target namespace to schema location of type URI
public Map getExternalSchemaLocations()
public void setProcessSchemaLocations(boolean processSchemaLocations)
processSchemaLocations
- public boolean isProcessSchemaLocations()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |