1 /* 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 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 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.oracle.xmlns.internal.webservices.jaxws_databinding; 27 import javax.xml.bind.annotation.XmlAccessType; 28 import javax.xml.bind.annotation.XmlAccessorType; 29 import javax.xml.bind.annotation.XmlAttribute; 30 import javax.xml.bind.annotation.XmlRootElement; 31 import javax.xml.bind.annotation.XmlType; 32 import java.lang.annotation.Annotation; 33 34 import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe; 35 36 37 /** 38 * This file was generated by JAXB-RI v2.2.6 and afterwards modified 39 * to implement appropriate Annotation 40 * 41 * <p>Java class for anonymous complex type. 42 * 43 * <p>The following schema fragment specifies the expected content contained within this class. 44 * 45 * <pre> 46 * <complexType> 47 * <complexContent> 48 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 49 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> 50 * <attribute name="targetNamespace" type="{http://www.w3.org/2001/XMLSchema}string" /> 51 * <attribute name="faultBean" type="{http://www.w3.org/2001/XMLSchema}string" /> 52 * </restriction> 53 * </complexContent> 54 * </complexType> 55 * </pre> 56 * 57 * 58 */ 59 @XmlAccessorType(XmlAccessType.FIELD) 60 @XmlType(name = "") 61 @XmlRootElement(name = "web-fault") 62 public class XmlWebFault implements javax.xml.ws.WebFault { 63 64 @XmlAttribute(name = "name") 65 protected String name; 66 @XmlAttribute(name = "targetNamespace") 67 protected String targetNamespace; 68 @XmlAttribute(name = "faultBean") 69 protected String faultBean; 70 @XmlAttribute(name = "messageName") 71 protected String messageName; 72 73 /** 74 * Gets the value of the name property. 75 * 76 * @return 77 * possible object is 78 * {@link String } 79 * 80 */ 81 public String getName() { 82 return name; 83 } 84 85 /** 86 * Sets the value of the name property. 87 * 88 * @param value 89 * allowed object is 90 * {@link String } 91 * 92 */ 93 public void setName(String value) { 94 this.name = value; 95 } 96 97 /** 98 * Gets the value of the targetNamespace property. 99 * 100 * @return 101 * possible object is 102 * {@link String } 103 * 104 */ 105 public String getTargetNamespace() { 106 return targetNamespace; 107 } 108 109 /** 110 * Sets the value of the targetNamespace property. 111 * 112 * @param value 113 * allowed object is 114 * {@link String } 115 * 116 */ 117 public void setTargetNamespace(String value) { 118 this.targetNamespace = value; 119 } 120 121 /** 122 * Gets the value of the faultBean property. 123 * 124 * @return 125 * possible object is 126 * {@link String } 127 * 128 */ 129 public String getFaultBean() { 130 return faultBean; 131 } 132 133 /** 134 * Sets the value of the faultBean property. 135 * 136 * @param value 137 * allowed object is 138 * {@link String } 139 * 140 */ 141 public void setFaultBean(String value) { 142 this.faultBean = value; 143 } 144 145 @Override 146 public String name() { 147 return nullSafe(name); 148 } 149 150 @Override 151 public String targetNamespace() { 152 return nullSafe(targetNamespace); 153 } 154 155 @Override 156 public String faultBean() { 157 return nullSafe(faultBean); 158 } 159 160 @Override 161 public String messageName() { 162 return nullSafe(messageName); 163 } 164 165 @Override 166 public Class<? extends Annotation> annotationType() { 167 return javax.xml.ws.WebFault.class; 168 } 169 }