org.deegree.gml.schema
Class GMLAppSchemaWriter

java.lang.Object
  extended by 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 $

Field Summary
static String GML_2_DEFAULT_INCLUDE
           
static String GML_30_DEFAULT_INCLUDE
           
static String GML_31_DEFAULT_INCLUDE
           
static String GML_32_DEFAULT_INCLUDE
           
 
Constructor Summary
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.
 
Method Summary
 void export(XMLStreamWriter writer, AppSchema schema)
           
static void export(XMLStreamWriter writer, GMLSchemaInfoSet xsModel, String targetNs, URITranslator translator)
          Exports a wrapper schema document for the given XML Schema Infoset.
 void export(XMLStreamWriter writer, List<FeatureType> fts)
          Exports the given list of FeatureType instances as an XML schema document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.