public class SchemaModelSerializer extends Object
Constructor and Description |
---|
SchemaModelSerializer(Configuration config,
Receiver out)
Create a SchemaModelSerializer
|
Modifier and Type | Method and Description |
---|---|
void |
declareNamespace(String prefix,
String uri) |
void |
emitAttribute(String attributeName,
String value) |
void |
emitNamespaceContext(NamespaceResolver resolver) |
void |
emitTypedValue(AtomicSequence value) |
void |
endElement() |
String |
getId(SchemaComponent component,
boolean forSelf) |
String |
getTypeLink(SchemaType type) |
void |
serialize()
Export the pre-compiled schema components in this configuration to the specified Receiver
|
void |
setIsSerialized(SchemaComponent component) |
void |
startElement(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 writtenIllegalArgumentException
- if the configuration is not schema-awarepublic void serialize() throws XPathException
XPathException
- if any failure occurspublic void startElement(String elementName) throws XPathException
XPathException
public void endElement() throws XPathException
XPathException
public void emitNamespaceContext(NamespaceResolver resolver) throws XPathException
XPathException
public void declareNamespace(String prefix, String uri) throws XPathException
XPathException
public void emitAttribute(String attributeName, String value) throws XPathException
XPathException
public void setIsSerialized(SchemaComponent component)
public String getId(SchemaComponent component, boolean forSelf)
public void emitTypedValue(AtomicSequence value) throws XPathException
XPathException
public String getTypeLink(SchemaType type)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.