Home | History | Annotate | Download | only in serializer
      1 /*
      2  * Licensed to the Apache Software Foundation (ASF) under one
      3  * or more contributor license agreements. See the NOTICE file
      4  * distributed with this work for additional information
      5  * regarding copyright ownership. The ASF licenses this file
      6  * to you under the Apache License, Version 2.0 (the  "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *     http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 /*
     19  * $Id: Method.java 468654 2006-10-28 07:09:23Z minchau $
     20  */
     21 package org.apache.xml.serializer;
     22 
     23 /**
     24  * This class defines the constants which are the names of the four default
     25  * output methods.
     26  * <p>
     27  * The default output methods defined are:
     28  * <ul>
     29  * <li>XML
     30  * <li>TEXT
     31  * <li>HTML
     32  * </ul>
     33  * These constants can be used as an argument to the
     34  * OutputPropertiesFactory.getDefaultMethodProperties() method to get
     35  * the properties to create a serializer.
     36  *
     37  * This class is a public API.
     38  *
     39  * @see OutputPropertiesFactory
     40  * @see Serializer
     41  *
     42  * @xsl.usage general
     43  */
     44 public final class Method
     45 {
     46     /**
     47      * A private constructor to prevent the creation of such a class.
     48      */
     49     private Method() {
     50 
     51     }
     52 
     53   /**
     54    * The output method type for XML documents: <tt>xml</tt>.
     55    */
     56   public static final String XML = "xml";
     57 
     58   /**
     59    * The output method type for HTML documents: <tt>html</tt>.
     60    */
     61   public static final String HTML = "html";
     62 
     63   /**
     64    * The output method for XHTML documents: <tt>xhtml</tt>.
     65    * <p>
     66    * This method type is not currently supported.
     67    */
     68   public static final String XHTML = "xhtml";
     69 
     70   /**
     71    * The output method type for text documents: <tt>text</tt>.
     72    */
     73   public static final String TEXT = "text";
     74 
     75   /**
     76    * The "internal" method, just used when no method is
     77    * specified in the style sheet, and a serializer of this type wraps either an
     78    * XML or HTML type (depending on the first tag in the output being html or
     79    * not)
     80    */
     81   public static final String UNKNOWN = "";
     82 }
     83