org.deegree_impl.clients.context
Class Format

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

public class Format
extends java.lang.Object
implements Marshallable

encapsulates the format description as described by the OGC Web Map Context specification

Version:
$Revision: 1.2 $
Author:
Andreas Poth

Field Summary
private  boolean current
           
private  java.lang.String name
           
 
Constructor Summary
Format(java.lang.String name, boolean current)
          Creates a new Format object.
 
Method Summary
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 java.lang.String getName()
          returns the name of the format
 boolean isCurrent()
          returns true if this is the current format of the layer
 void setCurrent(boolean current)
          sets if this is the current format of the layer or not
 void setName(java.lang.String name)
          sets the the name of the format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

current

private boolean current
Constructor Detail

Format

public Format(java.lang.String name,
              boolean current)
       throws ContextException
Creates a new Format object.

Parameters:
name - name of the format
current - indicates if this is current format of this layer
Throws:
ContextException
Method Detail

getName

public java.lang.String getName()
returns the name of the format

Returns:

setName

public void setName(java.lang.String name)
             throws ContextException
sets the the name of the format

Parameters:
name -
Throws:
ContextException

isCurrent

public boolean isCurrent()
returns true if this is the current format of the layer

Returns:

setCurrent

public void setCurrent(boolean current)
sets if this is the current format of the layer or not

Parameters:
current -

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