Source code: org/apache/axis/description/AttributeDesc.java
1 /*
2 * Copyright 2002-2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.apache.axis.description;
17
18 import javax.xml.namespace.QName;
19 import java.io.Serializable;
20
21 /**
22 * An AttributeDesc is a FieldDesc for an Java field mapping to an
23 * XML attribute
24 *
25 * @author Glen Daniels (gdaniels@apache.org)
26 */
27 public class AttributeDesc extends FieldDesc implements Serializable {
28 public AttributeDesc() {
29 super(false);
30 }
31
32 /**
33 * Set the XML attribute's name, without giving it a namespace.
34 *
35 * This is the most common usage for AttributeDescs.
36 */
37 public void setAttributeName(String name)
38 {
39 setXmlName(new QName("", name));
40 }
41 }