uk.org.ogsadai.client.toolkit.service.faults.wsrp
Class BaseFaultType

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.rmi.RemoteException
                  extended byorg.apache.axis.AxisFault
                      extended byuk.org.ogsadai.client.toolkit.service.faults.wsrp.BaseFaultType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidResourcePropertyQNameFaultType, ResourceUnknownFaultType

public class BaseFaultType
extends org.apache.axis.AxisFault

Client-side representation of deserialized WSRF BaseFaultType.

Author:
The OGSA-DAI Project Team.
See Also:
Serialized Form

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
private static javax.xml.namespace.QName DESCRIPTION_QNAME
           
private static javax.xml.namespace.QName ERROR_CODE_QNAME
           
private static javax.xml.namespace.QName FAULT_CAUSE_QNAME
           
private  java.lang.String[] mDescription
           
private  BaseFaultTypeErrorCode mErrorCode
           
private  BaseFaultType[] mFaultCause
           
private  java.util.Calendar mTimestamp
           
private  javax.xml.namespace.QName mXMLName
           
private static javax.xml.namespace.QName TIMESTAMP_QNAME
           
 
Fields inherited from class org.apache.axis.AxisFault
faultActor, faultCode, faultDetails, faultHeaders, faultNode, faultString, faultSubCode, log
 
Fields inherited from class java.rmi.RemoteException
detail
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
BaseFaultType()
          Create fault.
BaseFaultType(java.util.Calendar timestamp, BaseFaultTypeErrorCode errorCode, java.lang.String[] description, BaseFaultType[] faultCause)
          Create fault.
BaseFaultType(org.w3c.dom.Element element)
          Create a fault from the given XML description.
BaseFaultType(org.w3c.dom.Element[] details)
          Create fault.
 
Method Summary
 java.lang.String[] getDescription()
          Gets the description value for this BaseFaultType.
 java.lang.String getDescription(int i)
          Gets the ith description value for this BaseFaultType.
 BaseFaultTypeErrorCode getErrorCode()
          Gets the errorCode value for this BaseFaultType.
 BaseFaultType[] getFaultCause()
          Gets the faultCause value for this BaseFaultType.
 BaseFaultType getFaultCause(int i)
          Gets the ith faultCause value for this BaseFaultType.
 java.util.Calendar getTimestamp()
          Gets the timestamp value for this BaseFaultType.
 javax.xml.namespace.QName getXMLName()
          Gets the XML name of the serialized fault.
 void setDescription(int i, java.lang.String value)
          Sets the ith description value for this BaseFaultType.
 void setDescription(java.lang.String[] description)
          Sets the description value for this BaseFaultType.
 void setErrorCode(BaseFaultTypeErrorCode errorCode)
          Sets the errorCode value for this BaseFaultType.
 void setFaultCause(BaseFaultType[] faultCause)
          Sets the faultCause value for this BaseFaultType.
 void setFaultCause(int i, BaseFaultType value)
          Sets the ith faultCause value for this BaseFaultType.
 void setTimestamp(java.util.Calendar timestamp)
          Sets the timestamp value for this BaseFaultType.
 
Methods inherited from class org.apache.axis.AxisFault
addFaultDetail, addFaultDetail, addFaultDetailString, addFaultSubCode, addFaultSubCodeAsString, addHeader, addHostname, addHostnameIfNeeded, clearFaultDetails, clearFaultSubCodes, clearHeaders, dump, dumpToString, getFaultActor, getFaultCode, getFaultDetails, getFaultNode, getFaultReason, getFaultRole, getFaultString, getFaultSubCodes, getHeaders, initFaultSubCodes, lookupFaultDetail, makeFault, output, printStackTrace, printStackTrace, removeFaultDetail, removeHostname, setFaultActor, setFaultCode, setFaultCode, setFaultCodeAsString, setFaultDetail, setFaultDetailString, setFaultNode, setFaultReason, setFaultRole, setFaultString, toString, writeDetails
 
Methods inherited from class java.rmi.RemoteException
getCause, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values

TIMESTAMP_QNAME

private static final javax.xml.namespace.QName TIMESTAMP_QNAME

ERROR_CODE_QNAME

private static final javax.xml.namespace.QName ERROR_CODE_QNAME

DESCRIPTION_QNAME

private static final javax.xml.namespace.QName DESCRIPTION_QNAME

FAULT_CAUSE_QNAME

private static final javax.xml.namespace.QName FAULT_CAUSE_QNAME

mTimestamp

private java.util.Calendar mTimestamp

mErrorCode

private BaseFaultTypeErrorCode mErrorCode

mDescription

private java.lang.String[] mDescription

mFaultCause

private BaseFaultType[] mFaultCause

mXMLName

private javax.xml.namespace.QName mXMLName
Constructor Detail

BaseFaultType

public BaseFaultType()
Create fault.


BaseFaultType

public BaseFaultType(java.util.Calendar timestamp,
                     BaseFaultTypeErrorCode errorCode,
                     java.lang.String[] description,
                     BaseFaultType[] faultCause)
Create fault.

Parameters:
timestamp - fault timestamp from server.
errorCode - fault error code
description - description of fault
faultCause - faults causing this fault.

BaseFaultType

public BaseFaultType(org.w3c.dom.Element[] details)
Create fault.

Parameters:
details - elements containing timestamp, errorCode, description and faultCause.

BaseFaultType

public BaseFaultType(org.w3c.dom.Element element)
Create a fault from the given XML description.

Parameters:
element - fault description
Method Detail

getTimestamp

public java.util.Calendar getTimestamp()
Gets the timestamp value for this BaseFaultType.

Returns:
timestamp

setTimestamp

public void setTimestamp(java.util.Calendar timestamp)
Sets the timestamp value for this BaseFaultType.

Parameters:
timestamp -

getErrorCode

public BaseFaultTypeErrorCode getErrorCode()
Gets the errorCode value for this BaseFaultType.

Returns:
errorCode

setErrorCode

public void setErrorCode(BaseFaultTypeErrorCode errorCode)
Sets the errorCode value for this BaseFaultType.

Parameters:
errorCode -

getDescription

public java.lang.String[] getDescription()
Gets the description value for this BaseFaultType.

Returns:
description

setDescription

public void setDescription(java.lang.String[] description)
Sets the description value for this BaseFaultType.

Parameters:
description -

getDescription

public java.lang.String getDescription(int i)
Gets the ith description value for this BaseFaultType.

Parameters:
i -
Returns:
description

setDescription

public void setDescription(int i,
                           java.lang.String value)
Sets the ith description value for this BaseFaultType.

Parameters:
i -
value - description

getFaultCause

public BaseFaultType[] getFaultCause()
Gets the faultCause value for this BaseFaultType.

Returns:
faultCause

setFaultCause

public void setFaultCause(BaseFaultType[] faultCause)
Sets the faultCause value for this BaseFaultType.

Parameters:
faultCause -

getFaultCause

public BaseFaultType getFaultCause(int i)
Gets the ith faultCause value for this BaseFaultType.

Parameters:
i -
Returns:
faultCause

setFaultCause

public void setFaultCause(int i,
                          BaseFaultType value)
Sets the ith faultCause value for this BaseFaultType.

Parameters:
i -
value - fault cause

getXMLName

public javax.xml.namespace.QName getXMLName()
Gets the XML name of the serialized fault. Subclasses must override this method.

Returns:
XML name.