com.sun.identity.liberty.ws.common
Class Status

java.lang.Object
  |
  +--com.sun.identity.liberty.ws.common.Status

public class Status
extends java.lang.Object

This class represents a common status object. The following schema fragment specifies the expected content within the Status object.

 <complexType name="Status">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="Status" minOccurs="0"/>
       </sequence>
       <attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" />
       <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}IDREF" />
     </restriction>
   </complexContent>
 </complexType>
 


Constructor Summary
Status()
          Default constructor
Status(java.lang.String ns, java.lang.String nsPrefix)
          Constructor
 
Method Summary
 javax.xml.namespace.QName getCode()
          Gets status code.
 java.lang.String getComment()
          Gets comment for the status.
 java.lang.String getRef()
          Gets reference attribute.
 Status getSubStatus()
          Gets sub status
 void setCode(javax.xml.namespace.QName value)
          Sets status code
 void setComment(java.lang.String comment)
          Sets comment
 void setRef(java.lang.String value)
          Sets reference attribute
 void setSubStatus(Status status)
          Sets sub status.
 java.lang.String toString()
          Returns string format of the status
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Status

public Status()
Default constructor

Status

public Status(java.lang.String ns,
              java.lang.String nsPrefix)
Constructor
Parameters:
ns - Name space for the Status object
nsPrefix - prefix used for the name space, for example, disco.
Method Detail

getSubStatus

public Status getSubStatus()
Gets sub status
Returns:
Status

setSubStatus

public void setSubStatus(Status status)
Sets sub status. The sub status is used by a service to convey second-level status information in addition to the status code.
Parameters:
status - Status to be set

getRef

public java.lang.String getRef()
Gets reference attribute.
Returns:
reference attribute.

setRef

public void setRef(java.lang.String value)
Sets reference attribute
Parameters:
value - reference to be set

getCode

public javax.xml.namespace.QName getCode()
Gets status code.
Returns:
status code.

setCode

public void setCode(javax.xml.namespace.QName value)
Sets status code
Parameters:
value - status code to be set

getComment

public java.lang.String getComment()
Gets comment for the status.
Returns:
comment for the status.

setComment

public void setComment(java.lang.String comment)
Sets comment
Parameters:
comment - String

toString

public java.lang.String toString()
Returns string format of the status
Overrides:
toString in class java.lang.Object
Returns:
String


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.