001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the "License"); 007 * you may not use this file except in compliance with the License. 008 * You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 /* 019 * $Id: Method.java 468654 2006-10-28 07:09:23Z minchau $ 020 */ 021 package org.apache.xml.serializer; 022 023 /** 024 * This class defines the constants which are the names of the four default 025 * output methods. 026 * <p> 027 * The default output methods defined are: 028 * <ul> 029 * <li>XML 030 * <li>TEXT 031 * <li>HTML 032 * </ul> 033 * These constants can be used as an argument to the 034 * OutputPropertiesFactory.getDefaultMethodProperties() method to get 035 * the properties to create a serializer. 036 * 037 * This class is a public API. 038 * 039 * @see OutputPropertiesFactory 040 * @see Serializer 041 * 042 * @xsl.usage general 043 */ 044 public final class Method 045 { 046 /** 047 * A private constructor to prevent the creation of such a class. 048 */ 049 private Method() { 050 051 } 052 053 /** 054 * The output method type for XML documents: <tt>xml</tt>. 055 */ 056 public static final String XML = "xml"; 057 058 /** 059 * The output method type for HTML documents: <tt>html</tt>. 060 */ 061 public static final String HTML = "html"; 062 063 /** 064 * The output method for XHTML documents: <tt>xhtml</tt>. 065 * <p> 066 * This method type is not currently supported. 067 */ 068 public static final String XHTML = "xhtml"; 069 070 /** 071 * The output method type for text documents: <tt>text</tt>. 072 */ 073 public static final String TEXT = "text"; 074 075 /** 076 * The "internal" method, just used when no method is 077 * specified in the style sheet, and a serializer of this type wraps either an 078 * XML or HTML type (depending on the first tag in the output being html or 079 * not) 080 */ 081 public static final String UNKNOWN = ""; 082 }