KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > dtd > XMLAttributeDecl


1 /*
2  * Copyright 1999-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
17 package org.apache.xerces.impl.dtd;
18
19 import org.apache.xerces.xni.QName;
20
21 /**
22  * @xerces.internal
23  *
24  * @version $Id: XMLAttributeDecl.java,v 1.5 2004/10/04 21:57:30 mrglavas Exp $
25  */

26 public class XMLAttributeDecl {
27
28     //
29
// Data
30
//
31

32     /** name */
33     public final QName name = new QName();
34
35     /** simpleType */
36     public final XMLSimpleType simpleType = new XMLSimpleType();
37
38     /** optional */
39     public boolean optional;
40
41     //
42
// Methods
43
//
44

45     /**
46      * setValues
47      *
48      * @param name
49      * @param simpleType
50      * @param optional
51      */

52     public void setValues(QName name, XMLSimpleType simpleType, boolean optional) {
53         this.name.setValues(name);
54         this.simpleType.setValues(simpleType);
55         this.optional = optional;
56     } // setValues
57

58     /**
59      * clear
60      */

61     public void clear() {
62         this.name.clear();
63         this.simpleType.clear();
64         this.optional = false;
65     } // clear
66

67 } // class XMLAttributeDecl
68
Popular Tags