org.deegree_impl.services.capabilities
Class CException_Impl

java.lang.Object
  extended byorg.deegree_impl.services.capabilities.CException_Impl
All Implemented Interfaces:
CException, Marshallable

public class CException_Impl
extends java.lang.Object
implements CException, Marshallable

----------------------------------------------------------------------

Version:
$Revision: 1.6 $
Author:
Katharina Lupp, Markus Schneider

Field Summary
private  java.util.ArrayList formats
           
 
Constructor Summary
CException_Impl(java.lang.String[] formats)
          constructor initializing the class with the formats array
 
Method Summary
 void addFormat(java.lang.String format)
          Adds a format to the CException's formats (if it is not defined yet).
 java.lang.String exportAsXML()
          Returns an XML representation of this object.
 java.lang.String[] getFormats()
          returns the possible formats of the exceptions
 void setFormats(java.lang.String[] formats)
          sets the possible formats of the exceptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formats

private java.util.ArrayList formats
Constructor Detail

CException_Impl

public CException_Impl(java.lang.String[] formats)
constructor initializing the class with the formats array

Method Detail

getFormats

public java.lang.String[] getFormats()
returns the possible formats of the exceptions

Specified by:
getFormats in interface CException

addFormat

public void addFormat(java.lang.String format)
Adds a format to the CException's formats (if it is not defined yet).

Specified by:
addFormat in interface CException
Parameters:
format - the name of the format to add

setFormats

public void setFormats(java.lang.String[] formats)
sets the possible formats of the exceptions


exportAsXML

public java.lang.String exportAsXML()
Returns an XML representation of this object.

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