org.deegree_impl.clients.context
Class FormatList

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

public class FormatList
extends java.lang.Object
implements Marshallable

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

Version:
$Revision: 1.4 $
Author:
Andreas Poth

Field Summary
private  Format current
           
private  java.util.HashMap formats
           
 
Constructor Summary
FormatList(Format[] formats)
          Creates a new FormatList object.
 
Method Summary
 void addFormat(Format format)
           
 void clear()
           
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 Format getCurrentFormat()
           
 Format getFormat(java.lang.String name)
           
 Format[] getFormats()
           
 Format removeFormat(java.lang.String name)
           
 void setFormats(Format[] formats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formats

private java.util.HashMap formats

current

private Format current
Constructor Detail

FormatList

public FormatList(Format[] formats)
           throws ContextException
Creates a new FormatList object.

Parameters:
formats -
Method Detail

getFormats

public Format[] getFormats()
Returns:

setFormats

public void setFormats(Format[] formats)
                throws ContextException
Parameters:
formats -
Throws:
ContextException

getCurrentFormat

public Format getCurrentFormat()

getFormat

public Format getFormat(java.lang.String name)
Parameters:
name -
Returns:

addFormat

public void addFormat(Format format)
Parameters:
format -

removeFormat

public Format removeFormat(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