nl.idgis.giserver.sldproviders
Class RuleFactorySldSnippet

java.lang.Object
  extended by nl.idgis.giserver.RuleFactory
      extended by nl.idgis.giserver.sldproviders.RuleFactorySldSnippet

public class RuleFactorySldSnippet
extends RuleFactory

Processing sld snippets to a collection of rules. The sld snippets are obtained from the configurated sld providers.

Author:
bretelerjj

Constructor Summary
RuleFactorySldSnippet()
           
 
Method Summary
 org.w3c.dom.Document createDocument(java.lang.String xml)
          Create for a given xml representation its corresponding DOM tree representation.
 javax.xml.parsers.DocumentBuilder getDocumentBuilder()
          Create a document builder.
 org.deegree.graphics.sld.Rule[] getRules(java.sql.ResultSet rset)
          Implementating the get rule factory.
 
Methods inherited from class nl.idgis.giserver.RuleFactory
getRules
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleFactorySldSnippet

public RuleFactorySldSnippet()
Method Detail

getDocumentBuilder

public javax.xml.parsers.DocumentBuilder getDocumentBuilder()
Create a document builder. The builder may be shared so this may be a singleton.

Returns:
the created document builder

createDocument

public org.w3c.dom.Document createDocument(java.lang.String xml)
Create for a given xml representation its corresponding DOM tree representation.

Parameters:
xml - input for the Dom tree.
Returns:
Dom tree in document package.

getRules

public org.deegree.graphics.sld.Rule[] getRules(java.sql.ResultSet rset)
Implementating the get rule factory.

Parameters:
rset - - SQL result set with sld snippets
Returns:
the collection rules valid for the sld snippets delivered by this sld provider.