org.deegree_impl.clients.context
Class StyleList

java.lang.Object
  extended byorg.deegree_impl.clients.context.StyleList
All Implemented Interfaces:
Marshallable

public class StyleList
extends java.lang.Object
implements Marshallable

encapsulates a StyleList as defined by the OGC Web Map Context specification

Version:
$Revision: 1.4 $
Author:
Andreas Poth

Field Summary
private  Style current
           
private  java.util.HashMap styles
           
 
Constructor Summary
StyleList(Style[] styles)
          Creates a new StyleList object.
 
Method Summary
 void addStyle(Style style)
           
 void clear()
           
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 Style getCurrentStyle()
          returns the currentlay
 Style getStyle(java.lang.String name)
           
 Style[] getStyles()
          returns an array of all styles known by a layer
 Style removeStyle(java.lang.String name)
           
 void setStyles(Style[] styles)
          sets alla styles known by a layer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

styles

private java.util.HashMap styles

current

private Style current
Constructor Detail

StyleList

public StyleList(Style[] styles)
          throws ContextException
Creates a new StyleList object.

Parameters:
styles -
Method Detail

getStyles

public Style[] getStyles()
returns an array of all styles known by a layer

Returns:

setStyles

public void setStyles(Style[] styles)
               throws ContextException
sets alla styles known by a layer

Parameters:
styles -
Throws:
ContextException

getCurrentStyle

public Style getCurrentStyle()
returns the currentlay

Returns:

getStyle

public Style getStyle(java.lang.String name)
Parameters:
name -
Returns:

addStyle

public void addStyle(Style style)
Parameters:
style -

removeStyle

public Style removeStyle(java.lang.String name)
Parameters:
name -
Returns:

clear

public void clear()

exportAsXML

public java.lang.String exportAsXML()
Description copied from interface: Marshallable
Produces an XML-representation of this object.

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object