Package com.saxonica.ee.schema
Class SchemaModelSerializer
java.lang.Object
com.saxonica.ee.schema.SchemaModelSerializer
This class provides services enabling a compiled schema to be serialized to disk
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaModelSerializer(Configuration config, Receiver out) Create a SchemaModelSerializer -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclareNamespace(String prefix, NamespaceUri uri) voidemitAttribute(String attributeName, String value) voidemitNamespaceContext(NamespaceResolver resolver) voidemitTypedValue(AtomicSequence value) voidgetId(SchemaComponent component, boolean forSelf) getTypeLink(SchemaType type) voidExport the pre-compiled schema components in this configuration to the specified ReceivervoidsetIsSerialized(SerializableSchemaComponent component) voidstartElement(String elementName)
-
Constructor Details
-
SchemaModelSerializer
Create a SchemaModelSerializer- Parameters:
config- the Saxon Configuration. This must be a schema-aware configurationout- the receiver to which the compiled schema document will be written- Throws:
IllegalArgumentException- if the configuration is not schema-aware
-
-
Method Details
-
serialize
Export the pre-compiled schema components in this configuration to the specified Receiver- Throws:
XPathException- if any failure occurs
-
startElement
- Throws:
XPathException
-
endElement
- Throws:
XPathException
-
emitNamespaceContext
- Throws:
XPathException
-
declareNamespace
- Throws:
XPathException
-
emitAttribute
- Throws:
XPathException
-
setIsSerialized
-
getId
-
emitTypedValue
- Throws:
XPathException
-
getTypeLink
-