org.deegree.gml.schema
Class GMLAppSchemaWriter
java.lang.Object
org.deegree.gml.schema.GMLAppSchemaWriter
public class GMLAppSchemaWriter
- extends Object
Stream-based writer for exporting AppSchema
or FeatureType
instances as a GML application schema.
- Version:
- $Revision: 31882 $, $Date: 2011-09-15 02:05:04 +0200 (Thu, 15 Sep 2011) $
- Author:
- Markus Schneider, last edited by: $Author: mschneider $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GML_2_DEFAULT_INCLUDE
public static final String GML_2_DEFAULT_INCLUDE
- See Also:
- Constant Field Values
GML_30_DEFAULT_INCLUDE
public static final String GML_30_DEFAULT_INCLUDE
- See Also:
- Constant Field Values
GML_31_DEFAULT_INCLUDE
public static final String GML_31_DEFAULT_INCLUDE
- See Also:
- Constant Field Values
GML_32_DEFAULT_INCLUDE
public static final String GML_32_DEFAULT_INCLUDE
- See Also:
- Constant Field Values
GMLAppSchemaWriter
public GMLAppSchemaWriter(GMLVersion version,
String targetNamespace,
Map<String,String> importURLs,
Map<String,String> prefixToNs)
- Creates a new
GMLAppSchemaWriter
for the given GML version and optional import URL.
- Parameters:
version
- gml version that exported schemas will comply to, must not be null
targetNamespace
- target namespace for the schema document, may be null/importURLs
- to be imported in the generated schema document, this may also contain a URL for the gml namespace,
may be null
prefixToNs
- keys: namespace prefixes, values: namespaces, may be null
export
public static void export(XMLStreamWriter writer,
GMLSchemaInfoSet xsModel,
String targetNs,
URITranslator translator)
throws XMLStreamException
- Exports a wrapper schema document for the given XML Schema Infoset.
- Parameters:
writer
- xsModel
- targetNs
- translator
-
- Throws:
XMLStreamException
export
public void export(XMLStreamWriter writer,
AppSchema schema)
throws XMLStreamException
- Throws:
XMLStreamException
export
public void export(XMLStreamWriter writer,
List<FeatureType> fts)
throws XMLStreamException
- Exports the given list of
FeatureType
instances as an XML schema document.
NOTE: The given writer must be configured to repair namespaces.
- Parameters:
writer
- fts
-
- Throws:
XMLStreamException
Copyright © 2011. All Rights Reserved.