|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.sld.SLDFactory
public class SLDFactory
Factory class for all mapped SLD-elements.
TODO: Default values for omitted elements (such as fill color) should better not be used in the construction of the corresponding objects (Fill), but marked as left out (to make it possible to differentiate between explicitly given values and default values).
Nested Class Summary | |
---|---|
static class |
SLDFactory.Method
Method is the MethodType from the Symbology encoding Schema. |
static class |
SLDFactory.Mode
Mode is the ModeType from the Symbology Encoding Schema. |
static class |
SLDFactory.ThresholdsBelongTo
TresholdsBelongTo enumerates values possibly belonging to ThreshholdsBelongToType . |
Constructor Summary | |
---|---|
SLDFactory()
|
Method Summary | |
---|---|
static FeatureTypeStyle |
createFeatureTypeStyle(org.w3c.dom.Element element)
Creates a FeatureTypeStyle-instance according to the contents of the DOM-subtree starting at the given 'FeatureTypeStyle'-Element. |
static LayerFeatureConstraints |
createLayerFeatureConstraints(org.w3c.dom.Element element)
Creates a LayerFeatureConstraints-instance according to the contents of the DOM-subtree starting at the given 'LayerFeatureConstraints'-Element. |
static NamedLayer |
createNamedLayer(java.lang.String name,
LayerFeatureConstraints layerFeatureConstraints,
AbstractStyle[] styles)
|
static NamedStyle |
createNamedStyle(java.lang.String name)
|
static StyledLayerDescriptor |
createSLD(java.lang.String s)
Creates a StyledLayerDescriptor-instance from the given XML-representation. |
static StyledLayerDescriptor |
createSLD(java.net.URL url)
Creates a StyledLayerDescriptor-instance from a SLD document read from the passed URL |
static StyledLayerDescriptor |
createSLD(XMLFragment sldDoc)
Creates a StyledLayerDescriptor-instance according to the contents of the DOM-subtree starting at the given 'StyledLayerDescriptor'-Element. |
static Symbolizer |
createSymbolizer(org.w3c.dom.Element symbolizerElement)
|
static UserStyle |
createUserStyle(org.w3c.dom.Element element)
Creates a UserStyle-instance according to the contents of the DOM-subtree starting at the given 'UserStyle'-Element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SLDFactory()
Method Detail |
---|
public static StyledLayerDescriptor createSLD(java.lang.String s) throws XMLParsingException
s
- contains the XML document
XMLParsingException
- if a syntactic or semantic error in the XML document is encounteredpublic static StyledLayerDescriptor createSLD(java.net.URL url) throws XMLParsingException
url
-
XMLParsingException
public static StyledLayerDescriptor createSLD(XMLFragment sldDoc) throws XMLParsingException
sldDoc
-
XMLParsingException
- if a syntactic or semantic error in the DOM-subtree is encounteredpublic static NamedStyle createNamedStyle(java.lang.String name)
public static NamedLayer createNamedLayer(java.lang.String name, LayerFeatureConstraints layerFeatureConstraints, AbstractStyle[] styles)
public static LayerFeatureConstraints createLayerFeatureConstraints(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'LayerFeatureConstraints'-Element
XMLParsingException
- if a syntactic or semantic error in the DOM-subtree is encounteredpublic static UserStyle createUserStyle(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'UserStyle'-Element
XMLParsingException
- if a syntactic or semantic error in the DOM-subtree is encounteredpublic static FeatureTypeStyle createFeatureTypeStyle(org.w3c.dom.Element element) throws XMLParsingException
TODO: The ElseFilter currently does not work correctly with FeatureFilters.
element
- the 'FeatureTypeStyle'-Element
XMLParsingException
- if a syntactic or semantic error in the DOM-subtree is encounteredpublic static Symbolizer createSymbolizer(org.w3c.dom.Element symbolizerElement) throws XMLParsingException
symbolizerElement
-
Symbolizer
XMLParsingException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org