View Javadoc
1   /*
2    * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
3    */
4   
5   /*
6    * Copyright 2005 The Apache Software Foundation.
7    *
8    * Licensed under the Apache License, Version 2.0 (the "License");
9    * you may not use this file except in compliance with the License.
10   * You may obtain a copy of the License at
11   *
12   *      http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS,
16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   * See the License for the specific language governing permissions and
18   * limitations under the License.
19   */
20  
21  package com.sun.xml.internal.stream.dtd.nonvalidating;
22  
23  import com.sun.org.apache.xerces.internal.xni.QName;
24  
25  /**
26   */
27  public class XMLAttributeDecl {
28  
29  
30      /** name */
31      public final QName name = new QName();
32  
33      /** simpleType */
34      public final XMLSimpleType simpleType = new XMLSimpleType();
35  
36      /** optional */
37      public boolean optional;
38  
39  
40      /**
41       * setValues
42       *
43       * @param name
44       * @param simpleType
45       * @param optional
46       */
47      public void setValues(QName name, XMLSimpleType simpleType, boolean optional) {
48          this.name.setValues(name);
49          this.simpleType.setValues(simpleType);
50          this.optional   = optional;
51      }
52  
53      /**
54       * clear
55       */
56      public void clear() {
57          this.name.clear();
58          this.simpleType.clear();
59          this.optional   = false;
60      }
61  
62  }