/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: Status.java,v 1.2 2008/06/25 05:47:09 qcheng Exp $
*
*/
/**
* This class represents a common status object.
* The following schema fragment specifies the expected content within the
* <code>Status</code> object.
* <pre>
* <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>
* </pre>
*
* @supported.all.api
*/
public class Status {
/**
* Default constructor.
*/
public Status() {}
/**
* Constructor.
*
* @param ns Name space for the Status object
* @param nsPrefix prefix used for the name space, for example,
* <code>disco</code>.
*/
}
/**
* Gets sub status.
* @return Status
* @see #setSubStatus(Status)
*/
return status;
}
/**
* Sets sub status. The sub status is used by a service to convey
* second-level status information in addition to the status code.
* @param status Status to be set
* @see #getSubStatus()
*/
}
/**
* Gets reference attribute.
*
* @return reference attribute.
* @see #setRef(String)
*/
return ref;
}
/**
* Sets reference attribute.
* @param value reference to be set
* @see #getRef()
*/
}
/**
* Gets status code.
*
* @return status code.
* @see #setCode(QName)
*/
return code;
}
/**
* Sets status code.
* @param value status code to be set
* @see #getCode()
*/
}
/**
* Gets comment for the status.
*
* @return comment for the status.
* @see #setComment(String)
*/
return comment;
}
/**
* Sets comment
* @param comment String
* @see #getComment()
*/
}
/**
* Returns string format of the status.
* @return String
*/
append("=\"");
} else {
}
// ns must be present
} else {
}
} else {
} else {
} else {
}
}
}
}
}
}
}
}
}
} else {
}
}
}