public class SchemaModelSerializer
extends java.lang.Object
Constructor and Description |
---|
SchemaModelSerializer(Configuration config,
Receiver out)
Create a SchemaModelSerializer
|
Modifier and Type | Method and Description |
---|---|
void |
declareNamespace(java.lang.String prefix,
java.lang.String uri) |
void |
emitAttribute(java.lang.String attributeName,
java.lang.String value) |
void |
emitNamespaceContext(NamespaceResolver resolver) |
void |
emitTypedValue(AtomicSequence value) |
void |
endElement() |
java.lang.String |
getId(SchemaComponent component,
boolean forSelf) |
java.lang.String |
getTypeLink(SchemaType type) |
void |
serialize()
Export the pre-compiled schema components in this configuration to the specified Receiver
|
void |
setIsSerialized(SerializableSchemaComponent component) |
void |
startElement(java.lang.String elementName) |
public SchemaModelSerializer(Configuration config, Receiver out)
config
- the Saxon Configuration. This must be a schema-aware configurationout
- the receiver to which the compiled schema document will be writtenjava.lang.IllegalArgumentException
- if the configuration is not schema-awarepublic void serialize() throws XPathException
XPathException
- if any failure occurspublic void startElement(java.lang.String elementName) throws XPathException
XPathException
public void endElement() throws XPathException
XPathException
public void emitNamespaceContext(NamespaceResolver resolver) throws XPathException
XPathException
public void declareNamespace(java.lang.String prefix, java.lang.String uri) throws XPathException
XPathException
public void emitAttribute(java.lang.String attributeName, java.lang.String value) throws XPathException
XPathException
public void setIsSerialized(SerializableSchemaComponent component)
public java.lang.String getId(SchemaComponent component, boolean forSelf)
public void emitTypedValue(AtomicSequence value) throws XPathException
XPathException
public java.lang.String getTypeLink(SchemaType type)
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.