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 TypeMethodDescriptionvoid
declareNamespace
(String prefix, NamespaceUri uri) void
emitAttribute
(String attributeName, String value) void
emitNamespaceContext
(NamespaceResolver resolver) void
emitTypedValue
(AtomicSequence value) void
getId
(SchemaComponent component, boolean forSelf) getTypeLink
(SchemaType type) void
Export the pre-compiled schema components in this configuration to the specified Receivervoid
setIsSerialized
(SerializableSchemaComponent component) void
startElement
(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
-