org.deegree_impl.clients.context
Class FormatList
java.lang.Object
org.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
Constructor Summary |
FormatList(Format[] formats)
Creates a new FormatList object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formats
private java.util.HashMap formats
current
private Format current
FormatList
public FormatList(Format[] formats)
throws ContextException
- Creates a new FormatList object.
- Parameters:
formats
-
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