01: /*
02: * Copyright 1999-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: /*
17: * $Id: Method.java,v 1.4 2005/04/07 04:29:03 minchau Exp $
18: */
19: package org.apache.xml.serializer;
20:
21: /**
22: * This class defines the constants which are the names of the four default
23: * output methods.
24: * <p>
25: * Three default output methods are defined: XML, HTML, and TEXT.
26: * These constants can be used as an argument to the
27: * OutputPropertiesFactory.getDefaultMethodProperties() method to get
28: * the properties to create a serializer.
29: *
30: * This class is a public API.
31: *
32: * @see OutputPropertiesFactory
33: * @see Serializer
34: *
35: * @xsl.usage general
36: */
37: public final class Method {
38: /**
39: * A private constructor to prevent the creation of such a class.
40: */
41: private Method() {
42:
43: }
44:
45: /**
46: * The output method type for XML documents: <tt>xml</tt>.
47: */
48: public static final String XML = "xml";
49:
50: /**
51: * The output method type for HTML documents: <tt>html</tt>.
52: */
53: public static final String HTML = "html";
54:
55: /**
56: * The output method for XHTML documents,
57: * this method type is not currently supported: <tt>xhtml</tt>.
58: */
59: public static final String XHTML = "xhtml";
60:
61: /**
62: * The output method type for text documents: <tt>text</tt>.
63: */
64: public static final String TEXT = "text";
65:
66: /**
67: * The "internal" method, just used when no method is
68: * specified in the style sheet, and a serializer of this type wraps either an
69: * XML or HTML type (depending on the first tag in the output being html or
70: * not)
71: */
72: public static final String UNKNOWN = "";
73: }
|