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 /* 17 * $Id: Method.java,v 1.2 2004/02/17 04:18:19 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 * Four default output methods are defined: XML, HTML, XHTML and TEXT. 26 * Serializers may support additional output methods. The names of 27 * these output methods should be encoded as <tt>namespace:local</tt>. 28 * 29 * @version Alpha 30 * @author <a HREF="mailto:arkin@exoffice.com">Assaf Arkin</a> 31 */ 32 public final class Method 33 { 34 35 /** 36 * The output method for XML documents: <tt>xml</tt>. 37 */ 38 public static final String XML = "xml"; 39 40 /** 41 * The output method for HTML documents: <tt>html</tt>. 42 */ 43 public static final String HTML = "html"; 44 45 /** 46 * The output method for XHTML documents: <tt>xhtml</tt>. 47 */ 48 public static final String XHTML = "xhtml"; 49 50 /** 51 * The output method for text documents: <tt>text</tt>. 52 */ 53 public static final String TEXT = "text"; 54 55 /** 56 * The "internal" method, just used when no method is 57 * specified in the style sheet, and a serializer of this type wraps either an 58 * XML or HTML type (depending on the first tag in the output being html or 59 * not) 60 */ 61 public static final String UNKNOWN = ""; 62 } 63