001/*
002 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
003 * 
004 * This software is open source. 
005 * See the bottom of this file for the licence.
006 * 
007 * $Id: DocumentType.java,v 1.4 2001/10/12 11:04:49 jstrachan Exp $
008 */
009
010package org.dom4j;
011
012import java.util.List;
013
014/** <p><code>DocumentType</code> defines an XML DOCTYPE declaration.</p>
015  *
016  * @author <a href="mailto:james.strachan@metastuff.com">James Strachan</a>
017  * @version $Revision: 1.4 $
018  */
019public interface DocumentType extends Node {
020
021    /** This method is the equivalent to the {@link #getName} 
022      * method. It is added for clarity.
023      *
024      * @returns the root element name for the document type.
025      */
026    public String getElementName();
027    
028    /** This method is the equivalent to the {@link #setName} 
029      * method. It is added for clarity.
030      */
031    public void setElementName(String elementName);
032
033    public String getPublicID();
034    public void setPublicID(String publicID);
035
036    public String getSystemID();
037    public void setSystemID(String systemID);
038
039    /** Returns a list of internal DTD declaration objects, 
040      * defined in the {@link org.dom4j.dtd} package 
041       */    
042    public List getInternalDeclarations();
043    
044    /** Sets the list of internal DTD declaration objects, 
045      * defined in the {@link org.dom4j.dtd} package 
046      */    
047    public void setInternalDeclarations(List declarations);
048
049    /** Returns a list of internal DTD declaration objects, 
050      * defined in the {@link org.dom4j.dtd} package 
051       */    
052    public List getExternalDeclarations();
053    
054    /** Sets the list of internal DTD declaration objects, 
055      * defined in the {@link org.dom4j.dtd} package 
056      */    
057    public void setExternalDeclarations(List declarations);
058
059}
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074/*
075 * Redistribution and use of this software and associated documentation
076 * ("Software"), with or without modification, are permitted provided
077 * that the following conditions are met:
078 *
079 * 1. Redistributions of source code must retain copyright
080 *    statements and notices.  Redistributions must also contain a
081 *    copy of this document.
082 *
083 * 2. Redistributions in binary form must reproduce the
084 *    above copyright notice, this list of conditions and the
085 *    following disclaimer in the documentation and/or other
086 *    materials provided with the distribution.
087 *
088 * 3. The name "DOM4J" must not be used to endorse or promote
089 *    products derived from this Software without prior written
090 *    permission of MetaStuff, Ltd.  For written permission,
091 *    please contact dom4j-info@metastuff.com.
092 *
093 * 4. Products derived from this Software may not be called "DOM4J"
094 *    nor may "DOM4J" appear in their names without prior written
095 *    permission of MetaStuff, Ltd. DOM4J is a registered
096 *    trademark of MetaStuff, Ltd.
097 *
098 * 5. Due credit should be given to the DOM4J Project
099 *    (http://dom4j.org/).
100 *
101 * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS
102 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
103 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
104 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
105 * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
106 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
107 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
108 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
109 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
110 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
111 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
112 * OF THE POSSIBILITY OF SUCH DAMAGE.
113 *
114 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
115 *
116 * $Id: DocumentType.java,v 1.4 2001/10/12 11:04:49 jstrachan Exp $
117 */