KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > components > serializers > util > SGMLDocType


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.components.serializers.util;
17
18 /**
19  * The <code>SGMLDocType</code> class encapsulates informations regarding
20  * the document type public and system IDs and root element name for SGML
21  * (like HTML) documents.
22  *
23  * @author <a HREF="mailto:pier@apache.org">Pier Fumagalli</a>, February 2003
24  * @version CVS $Id: SGMLDocType.java 30932 2004-07-29 17:35:38Z vgritsenko $
25  */

26 public class SGMLDocType extends DocType {
27
28     /**
29      * Create a new <code>SGMLDocType</code> instance.
30      *
31      * @param root_name The document root element name.
32      */

33     public SGMLDocType(String JavaDoc root_name) {
34         this(root_name, null, null);
35     }
36     
37     /**
38      * Create a new <code>SGMLDocType</code> instance.
39      *
40      * @param root_name The document root element name.
41      * @param public_id The document type public identifier.
42      * @param system_id The document type system identifier.
43      */

44     public SGMLDocType(String JavaDoc root_name, String JavaDoc public_id, String JavaDoc system_id) {
45         super(root_name);
46         this.public_id = public_id;
47         this.system_id = system_id;
48     }
49 }
50
Popular Tags