org.codehaus.xfire.service
Class FaultInfo

java.lang.Object
  extended byorg.codehaus.xfire.service.MessagePartContainer
      extended byorg.codehaus.xfire.service.FaultInfo
All Implemented Interfaces:
Visitable

public class FaultInfo
extends MessagePartContainer
implements Visitable

Represents the description of a service operation fault.

Faults are created using the OperationInfo.addFault(String) method.

Author:
Arjen Poutsma

Method Summary
 void accept(Visitor visitor)
          Acceps the given visitor.
 java.lang.Class getExceptionClass()
           
 java.lang.String getName()
          Returns the name of the fault.
 void setExceptionClass(java.lang.Class exceptionClass)
           
 void setName(java.lang.String name)
          Sets the name of the fault.
 
Methods inherited from class org.codehaus.xfire.service.MessagePartContainer
addMessagePart, addMessagePart, getMessagePart, getMessagePartIndex, getMessageParts, getOperation, removeMessagePart, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the fault.

Returns:
the name.

setName

public void setName(java.lang.String name)
Sets the name of the fault.

Parameters:
name - the name.

accept

public void accept(Visitor visitor)
Acceps the given visitor. Iterates over all message part infos.

Specified by:
accept in interface Visitable
Parameters:
visitor - the visitor.

getExceptionClass

public java.lang.Class getExceptionClass()

setExceptionClass

public void setExceptionClass(java.lang.Class exceptionClass)


Copyright © 2004-2006 null. All Rights Reserved.