|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.graphics.sld.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).
Field Summary | |
private static java.lang.String |
ogcNS
|
private static java.lang.String |
xlnNS
|
Constructor Summary | |
SLDFactory()
|
Method Summary | |
private static CssParameter |
createCssParameter(org.w3c.dom.Element element)
Creates a CssParameter-instance according to the contents of the DOM-subtree starting at the given 'CssParameter'-Element. |
private static Extent |
createExtent(org.w3c.dom.Element element)
Creates an Extent-instance according to the contents of the DOM-subtree starting at the given 'Extent'-Element. |
private static ExternalGraphic |
createExternalGraphic(org.w3c.dom.Element element)
Creates an ExternalGraphic-instance according to the contents of the DOM-subtree starting at the given 'ExternalGraphic'-Element. |
private static FeatureTypeConstraint |
createFeatureTypeConstraint(org.w3c.dom.Element element)
Creates a FeatureTypeConstraint-instance according to the contents of the DOM-subtree starting at the given 'FeatureTypeConstraint'-Element. |
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. |
private static Fill |
createFill(org.w3c.dom.Element element)
Creates a Fill-instance according to the contents of the DOM-subtree starting at the given 'Fill'-Element. |
private static Font |
createFont(org.w3c.dom.Element element)
Creates a Font-instance according to the contents of the DOM-subtree starting at the given 'Font'-Element. |
private static Geometry |
createGeometry(org.w3c.dom.Element element)
Creates a Geometry-instance according to the contents of the DOM-subtree starting at the given 'Geometry'-Element. |
private static Graphic |
createGraphic(org.w3c.dom.Element element)
Creates a Graphic-instance according to the contents of the DOM-subtree starting at the given 'Graphic'-element. |
private static GraphicFill |
createGraphicFill(org.w3c.dom.Element element)
Creates a GraphicFill-instance according to the contents of the DOM-subtree starting at the given 'GraphicFill'-Element. |
private static GraphicStroke |
createGraphicStroke(org.w3c.dom.Element element)
Creates a GraphicStroke-instance according to the contents of the DOM-subtree starting at the given 'GraphicStroke'-Element. |
private static Halo |
createHalo(org.w3c.dom.Element element)
Creates a Halo-instance according to the contents of the DOM-subtree starting at the given 'Halo'-Element. |
private static LabelPlacement |
createLabelPlacement(org.w3c.dom.Element element)
Creates a LabelPlacement-instance according to the contents of the DOM-subtree starting at the given 'LabelPlacement'-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. |
private static LegendGraphic |
createLegendGraphic(org.w3c.dom.Element element)
Creates a LegendGraphic-instance according to the contents of the DOM-subtree starting at the given 'LegendGraphic'-element. |
private static LinePlacement |
createLinePlacement(org.w3c.dom.Element element)
Creates a LinePlacement-instance according to the contents of the DOM-subtree starting at the given 'LinePlacement'-Element. |
private static LineSymbolizer |
createLineSymbolizer(org.w3c.dom.Element element,
double min,
double max)
Creates a LineSymbolizer-instance according to the contents of the DOM-subtree starting at the given 'LineSymbolizer'-Element. |
private static Mark |
createMark(org.w3c.dom.Element element)
Creates a Mark-instance according to the contents of the DOM-subtree starting at the given 'Mark'-Element. |
private static NamedLayer |
createNamedLayer(org.w3c.dom.Element element)
Creates a NamedLayer-instance according to the contents of the DOM-subtree starting at the given 'UserLayer'-Element. |
static NamedLayer |
createNamedLayer(java.lang.String name,
LayerFeatureConstraints layerFeatureConstraints,
Style[] styles)
|
private static NamedStyle |
createNamedStyle(org.w3c.dom.Element element)
Creates a NamedStyle-instance according to the contents of the DOM-subtree starting at the given 'NamedStyle'-Element. |
static NamedStyle |
createNamedStyle(java.lang.String name)
|
private static ParameterValueType |
createParameterValueType(org.w3c.dom.Element element)
Creates a ParameterValueType-instance according to the contents of the DOM-subtree starting at the given Element. |
private static PointPlacement |
createPointPlacement(org.w3c.dom.Element element)
Creates a PointPlacement-instance according to the contents of the DOM-subtree starting at the given 'PointPlacement'-Element. |
private static PointSymbolizer |
createPointSymbolizer(org.w3c.dom.Element element,
double min,
double max)
Creates a PointSymbolizer-instance according to the contents of the DOM-subtree starting at the given 'PointSymbolizer'-Element. |
private static PolygonSymbolizer |
createPolygonSymbolizer(org.w3c.dom.Element element,
double min,
double max)
Creates a PolygonSymbolizer-instance according to the contents of the DOM-subtree starting at the given 'PolygonSymbolizer'-Element. |
private static RasterSymbolizer |
createRasterSymbolizer(org.w3c.dom.Element element,
double min,
double max)
|
private static RemoteOWS |
createRemoteOWS(org.w3c.dom.Element element)
Creates a RemoteOWS-instance according to the contents of the DOM-subtree starting at the given 'RemoteOWS'-Element. |
private static Rule |
createRule(org.w3c.dom.Element element)
Creates a Rule-instance according to the contents of the DOM-subtree starting at the given 'Rule'-Element. |
static StyledLayerDescriptor |
createSLD(java.io.Reader reader)
Creates a StyledLayerDescriptor-instance from the given Reader. |
static StyledLayerDescriptor |
createSLD(java.lang.String s)
Creates a StyledLayerDescriptor-instance from the given XML-representation. |
private static Stroke |
createStroke(org.w3c.dom.Element element)
Creates a Stroke-instance according to the contents of the DOM-subtree starting at the given 'Stroke'-Element. |
static StyledLayerDescriptor |
createStyledLayerDescriptor(org.w3c.dom.Element element)
Creates a StyledLayerDescriptor-instance according to the contents of the DOM-subtree starting at the given 'StyledLayerDescriptor'-Element. |
private static TextSymbolizer |
createTextSymbolizer(org.w3c.dom.Element element,
double min,
double max)
Creates a TextSymbolizer-instance according to the contents of the DOM-subtree starting at the given 'TextSymbolizer'-Element. |
private static UserLayer |
createUserLayer(org.w3c.dom.Element element)
Creates a UserLayer-instance according to the contents of the DOM-subtree starting at the given 'UserLayer'-Element. |
private 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 |
Field Detail |
private static java.lang.String ogcNS
private static java.lang.String xlnNS
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.io.Reader reader) throws XMLParsingException
reader
- provides the XML document
XMLParsingException
- if a syntactic or semantic error
in the XML document is encounteredprivate static RasterSymbolizer createRasterSymbolizer(org.w3c.dom.Element element, double min, double max)
element
-
private static TextSymbolizer createTextSymbolizer(org.w3c.dom.Element element, double min, double max) throws XMLParsingException
element
- the 'TextSymbolizer'-Elementmin
- scale-constraint to be usedmax
- scale-constraint to be used
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static Halo createHalo(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'Halo'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static LabelPlacement createLabelPlacement(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'LabelPlacement'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static PointPlacement createPointPlacement(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'PointPlacement'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static LinePlacement createLinePlacement(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'LinePlacement'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static Font createFont(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'Font'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static ParameterValueType createParameterValueType(org.w3c.dom.Element element) throws XMLParsingException
element
- the Element (must be of the type
sld:ParameterValueType)
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredpublic static StyledLayerDescriptor createStyledLayerDescriptor(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'StyledLayerDescriptor'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static NamedStyle createNamedStyle(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'NamedStyle'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredpublic static NamedStyle createNamedStyle(java.lang.String name) throws XMLParsingException
XMLParsingException
private static RemoteOWS createRemoteOWS(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'RemoteOWS'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static NamedLayer createNamedLayer(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'NamedLayer'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredpublic static NamedLayer createNamedLayer(java.lang.String name, LayerFeatureConstraints layerFeatureConstraints, Style[] styles) throws XMLParsingException
XMLParsingException
private static UserLayer createUserLayer(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'UserLayer'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static FeatureTypeConstraint createFeatureTypeConstraint(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'FeatureTypeConstraint'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static Extent createExtent(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'Extent'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredpublic 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 encounteredprivate 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 encounteredprivate static Rule createRule(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'Rule'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static PointSymbolizer createPointSymbolizer(org.w3c.dom.Element element, double min, double max) throws XMLParsingException
element
- the 'PointSymbolizer'-Elementmin
- scale-constraint to be usedmax
- scale-constraint to be used
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static LineSymbolizer createLineSymbolizer(org.w3c.dom.Element element, double min, double max) throws XMLParsingException
element
- the 'LineSymbolizer'-Elementmin
- scale-constraint to be usedmax
- scale-constraint to be used
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static PolygonSymbolizer createPolygonSymbolizer(org.w3c.dom.Element element, double min, double max) throws XMLParsingException
element
- the 'PolygonSymbolizer'-Elementmin
- scale-constraint to be usedmax
- scale-constraint to be used
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static Geometry createGeometry(org.w3c.dom.Element element) throws XMLParsingException
FIXME: Add support for 'Function'-Elements.
element
- the 'Geometry'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static Fill createFill(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'Fill'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static LegendGraphic createLegendGraphic(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'LegendGraphic'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static ExternalGraphic createExternalGraphic(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'ExternalGraphic'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static Mark createMark(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'Mark'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static Stroke createStroke(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'Stroke'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static GraphicFill createGraphicFill(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'GraphicFill'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static GraphicStroke createGraphicStroke(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'GraphicStroke'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static Graphic createGraphic(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'Graphic'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encounteredprivate static CssParameter createCssParameter(org.w3c.dom.Element element) throws XMLParsingException
element
- the 'CssParamter'-Element
XMLParsingException
- if a syntactic or semantic error
in the DOM-subtree is encountered
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |