com.luciad.format.gml2.xml
, com.luciad.format.gml31.xml
and
com.luciad.format.gml32.xml
.public class TLcdGMLSchemaEncoder extends Object
Constructor and Description |
---|
TLcdGMLSchemaEncoder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeSchema(ILcdModel[] aGMLModels,
Writer aWriter,
String[] aNames,
String aGMLSchemaLocation)
Deprecated.
Encodes a single application schema for a given array of
ILcdModel s,
and outputs it to a Writer . |
void |
encodeSchema(ILcdModel aGMLModel,
String aSourceName,
String aGMLSchemaLocation)
Deprecated.
Encodes an application schema for a given
ILcdModel . |
void |
setTargetNamespace(org.jdom.Namespace aNamespace)
Deprecated.
Sets the target name space for the schema to write.
|
public void setTargetNamespace(org.jdom.Namespace aNamespace)
aNamespace
- the target name space.public void encodeSchema(ILcdModel aGMLModel, String aSourceName, String aGMLSchemaLocation) throws IOException
ILcdModel
.aGMLModel
- The ILcdModel
to be described by the resulting GML schema. The model must have an ILcdFeaturedDescriptor
.aSourceName
- The path to the file where the model is going to be saved. The schema file will have the same name, but with a .xsd extension.aGMLSchemaLocation
- The URI of the GML "feature.xsd" schema. This is required because the resulting application schema must reference it.IOException
- if the file designated by aSourceName
cannot be written to.public void encodeSchema(ILcdModel[] aGMLModels, Writer aWriter, String[] aNames, String aGMLSchemaLocation)
ILcdModel
s,
and outputs it to a Writer
.aGMLModels
- An array of ILcdModel
s to be described by the resulting GML schema.aWriter
- The Writer
to which the schema should be written.aNames
- An array which contains a unique name for each element of aGMLModels
. This array is used to name elements in the GML schema.aGMLSchemaLocation
- The URI of the GML "feature.xsd" schema. This is required because the resulting application schema must reference it.