Package com.luciad.ogc.sld.xml
Class TLcdSLDFeatureTypeStyleEncoder10
java.lang.Object
com.luciad.ogc.sld.xml.TLcdSLDFeatureTypeStyleEncoder10
- All Implemented Interfaces:
ILcdOutputStreamFactoryCapable
@Deprecated
public class TLcdSLDFeatureTypeStyleEncoder10
extends Object
implements ILcdOutputStreamFactoryCapable
Deprecated.
XML Encoder for
TLcdSLDFeatureTypeStyle
objects to documents according to version 1.0 of the
OGC Styled Layer Descriptor Implementation Specification.
Note that the files produced do not contains SLD top elements.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor.TLcdSLDFeatureTypeStyleEncoder10
(TLcdXMLSchemaProvider aSchemaProvider) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
encodeFeatureTypeStyle
(TLcdSLDFeatureTypeStyle aFeatureTypeStyle, String aSourceName) Deprecated.Encodes the given feature type style to the given destination.Deprecated.Returns the default XML namespace used by this encoder.Deprecated.Gets the element adapter provider.Deprecated.Returns the output stream factory that is currently used for creating output streams given source names.Deprecated.Returns the prefix map used by this encoder.Deprecated.Gets the locations of the schemas.Deprecated.Gets the schema provider.void
registerElementAdapter
(TLcdXMLName aXMLName, TLcdXMLName[] aElementNames, Class aClass, ILcdXMLElementAdapter aElementAdapter) Deprecated.Registers the given reader for the given XML type, sub-elements and Java type.void
registerElementAdapter
(TLcdXMLName aXMLName, Class aClass, ILcdXMLElementAdapter aElementAdapter) Deprecated.Registers the given reader for the given XML type, sub-elements and Java type.void
setDefaultNamespace
(String aDefaultNamespace) Deprecated.Sets the default XML namespace for the documents created by this encoder.void
setOutputStreamFactory
(ILcdOutputStreamFactory aILcdOutputStreamFactory) Deprecated.Sets the output stream factory that will be used for creating output streams given source names.void
setPrefixMap
(ILcdXMLPrefixMap aPrefixMap) Deprecated.Sets the prefix map to be used by this encoder.void
setSchemaLocationsMap
(ILcdXMLSchemaLocationsMap aSchemaLocationsMap) Deprecated.Sets the locations of the schemas that are used in the XML document.
-
Constructor Details
-
TLcdSLDFeatureTypeStyleEncoder10
public TLcdSLDFeatureTypeStyleEncoder10()Deprecated.Default constructor. -
TLcdSLDFeatureTypeStyleEncoder10
Deprecated.
-
-
Method Details
-
setPrefixMap
Deprecated.Sets the prefix map to be used by this encoder.- Parameters:
aPrefixMap
- the prefix map to be used by this encoder.
-
getPrefixMap
Deprecated.Returns the prefix map used by this encoder. The default prefix map contains the following values:- sld : http://www.opengis.net/sld
- gml : http://www.opengis.net/gml
- ogc : http://www.opengis.net/ogc
- xlink : http://www.w3.org/1999/xlink
- Returns:
- the prefix map used by this encoder.
-
setDefaultNamespace
Deprecated.Sets the default XML namespace for the documents created by this encoder. This is the namespace for which no prefix will be used in the generated XML documents.- Parameters:
aDefaultNamespace
- the default XML namespace to be used by this encoder.
-
getDefaultNamespace
Deprecated.Returns the default XML namespace used by this encoder. The default value is the SLD namespace:http://www.opengis.net/sld
.- Returns:
- the default XML namespace used by this encoder..
-
setOutputStreamFactory
Deprecated.Sets the output stream factory that will be used for creating output streams given source names.- Specified by:
setOutputStreamFactory
in interfaceILcdOutputStreamFactoryCapable
- Parameters:
aILcdOutputStreamFactory
- the output stream factory to be used.
-
getOutputStreamFactory
Deprecated.Returns the output stream factory that is currently used for creating output streams given source names.- Specified by:
getOutputStreamFactory
in interfaceILcdOutputStreamFactoryCapable
- Returns:
- the input stream factory that is currently used.
-
encodeFeatureTypeStyle
public void encodeFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle, String aSourceName) throws IOException Deprecated.Encodes the given feature type style to the given destination.- Parameters:
aFeatureTypeStyle
- the given feature type style.aSourceName
- the full path to the source where the object should be writtten.- Throws:
IOException
- thrown if an error occurs during the read process.
-
setSchemaLocationsMap
Deprecated.Sets the locations of the schemas that are used in the XML document.The schema locations will be declared in all XML document encoded by this encoder, in the xsi:schemaLocations="namespace schemaLocation ..." attribute of the root element. All previously set locations will be cleared.
- Parameters:
aSchemaLocationsMap
- the locations of the schemas.
-
getSchemaLocationsMap
Deprecated.Gets the locations of the schemas.- Returns:
- the locations of the schemas.
- See Also:
-
getElementAdapterProvider
Deprecated.Gets the element adapter provider.- Returns:
- the element adapter provider.
-
getSchemaProvider
Deprecated.Gets the schema provider.- Returns:
- the schema provider.
-
registerElementAdapter
public void registerElementAdapter(TLcdXMLName aXMLName, Class aClass, ILcdXMLElementAdapter aElementAdapter) Deprecated.Registers the given reader for the given XML type, sub-elements and Java type.- Parameters:
aXMLName
- the XML type name for which the adapter was written. Cannot be null.aClass
- the Java class for which the adapter was written.aElementAdapter
- the adapter to be registered.
-
registerElementAdapter
public void registerElementAdapter(TLcdXMLName aXMLName, TLcdXMLName[] aElementNames, Class aClass, ILcdXMLElementAdapter aElementAdapter) Deprecated.Registers the given reader for the given XML type, sub-elements and Java type.- Parameters:
aXMLName
- the XML type name for which the adapter was written. It can be null in case of a local (or anonymous) type of a global element.aElementNames
- the sub-element names of the type. Cannot be null. Must have length > 0.aClass
- the Java class for which the adapter was written.aElementAdapter
- the adapter to be registered.
-
TLcdSLDFeatureTypeStyleEncoder