@Deprecated public class TLcdSLDFeatureTypeStyleEncoder10 extends Object implements ILcdOutputStreamFactoryCapable
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 and Description |
---|
TLcdSLDFeatureTypeStyleEncoder10()
Deprecated.
Default constructor.
|
TLcdSLDFeatureTypeStyleEncoder10(TLcdXMLSchemaProvider aSchemaProvider)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle,
String aSourceName)
Deprecated.
Encodes the given feature type style to the given destination.
|
String |
getDefaultNamespace()
Deprecated.
Returns the default XML namespace used by this encoder.
|
ILcdXMLTypedElementAdapterProvider |
getElementAdapterProvider()
Deprecated.
Gets the element adapter provider.
|
ILcdOutputStreamFactory |
getOutputStreamFactory()
Deprecated.
Returns the output stream factory that is currently used for creating output streams given source names.
|
ILcdXMLPrefixMap |
getPrefixMap()
Deprecated.
Returns the prefix map used by this encoder.
|
ILcdXMLSchemaLocationsMap |
getSchemaLocationsMap()
Deprecated.
Gets the locations of the schemas.
|
ILcdXMLEditableSchemaProvider |
getSchemaProvider()
Deprecated.
Gets the schema provider.
|
void |
registerElementAdapter(TLcdXMLName aXMLName,
Class aClass,
ILcdXMLElementAdapter aElementAdapter)
Deprecated.
Registers the given reader for the given XML type, sub-elements and Java type.
|
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 |
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.
|
public TLcdSLDFeatureTypeStyleEncoder10()
public TLcdSLDFeatureTypeStyleEncoder10(TLcdXMLSchemaProvider aSchemaProvider)
public void setPrefixMap(ILcdXMLPrefixMap aPrefixMap)
aPrefixMap
- the prefix map to be used by this encoder.public ILcdXMLPrefixMap getPrefixMap()
public void setDefaultNamespace(String aDefaultNamespace)
aDefaultNamespace
- the default XML namespace to be used by this encoder.public String getDefaultNamespace()
http://www.opengis.net/sld
.public void setOutputStreamFactory(ILcdOutputStreamFactory aILcdOutputStreamFactory)
setOutputStreamFactory
in interface ILcdOutputStreamFactoryCapable
aILcdOutputStreamFactory
- the output stream factory to be used.public ILcdOutputStreamFactory getOutputStreamFactory()
getOutputStreamFactory
in interface ILcdOutputStreamFactoryCapable
public void encodeFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle, String aSourceName) throws IOException
aFeatureTypeStyle
- the given feature type style.aSourceName
- the full path to the source where the object should be writtten.IOException
- thrown if an error occurs during the read process.public void setSchemaLocationsMap(ILcdXMLSchemaLocationsMap aSchemaLocationsMap)
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.
aSchemaLocationsMap
- the locations of the schemas.public ILcdXMLSchemaLocationsMap getSchemaLocationsMap()
setSchemaLocationsMap(ILcdXMLSchemaLocationsMap)
public ILcdXMLTypedElementAdapterProvider getElementAdapterProvider()
public ILcdXMLEditableSchemaProvider getSchemaProvider()
public void registerElementAdapter(TLcdXMLName aXMLName, Class aClass, ILcdXMLElementAdapter aElementAdapter)
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.public void registerElementAdapter(TLcdXMLName aXMLName, TLcdXMLName[] aElementNames, Class aClass, ILcdXMLElementAdapter aElementAdapter)
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.