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(PreparedSchema schema, Receiver out) Create a SchemaModelSerializerSchemaModelSerializer(PreparedSchema schema, ExpressionPresenter presenter, boolean topLevel) -
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 ReceivervoidvoidsetIsSerialized(SerializableSchemaComponent component) voidstartElement(String elementName)
-
Constructor Details
-
SchemaModelSerializer
Create a SchemaModelSerializer- Parameters:
schema- the schema to be serializedout- the receiver to which the compiled schema document will be written- Throws:
IllegalArgumentException- if the configuration is not schema-aware
-
SchemaModelSerializer
public SchemaModelSerializer(PreparedSchema schema, ExpressionPresenter presenter, boolean topLevel)
-
-
Method Details
-
getSchema
-
serializeAsDocument
- Throws:
XPathException
-
serialize
Export the pre-compiled schema components in this configuration to the specified Receiver- Parameters:
role- in XSLT, the schema role of this schema within a package; empty string for the default schema- 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
-