org.deegree.services.wms
Class StyleRegistry

java.lang.Object
  extended by java.util.TimerTask
      extended by org.deegree.services.wms.StyleRegistry
All Implemented Interfaces:
java.lang.Runnable

public class StyleRegistry
extends java.util.TimerTask

StyleRegistry

Version:
$Revision: 28910 $, $Date: 2010-12-20 10:48:17 +0100 (Mo, 20. Dez 2010) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
StyleRegistry()
           
 
Method Summary
 org.deegree.rendering.r2d.se.unevaluated.Style get(java.lang.String layerName, java.lang.String styleName)
           
 java.util.ArrayList<org.deegree.rendering.r2d.se.unevaluated.Style> getAll(java.lang.String layerName)
           
 org.deegree.rendering.r2d.se.unevaluated.Style getDefault(java.lang.String layerName)
           
 boolean hasStyle(java.lang.String layerName, java.lang.String styleName)
           
 boolean load(java.lang.String layerName, java.io.File file)
           
 void load(java.lang.String layerName, java.util.List<DirectStyleType> styles, org.deegree.commons.xml.XMLAdapter adapter)
           
 void load(java.lang.String layerName, org.deegree.commons.xml.XMLAdapter adapter, java.util.List<SLDStyleType> styles)
           
 void put(java.lang.String layerName, org.deegree.rendering.r2d.se.unevaluated.Style style, boolean clear)
           
 void putAsDefault(java.lang.String layerName, org.deegree.rendering.r2d.se.unevaluated.Style style)
           
 boolean register(java.lang.String layerName, java.io.File file, boolean isSoleStyle)
           
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleRegistry

public StyleRegistry()
Method Detail

put

public void put(java.lang.String layerName,
                org.deegree.rendering.r2d.se.unevaluated.Style style,
                boolean clear)
Parameters:
layerName -
style -
clear - if true, all other styles will be removed for the layer

putAsDefault

public void putAsDefault(java.lang.String layerName,
                         org.deegree.rendering.r2d.se.unevaluated.Style style)
Parameters:
layerName -
style -

getDefault

public org.deegree.rendering.r2d.se.unevaluated.Style getDefault(java.lang.String layerName)
Parameters:
layerName -
Returns:
null, if not available

hasStyle

public boolean hasStyle(java.lang.String layerName,
                        java.lang.String styleName)
Parameters:
layerName -
styleName -
Returns:
true, if the layer has a style with the name

get

public org.deegree.rendering.r2d.se.unevaluated.Style get(java.lang.String layerName,
                                                          java.lang.String styleName)
Parameters:
layerName -
styleName -
Returns:
null, if not available

getAll

public java.util.ArrayList<org.deegree.rendering.r2d.se.unevaluated.Style> getAll(java.lang.String layerName)
Parameters:
layerName -
Returns:
all styles for the layer

load

public boolean load(java.lang.String layerName,
                    java.io.File file)
Parameters:
layerName -
file -
Returns:
true, if actually loaded

load

public void load(java.lang.String layerName,
                 java.util.List<DirectStyleType> styles,
                 org.deegree.commons.xml.XMLAdapter adapter)
Parameters:
layerName -
styles -
adapter -

load

public void load(java.lang.String layerName,
                 org.deegree.commons.xml.XMLAdapter adapter,
                 java.util.List<SLDStyleType> styles)
Parameters:
layerName -
styles -
adapter -

register

public boolean register(java.lang.String layerName,
                        java.io.File file,
                        boolean isSoleStyle)
Parameters:
layerName -
file -
isSoleStyle - if true, all styles will be cleared upon update
Returns:
true, if actually loaded

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask


Copyright © 2011. All Rights Reserved.