org.deegree.style.persistence.sld
Class SLDStyleStore
java.lang.Object
org.deegree.style.persistence.sld.SLDStyleStore
- All Implemented Interfaces:
- Resource, StyleStore
public class SLDStyleStore
- extends Object
- implements StyleStore
- Author:
- stranger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLDStyleStore
public SLDStyleStore(Map<String,LinkedList<Style>> styles)
init
public void init(DeegreeWorkspace workspace)
throws ResourceInitException
- Description copied from interface:
Resource
- Usually called by the
ResourceManager
upon workspace startup.
- Specified by:
init
in interface Resource
- Parameters:
workspace
- the workspace the resource belongs to, may be null
- Throws:
ResourceInitException
destroy
public void destroy()
- Description copied from interface:
Resource
- Usually called by the
ResourceManager
upon workspace shutdown.
- Specified by:
destroy
in interface Resource
getStyle
public Style getStyle(String styleName)
- Specified by:
getStyle
in interface StyleStore
- Parameters:
styleName
- if null, the default style will be returned
getStyle
public Style getStyle(String layerName,
String styleName)
- Specified by:
getStyle
in interface StyleStore
- Parameters:
layerName
- if null, the first matching style will be returnedstyleName
- if null, the default style will be returned
getAll
public List<Style> getAll(String layerName)
- Specified by:
getAll
in interface StyleStore
- Parameters:
layerName
- if null, equivalent with #getAll()
getAll
public List<Style> getAll()
- Specified by:
getAll
in interface StyleStore
- Returns:
- all styles known to the style store
Copyright © 2011. All Rights Reserved.