nl.idgis.giserver.sldproviders
Class RuleFactorySldSnippet
java.lang.Object
nl.idgis.giserver.RuleFactory
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleFactorySldSnippet
public RuleFactorySldSnippet()
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.