/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
*
* @author SAAJ RI Development Team
*/
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
}
}
}
}
return getFaultReasonName();
}
return getFaultRoleName();
}
}
}
}
}
}
return new Detail1_2Impl(
}
return new FaultElement1_2Impl(
}
throws SOAPException {
return;
"SAAJ0435.ver1_2.code.not.standard",
qname);
}
}
private void findReasonElement() {
}
// Fault Reason has similar semantics as faultstring
if (this.faultStringElement == null)
while (eachTextElement.hasNext()) {
if (thisLocale == null) {
throw new SOAPExceptionImpl("\"xml:lang\" attribute is not present on the Text element");
}
}
throw new SOAPExceptionImpl("env:Text must be present inside env:Reason");
}
}
throws SOAPException {
throw new SOAPException("locale is required and must not be null");
}
// Fault Reason has similar semantics as faultstring
if (this.faultStringElement == null)
if (this.faultStringElement == null) {
} else {
if (reasonText != null) {
} else {
}
}
}
if (reasonText != null) {
"Fault string, and possibly fault code, not set";
}
}
}
return null;
// Fault Reason has similar semantics as faultstring
if (this.faultStringElement == null)
if (this.faultStringElement != null) {
if (textElement != null) {
}
}
return null;
}
// Fault Reason has similar semantics as faultstring
if (this.faultStringElement == null)
while (eachTextElement.hasNext()) {
if (thisLocale == null) {
throw new SOAPExceptionImpl("\"xml:lang\" attribute is not present on the Text element");
}
}
throw new SOAPExceptionImpl("env:Text elements with mandatory xml:lang attributes must be present inside env:Reason");
}
}
try {
} catch (SOAPException e) {}
return locale;
}
/*
* This method assumes that locale and faultStringElement are non-null
*/
throws SOAPException {
// Fault Reason has similar semantics as faultstring
while (eachTextElement.hasNext()) {
if (thisLocale == null) {
throw new SOAPExceptionImpl("\"xml:lang\" attribute is not present on the Text element");
}
return textElement;
}
}
return null;
}
return null;
}
}
}
if (getFaultRole() != null) {
return;
}
if (hasDetail()) {
return;
}
}
return getFaultActor();
}
if (this.faultActorElement == null)
if (this.faultActorElement != null)
this.faultActorElement.detachNode();
this.faultActorElement =
if (hasDetail()) {
return;
}
addNode(this.faultActorElement);
}
if (this.faultCodeElement == null)
}
return null;
}
if (this.faultCodeElement == null)
return convertCodeToQName(
}
return null;
}
if (this.faultCodeElement == null)
return NameImpl.convertToName(
}
try {
//reason = getFaultReasonText(Locale.getDefault());
//if (reason == null)
} catch (SOAPException e) {}
return reason;
}
}
public void setFaultString(
throws SOAPException {
}
return;
}
throw new SOAPExceptionImpl("A Subcode must be namespace-qualified");
}
if (innermostSubCodeElement == null) {
if (faultCodeElement == null)
}
prefix =
} else
prefix = "ns1";
}
}
public void removeAllFaultSubcodes() {
if (this.faultCodeElement == null)
if (subcodeElements.hasNext()) {
}
}
if (this.faultCodeElement == null)
while (subcodeElements.hasNext()) {
}
//return subcodeList.iterator();
return new Iterator() {
public boolean hasNext() {
return subCodeIter.hasNext();
}
return subCodeIter.next();
}
public void remove() {
throw new UnsupportedOperationException(
"Method remove() not supported on SubCodes Iterator");
}
};
}
}
/*
* Override setEncodingStyle of ElementImpl to restrict adding encodingStyle
* attribute to SOAP Fault (SOAP 1.2 spec, part 1, section 5.1.1)
*/
throw new SOAPExceptionImpl("encodingStyle attribute cannot appear on Fault");
}
throws SOAPException {
}
}
throws SOAPException {
}
}
"SAAJ0416.ver1_2.adding.text.not.legal",
getElementQName());
throw new SOAPExceptionImpl("Adding text to SOAP 1.2 Fault is not legal");
}
throws SOAPException {
if (hasDetail()) {
throw new SOAPExceptionImpl("Cannot add Detail, Detail already exists");
}
throw new SOAPExceptionImpl("Cannot add Detail, Incorrect SOAP version specified for Detail element");
}
}
if (element instanceof Detail1_2Impl) {
return convertToSoapElement(importedElement);
} else
return super.addChildElement(element);
}
return true;
}
return false;
}
return SOAPConstants.SOAP_SENDER_FAULT;
}
return new FaultElement1_2Impl(
qname);
}
return new FaultElement1_2Impl(
}
this.setFaultRole(faultActor);
}
}