public class XmlSchemaSerializer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlSchemaSerializer.XmlSchemaSerializerException
Exception class used for serialization problems.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
XSD_NAMESPACE |
| Constructor and Description |
|---|
XmlSchemaSerializer()
Create a new serializer.
|
| Modifier and Type | Method and Description |
|---|---|
ExtensionRegistry |
getExtReg()
Get the registry of extensions for this serializer.
|
Document[] |
serializeSchema(XmlSchema schemaObj,
boolean serializeIncluded)
Serialize an entire schema, returning an array of DOM Documents, one per XSL file.
|
void |
setExtReg(ExtensionRegistry extReg)
Set the registry of extensions for this serializer.
|
public static final String XSD_NAMESPACE
public ExtensionRegistry getExtReg()
public Document[] serializeSchema(XmlSchema schemaObj, boolean serializeIncluded) throws XmlSchemaSerializer.XmlSchemaSerializerException
XmlSchema objects to represent them, they will
be returned as additional documents in the array.schemaObj - The XML Schema.serializeIncluded - whether to create DOM trees for any included or imported schemas.XmlSchemaSerializer.XmlSchemaSerializerExceptionpublic void setExtReg(ExtensionRegistry extReg)
extReg - the registry.Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.