KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > caucho > xsl > OutputFormat


1 /*
2  * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
3  *
4  * This file is part of Resin(R) Open Source
5  *
6  * Each copy or derived work must preserve the copyright notice and this
7  * notice unmodified.
8  *
9  * Resin Open Source is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Resin Open Source is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
17  * of NON-INFRINGEMENT. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Resin Open Source; if not, write to the
22  * Free SoftwareFoundation, Inc.
23  * 59 Temple Place, Suite 330
24  * Boston, MA 02111-1307 USA
25  *
26  * @author Scott Ferguson
27  */

28
29 package com.caucho.xsl;
30
31 import java.util.ArrayList JavaDoc;
32
33 /**
34  * Encapsulates the xsl:output attributes.
35  *
36  * @since Resin 1.2
37  */

38 public class OutputFormat {
39   private String JavaDoc method = null;
40   private String JavaDoc encoding = null;
41   private String JavaDoc mediaType = null;
42   private String JavaDoc indent = null;
43   private String JavaDoc version = null;
44   private String JavaDoc omitDeclaration = null;
45   private String JavaDoc standalone = null;
46   private String JavaDoc systemId = null;
47   private String JavaDoc publicId = null;
48   private ArrayList JavaDoc cdataSectionElements;
49
50   /**
51    * Returns the output method: xml, html, or text.
52    */

53   public String JavaDoc getMethod()
54   {
55     return method;
56   }
57
58   /**
59    * Sets the output method: xml, html, or text.
60    */

61   public void setMethod(String JavaDoc method)
62   {
63     this.method = method;
64   }
65
66   /**
67    * Returns the output version, e.g. 1.0 for XML or 3.2 for HTML.
68    */

69   public String JavaDoc getVersion()
70   {
71     return version;
72   }
73
74   /**
75    * Sets the output version, e.g. 1.0 for XML or 3.2 for HTML.
76    */

77   public void setVersion(String JavaDoc version)
78   {
79     this.version = version;
80   }
81
82   /**
83    * Returns "true" if the output declaration should be omitted.
84    * A null value means that the XML printer may use its own heuristics
85    * to decide.
86    */

87   public String JavaDoc getOmitDeclaration()
88   {
89     return omitDeclaration;
90   }
91
92   /**
93    * Set to "true" if the output declaration should be omitted.
94    */

95   public void setOmitDeclaration(String JavaDoc omitDeclaration)
96   {
97     this.omitDeclaration = omitDeclaration;
98   }
99
100   public void setStandalone(String JavaDoc standalone)
101   {
102     this.standalone = standalone;
103   }
104
105   public String JavaDoc getStandalone()
106   {
107     return standalone;
108   }
109
110   public void setSystemId(String JavaDoc systemId)
111   {
112     this.systemId = systemId;
113   }
114
115   public String JavaDoc getSystemId()
116   {
117     return systemId;
118   }
119
120   public void setPublicId(String JavaDoc publicId)
121   {
122     this.publicId = publicId;
123   }
124
125   public String JavaDoc getPublicId()
126   {
127     return publicId;
128   }
129
130   public ArrayList JavaDoc getCdataSectionElements()
131   {
132     return cdataSectionElements;
133   }
134
135   public void setCdataSectionElements(ArrayList JavaDoc list)
136   {
137     cdataSectionElements = list;
138   }
139
140   public String JavaDoc getEncoding()
141   {
142     return encoding;
143   }
144
145   public void setEncoding(String JavaDoc encoding)
146   {
147     this.encoding = encoding;
148   }
149
150   public String JavaDoc getMediaType()
151   {
152     return mediaType;
153   }
154
155   public void setMediaType(String JavaDoc mediaType)
156   {
157     this.mediaType = mediaType;
158   }
159
160   public String JavaDoc getIndent()
161   {
162     return indent;
163   }
164
165   public void setIndent(String JavaDoc indent)
166   {
167     this.indent = indent;
168   }
169 }
170     
171
Popular Tags