org.codehaus.xfire.service
Class FaultInfo

java.lang.Object
  extended by org.codehaus.xfire.service.MessagePartContainer
      extended by org.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.
 String getDocumentation()
           
 Class getExceptionClass()
           
 QName getMessageName()
           
 String getName()
          Returns the name of the fault.
 void setDocumentation(String documentation)
           
 void setExceptionClass(Class exceptionClass)
           
 void setMessageName(QName messageName)
           
 void setName(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

getDocumentation

public String getDocumentation()

setDocumentation

public void setDocumentation(String documentation)

getName

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

Returns:
the name.

setName

public void setName(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 Class getExceptionClass()

setExceptionClass

public void setExceptionClass(Class exceptionClass)

getMessageName

public QName getMessageName()

setMessageName

public void setMessageName(QName messageName)


Copyright © 2004-2013. All Rights Reserved.