jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/soap/impl/FaultImpl.java
changeset 23782 953bfc3fbe31
parent 22679 d785acd84a14
equal deleted inserted replaced
23403:85dbdc227c5e 23782:953bfc3fbe31
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    68     protected abstract QName getDefaultFaultCode();
    68     protected abstract QName getDefaultFaultCode();
    69 
    69 
    70 
    70 
    71     protected void findFaultCodeElement() {
    71     protected void findFaultCodeElement() {
    72         this.faultCodeElement =
    72         this.faultCodeElement =
    73             (SOAPFaultElement) findChild(getFaultCodeName());
    73             (SOAPFaultElement) findAndConvertChildElement(getFaultCodeName());
    74     }
    74     }
    75 
    75 
    76     protected void findFaultActorElement() {
    76     protected void findFaultActorElement() {
    77         this.faultActorElement =
    77         this.faultActorElement =
    78             (SOAPFaultElement) findChild(getFaultActorName());
    78             (SOAPFaultElement) findAndConvertChildElement(getFaultActorName());
    79     }
    79     }
    80 
    80 
    81     protected void findFaultStringElement() {
    81     protected void findFaultStringElement() {
    82         this.faultStringElement =
    82         this.faultStringElement =
    83             (SOAPFaultElement) findChild(getFaultStringName());
    83             (SOAPFaultElement) findAndConvertChildElement(getFaultStringName());
    84     }
    84     }
    85 
    85 
    86     public void setFaultCode(String faultCode) throws SOAPException {
    86     public void setFaultCode(String faultCode) throws SOAPException {
    87         setFaultCode(
    87         setFaultCode(
    88             NameImpl.getLocalNameFromTagName(faultCode),
    88             NameImpl.getLocalNameFromTagName(faultCode),
   160         return new QName(nsName, getLocalPart(code), prefix);
   160         return new QName(nsName, getLocalPart(code), prefix);
   161     }
   161     }
   162 
   162 
   163     protected void initializeDetail() {
   163     protected void initializeDetail() {
   164         NameImpl detailName = getDetailName();
   164         NameImpl detailName = getDetailName();
   165         detail = (Detail) findChild(detailName);
   165         detail = (Detail) findAndConvertChildElement(detailName);
   166     }
   166     }
   167 
   167 
   168     public Detail getDetail() {
   168     public Detail getDetail() {
   169         if (detail == null)
   169         if (detail == null)
   170             initializeDetail();
   170             initializeDetail();