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