2
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
4
* This software is open source.
5
* See the bottom of this file for the licence.
12
* <code>AttributeDecl</code> represents an element declaration in a DTD.
15
* @author <a href="mailto:james.strachan@metastuff.com">James Strachan </a>
16
* @version $Revision: 1.6 $
18
public class ElementDecl {
19
/** Holds value of property name. */
22
/** Holds value of property model. */
25
public ElementDecl() {
28
public ElementDecl(String name, String model) {
34
* Getter for property name.
36
* @return Value of property name.
38
public String getName() {
43
* Setter for property name.
46
* New value of property name.
48
public void setName(String name) {
53
* Getter for property model.
55
* @return Value of property model.
57
public String getModel() {
62
* Setter for property model.
65
* New value of property model.
67
public void setModel(String model) {
71
public String toString() {
72
return "<!ELEMENT " + name + " " + model + ">";
77
* Redistribution and use of this software and associated documentation
78
* ("Software"), with or without modification, are permitted provided that the
79
* following conditions are met:
81
* 1. Redistributions of source code must retain copyright statements and
82
* notices. Redistributions must also contain a copy of this document.
84
* 2. Redistributions in binary form must reproduce the above copyright notice,
85
* this list of conditions and the following disclaimer in the documentation
86
* and/or other materials provided with the distribution.
88
* 3. The name "DOM4J" must not be used to endorse or promote products derived
89
* from this Software without prior written permission of MetaStuff, Ltd. For
90
* written permission, please contact dom4j-info@metastuff.com.
92
* 4. Products derived from this Software may not be called "DOM4J" nor may
93
* "DOM4J" appear in their names without prior written permission of MetaStuff,
94
* Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.
96
* 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org
98
* THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND
99
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
100
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
101
* ARE DISCLAIMED. IN NO EVENT SHALL METASTUFF, LTD. OR ITS CONTRIBUTORS BE
102
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
103
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
104
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
105
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
106
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
107
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
108
* POSSIBILITY OF SUCH DAMAGE.
110
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.