01: /*
02: * Portions Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
03: */
04:
05: /*
06: * Copyright 2005 The Apache Software Foundation.
07: *
08: * Licensed under the Apache License, Version 2.0 (the "License");
09: * 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: * @version $Id: XMLAttributeDecl.java,v 1.3 2005/11/03 17:16:39 jeffsuttor Exp $
27: */
28: public class XMLAttributeDecl {
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: * setValues
41: *
42: * @param name
43: * @param simpleType
44: * @param optional
45: */
46: public void setValues(QName name, XMLSimpleType simpleType,
47: 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: }
|