|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.relaxng.converter.xmlschema.XMLSchema2RestrRelaxNG
public class XMLSchema2RestrRelaxNG
Converter from XML Schema to Restricted RELAX NG.
Note that the input schemas are assumed to be valid schemas; the converter may crash if this assumption is violated.
| Constructor Summary | |
|---|---|
XMLSchema2RestrRelaxNG(StandardDatatypes datatypes)
Constructs a new converter. |
|
| Method Summary | |
|---|---|
Document |
convert(Collection<URL> urls,
String root)
Loads schemas in XML Schema and converts them to a combined Restricted RELAX NG schema. |
Document |
convert(URL url)
Loads schema in XML Schema and converts it to Restricted RELAX NG. |
Document |
convert(URL url,
String root)
Loads schema in XML Schema and converts it to Restricted RELAX NG. |
Map<String,String> |
getNameMap()
Returns map from XML Schema element/type name ({namespaceURI}localname) to corresponding definition name in output schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLSchema2RestrRelaxNG(StandardDatatypes datatypes)
datatypes - datatype library| Method Detail |
|---|
public Document convert(Collection<URL> urls,
String root)
throws ParseException
urls - collection of URLs of XML Schema schemas (assumed to be non-conflicting)root - expanded qualified name of root element (on the form {namespaceURI}localname);
if null, all globally declared elements are allowed as roots
ParseException - if error occurs during parsing
public Document convert(URL url)
throws ParseException
url - URL of XML Schema schema
ParseException - if error occurs during parsing
public Document convert(URL url,
String root)
throws ParseException
url - URL of XML Schema schemaroot - expanded qualified name of root element (on the form {namespaceURI}localname);
if null, all globally declared elements are allowed as roots
ParseException - if error occurs during parsingpublic Map<String,String> getNameMap()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||