org.deegree.style.persistence.sld
Class SLDStyleStore

java.lang.Object
  extended by org.deegree.style.persistence.sld.SLDStyleStore
All Implemented Interfaces:
Resource, StyleStore

public class SLDStyleStore
extends Object
implements StyleStore

Author:
stranger

Constructor Summary
SLDStyleStore(Map<String,LinkedList<Style>> styles)
           
 
Method Summary
 void destroy()
          Usually called by the ResourceManager upon workspace shutdown.
 List<Style> getAll()
           
 List<Style> getAll(String layerName)
           
 Style getStyle(String styleName)
           
 Style getStyle(String layerName, String styleName)
           
 void init(DeegreeWorkspace workspace)
          Usually called by the ResourceManager upon workspace startup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLDStyleStore

public SLDStyleStore(Map<String,LinkedList<Style>> styles)
Method Detail

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 returned
styleName - 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.