src/com/sun/org/apache/xml/internal/serializer/XSLOutputAttributes.java

Print this page


   1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Copyright 2003-2004 The Apache Software Foundation.
   7  *
   8  * Licensed under the Apache License, Version 2.0 (the "License");


   9  * you may not use this file except in compliance with the License.
  10  * You may obtain a copy of the License at
  11  *
  12  *     http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 /*
  21  * $Id: XSLOutputAttributes.java,v 1.2.4.1 2005/09/15 08:15:32 suresh_emailid Exp $
  22  */
  23 package com.sun.org.apache.xml.internal.serializer;
  24 
  25 import java.util.Vector;
  26 
  27 /**
  28  * This interface has methods associated with the XSLT xsl:output attribues
  29  * specified in the stylesheet that effect the format of the document output.
  30  *
  31  * In an XSLT stylesheet these attributes appear for example as:
  32  * <pre>
  33  * <xsl:output method="xml" omit-xml-declaration="no" indent="yes"/>
  34  * </pre>
  35  * The xsl:output attributes covered in this interface are:
  36  * <pre>
  37  * version
  38  * encoding
  39  * omit-xml-declarations
  40  * standalone
  41  * doctype-public
  42  * doctype-system
  43  * cdata-section-elements
  44  * indent
  45  * media-type


  88     /**
  89      * @return the mediatype the media-type or MIME type associated with the
  90      * output document.
  91      */
  92     public String getMediaType();
  93     /**
  94      * @return true if the XML declaration is to be omitted from the output
  95      * document.
  96      */
  97     public boolean getOmitXMLDeclaration();
  98     /**
  99       * @return a value of "yes" if the <code>standalone</code> delaration is to
 100       * be included in the output document.
 101       */
 102     public String getStandalone();
 103     /**
 104      * @return the version of the output format.
 105      */
 106     public String getVersion();
 107 
 108 
 109 
 110 
 111 
 112 
 113     /**
 114      * Sets the value coming from the xsl:output cdata-section-elements
 115      * stylesheet property.
 116      *
 117      * This sets the elements whose text elements are to be output as CDATA
 118      * sections.
 119      * @param URI_and_localNames pairs of namespace URI and local names that
 120      * identify elements whose text elements are to be output as CDATA sections.
 121      * The namespace of the local element must be the given URI to match. The
 122      * qName is not given because the prefix does not matter, only the namespace
 123      * URI to which that prefix would map matters, so the prefix itself is not
 124      * relevant in specifying which elements have their text to be output as
 125      * CDATA sections.
 126      */
 127     public void setCdataSectionElements(Vector URI_and_localNames);
 128 
 129     /** Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties
 130      * @param system the system identifier to be used in the DOCTYPE declaration
 131      * in the output document.
 132      * @param pub the public identifier to be used in the DOCTYPE declaration in
 133      * the output document.
 134      */
 135     public void setDoctype(String system, String pub);
 136 
 137     /** Set the value coming from the xsl:output doctype-public stylesheet attribute.
 138       * @param doctype the public identifier to be used in the DOCTYPE
 139       * declaration in the output document.
 140       */
 141     public void setDoctypePublic(String doctype);
 142     /** Set the value coming from the xsl:output doctype-system stylesheet attribute.
 143       * @param doctype the system identifier to be used in the DOCTYPE
 144       * declaration in the output document.
 145       */
 146     public void setDoctypeSystem(String doctype);
 147     /**


 164     public void setMediaType(String mediatype);
 165     /**
 166      * Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute
 167      * @param b true if the XML declaration is to be omitted from the output
 168      * document.
 169      */
 170     public void setOmitXMLDeclaration(boolean b);
 171     /**
 172      * Sets the value coming from the xsl:output standalone stylesheet attribute.
 173      * @param standalone a value of "yes" indicates that the
 174      * <code>standalone</code> delaration is to be included in the output
 175      * document.
 176      */
 177     public void setStandalone(String standalone);
 178     /**
 179      * Sets the value coming from the xsl:output version attribute.
 180      * @param version the version of the output format.
 181      */
 182     public void setVersion(String version);
 183 






















































 184 }
   1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one
   7  * or more contributor license agreements. See the NOTICE file
   8  * distributed with this work for additional information
   9  * regarding copyright ownership. The ASF licenses this file
  10  * to you under the Apache License, Version 2.0 (the  "License");
  11  * you may not use this file except in compliance with the License.
  12  * You may obtain a copy of the License at
  13  *
  14  *     http://www.apache.org/licenses/LICENSE-2.0
  15  *
  16  * Unless required by applicable law or agreed to in writing, software
  17  * distributed under the License is distributed on an "AS IS" BASIS,
  18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19  * See the License for the specific language governing permissions and
  20  * limitations under the License.
  21  */
  22 /*
  23  * $Id: XSLOutputAttributes.java,v 1.2.4.1 2005/09/15 08:15:32 suresh_emailid Exp $
  24  */
  25 package com.sun.org.apache.xml.internal.serializer;
  26 
  27 import java.util.ArrayList;
  28 
  29 /**
  30  * This interface has methods associated with the XSLT xsl:output attribues
  31  * specified in the stylesheet that effect the format of the document output.
  32  *
  33  * In an XSLT stylesheet these attributes appear for example as:
  34  * <pre>
  35  * <xsl:output method="xml" omit-xml-declaration="no" indent="yes"/>
  36  * </pre>
  37  * The xsl:output attributes covered in this interface are:
  38  * <pre>
  39  * version
  40  * encoding
  41  * omit-xml-declarations
  42  * standalone
  43  * doctype-public
  44  * doctype-system
  45  * cdata-section-elements
  46  * indent
  47  * media-type


  90     /**
  91      * @return the mediatype the media-type or MIME type associated with the
  92      * output document.
  93      */
  94     public String getMediaType();
  95     /**
  96      * @return true if the XML declaration is to be omitted from the output
  97      * document.
  98      */
  99     public boolean getOmitXMLDeclaration();
 100     /**
 101       * @return a value of "yes" if the <code>standalone</code> delaration is to
 102       * be included in the output document.
 103       */
 104     public String getStandalone();
 105     /**
 106      * @return the version of the output format.
 107      */
 108     public String getVersion();
 109 





 110     /**
 111      * Sets the value coming from the xsl:output cdata-section-elements
 112      * stylesheet property.
 113      *
 114      * This sets the elements whose text elements are to be output as CDATA
 115      * sections.
 116      * @param URI_and_localNames pairs of namespace URI and local names that
 117      * identify elements whose text elements are to be output as CDATA sections.
 118      * The namespace of the local element must be the given URI to match. The
 119      * qName is not given because the prefix does not matter, only the namespace
 120      * URI to which that prefix would map matters, so the prefix itself is not
 121      * relevant in specifying which elements have their text to be output as
 122      * CDATA sections.
 123      */
 124     public void setCdataSectionElements(ArrayList<String> URI_and_localNames);
 125     
 126     /** Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties
 127      * @param system the system identifier to be used in the DOCTYPE declaration
 128      * in the output document.
 129      * @param pub the public identifier to be used in the DOCTYPE declaration in
 130      * the output document.
 131      */
 132     public void setDoctype(String system, String pub);
 133 
 134     /** Set the value coming from the xsl:output doctype-public stylesheet attribute.
 135       * @param doctype the public identifier to be used in the DOCTYPE
 136       * declaration in the output document.
 137       */
 138     public void setDoctypePublic(String doctype);
 139     /** Set the value coming from the xsl:output doctype-system stylesheet attribute.
 140       * @param doctype the system identifier to be used in the DOCTYPE
 141       * declaration in the output document.
 142       */
 143     public void setDoctypeSystem(String doctype);
 144     /**


 161     public void setMediaType(String mediatype);
 162     /**
 163      * Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute
 164      * @param b true if the XML declaration is to be omitted from the output
 165      * document.
 166      */
 167     public void setOmitXMLDeclaration(boolean b);
 168     /**
 169      * Sets the value coming from the xsl:output standalone stylesheet attribute.
 170      * @param standalone a value of "yes" indicates that the
 171      * <code>standalone</code> delaration is to be included in the output
 172      * document.
 173      */
 174     public void setStandalone(String standalone);
 175     /**
 176      * Sets the value coming from the xsl:output version attribute.
 177      * @param version the version of the output format.
 178      */
 179     public void setVersion(String version);
 180 
 181     /**
 182      * Get the value for a property that affects seraialization,
 183      * if a property was set return that value, otherwise return
 184      * the default value, otherwise return null.
 185      * @param name The name of the property, which is just the local name
 186      * if it is in no namespace, but is the URI in curly braces followed by
 187      * the local name if it is in a namespace, for example:
 188      * <ul>
 189      * <li> "encoding"
 190      * <li> "method"
 191      * <li> "{http://xml.apache.org/xalan}indent-amount"
 192      * <li> "{http://xml.apache.org/xalan}line-separator"
 193      * </ul>
 194      * @return The value of the parameter
 195      */
 196     public String getOutputProperty(String name);
 197     /**
 198      * Get the default value for a property that affects seraialization,
 199      * or null if there is none. It is possible that a non-default value
 200      * was set for the property, however the value returned by this method
 201      * is unaffected by any non-default settings.
 202      * @param name The name of the property.
 203      * @return The default value of the parameter, or null if there is no default value.
 204      */    
 205     public String getOutputPropertyDefault(String name);
 206     /**
 207      * Set the non-default value for a property that affects seraialization.
 208      * @param name The name of the property, which is just the local name
 209      * if it is in no namespace, but is the URI in curly braces followed by
 210      * the local name if it is in a namespace, for example:
 211      * <ul>
 212      * <li> "encoding"
 213      * <li> "method"
 214      * <li> "{http://xml.apache.org/xalan}indent-amount"
 215      * <li> "{http://xml.apache.org/xalan}line-separator"
 216      * </ul>
 217      * @val The non-default value of the parameter
 218      */    
 219     public void   setOutputProperty(String name, String val);
 220     
 221     /**
 222      * Set the default value for a property that affects seraialization.
 223      * @param name The name of the property, which is just the local name
 224      * if it is in no namespace, but is the URI in curly braces followed by
 225      * the local name if it is in a namespace, for example:
 226      * <ul>
 227      * <li> "encoding"
 228      * <li> "method"
 229      * <li> "{http://xml.apache.org/xalan}indent-amount"
 230      * <li> "{http://xml.apache.org/xalan}line-separator"
 231      * </ul>
 232      * @val The default value of the parameter
 233      */ 
 234     public void   setOutputPropertyDefault(String name, String val);
 235 }