org.deegree.gml.feature.schema
Class ApplicationSchemaXSDEncoder

java.lang.Object
  extended by org.deegree.gml.feature.schema.ApplicationSchemaXSDEncoder

public class ApplicationSchemaXSDEncoder
extends java.lang.Object

Stream-based writer for exporting FeatureType instances as GML application schemas.

Version:
$Revision: 27739 $, $Date: 2010-11-03 13:25:45 +0100 (Mi, 03. Nov 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Field Summary
static java.lang.String GML_2_DEFAULT_INCLUDE
           
static java.lang.String GML_30_DEFAULT_INCLUDE
           
static java.lang.String GML_31_DEFAULT_INCLUDE
           
static java.lang.String GML_32_DEFAULT_INCLUDE
           
 
Constructor Summary
ApplicationSchemaXSDEncoder(GMLVersion version, java.lang.String targetNamespace, java.util.Map<java.lang.String,java.lang.String> importURLs, java.util.Map<java.lang.String,java.lang.String> prefixToNs)
          Creates a new ApplicationSchemaXSDEncoder for the given GML version and optional import URL.
 
Method Summary
 void export(javax.xml.stream.XMLStreamWriter writer, ApplicationSchema schema)
           
static void export(javax.xml.stream.XMLStreamWriter writer, GMLSchemaInfoSet xsModel, java.lang.String targetNs, URITranslator translator)
          Exports a wrapper schema document for the given XML Schema Infoset.
 void export(javax.xml.stream.XMLStreamWriter writer, java.util.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 java.lang.String GML_2_DEFAULT_INCLUDE
See Also:
Constant Field Values

GML_30_DEFAULT_INCLUDE

public static final java.lang.String GML_30_DEFAULT_INCLUDE
See Also:
Constant Field Values

GML_31_DEFAULT_INCLUDE

public static final java.lang.String GML_31_DEFAULT_INCLUDE
See Also:
Constant Field Values

GML_32_DEFAULT_INCLUDE

public static final java.lang.String GML_32_DEFAULT_INCLUDE
See Also:
Constant Field Values
Constructor Detail

ApplicationSchemaXSDEncoder

public ApplicationSchemaXSDEncoder(GMLVersion version,
                                   java.lang.String targetNamespace,
                                   java.util.Map<java.lang.String,java.lang.String> importURLs,
                                   java.util.Map<java.lang.String,java.lang.String> prefixToNs)
Creates a new ApplicationSchemaXSDEncoder 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(javax.xml.stream.XMLStreamWriter writer,
                          GMLSchemaInfoSet xsModel,
                          java.lang.String targetNs,
                          URITranslator translator)
                   throws javax.xml.stream.XMLStreamException
Exports a wrapper schema document for the given XML Schema Infoset.

Parameters:
writer -
xsModel -
targetNs -
translator -
Throws:
javax.xml.stream.XMLStreamException

export

public void export(javax.xml.stream.XMLStreamWriter writer,
                   ApplicationSchema schema)
            throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

export

public void export(javax.xml.stream.XMLStreamWriter writer,
                   java.util.List<FeatureType> fts)
            throws javax.xml.stream.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:
javax.xml.stream.XMLStreamException


Copyright © 2011. All Rights Reserved.