KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > util > XMLConstants


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

18 package org.apache.batik.util;
19
20 /**
21  * Contains common XML constants.
22  *
23  * @author <a HREF="mailto:vhardy@eng.sun.com">Vincent Hardy</a>
24  * @version $Id: XMLConstants.java,v 1.8 2005/02/22 09:13:03 cam Exp $
25  */

26 public interface XMLConstants {
27     /**
28      * The XML namespace URI.
29      */

30     String JavaDoc XML_NAMESPACE_URI =
31         "http://www.w3.org/XML/1998/namespace";
32
33     /**
34      * The xmlns namespace URI.
35      */

36     String JavaDoc XMLNS_NAMESPACE_URI =
37         "http://www.w3.org/2000/xmlns/";
38
39     /**
40      * The xmlns prefix
41      */

42     String JavaDoc XMLNS_PREFIX = "xmlns";
43
44     /**
45      * The xlink namespace URI
46      */

47     String JavaDoc XLINK_NAMESPACE_URI
48         = "http://www.w3.org/1999/xlink";
49     
50     /**
51      * The xlink prefix
52      */

53     String JavaDoc XLINK_PREFIX = "xlink";
54
55     String JavaDoc XML_PREFIX = "xml";
56     String JavaDoc XML_LANG_ATTRIBUTE = XML_PREFIX + ":lang";
57     String JavaDoc XML_SPACE_ATTRIBUTE = XML_PREFIX + ":space";
58
59     String JavaDoc XML_DEFAULT_VALUE = "default";
60     String JavaDoc XML_PRESERVE_VALUE = "preserve";
61     
62     String JavaDoc XML_TAB = " ";
63     String JavaDoc XML_OPEN_TAG_END_CHILDREN = " >";
64     String JavaDoc XML_OPEN_TAG_END_NO_CHILDREN = " />";
65     String JavaDoc XML_OPEN_TAG_START = "<";
66     String JavaDoc XML_CLOSE_TAG_START = "</";
67     String JavaDoc XML_CLOSE_TAG_END = ">";
68     String JavaDoc XML_SPACE = " ";
69     String JavaDoc XML_EQUAL_SIGN = "=";
70     String JavaDoc XML_EQUAL_QUOT = "=\"";
71     String JavaDoc XML_DOUBLE_QUOTE = "\"";
72     char XML_CHAR_QUOT = '\"';
73     char XML_CHAR_LT = '<';
74     char XML_CHAR_GT = '>';
75     char XML_CHAR_APOS = '\'';
76     char XML_CHAR_AMP = '&';
77     String JavaDoc XML_ENTITY_QUOT = "&quot;";
78     String JavaDoc XML_ENTITY_LT = "&lt;";
79     String JavaDoc XML_ENTITY_GT = "&gt;";
80     String JavaDoc XML_ENTITY_APOS = "&apos;";
81     String JavaDoc XML_ENTITY_AMP = "&amp;";
82
83     String JavaDoc XML_CHAR_REF_PREFIX = "&#x";
84     String JavaDoc XML_CHAR_REF_SUFFIX = ";";
85 }
86
Popular Tags