com.saxonica.schema
Class SchemaModelSerializer
java.lang.Object
com.saxonica.schema.SchemaModelSerializer
public class SchemaModelSerializer
- extends Object
This class provides services enabling a compiled schema to be serialized to disk
SchemaModelSerializer
public SchemaModelSerializer(Configuration config,
Receiver out)
- 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
serialize
public void serialize()
throws XPathException
- Export the pre-compiled schema components in this configuration to the specified Receiver
- Throws:
XPathException
- if any failure occurs
startElement
public void startElement(String elementName)
throws XPathException
- Throws:
XPathException
endElement
public void endElement()
throws XPathException
- Throws:
XPathException
emitNamespaceContext
public void emitNamespaceContext(NamespaceResolver resolver)
throws XPathException
- Throws:
XPathException
declareNamespace
public void declareNamespace(String prefix,
String uri)
throws XPathException
- Throws:
XPathException
emitAttribute
public void emitAttribute(String attributeName,
String value)
throws XPathException
- Throws:
XPathException
setIsSerialized
public void setIsSerialized(SchemaComponent component)
getId
public String getId(SchemaComponent component,
boolean forSelf)
getTypeLink
public String getTypeLink(SchemaType type)
Copyright (C) Michael H. Kay. All rights reserved.