001: /*
002: * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: * Free SoftwareFoundation, Inc.
023: * 59 Temple Place, Suite 330
024: * Boston, MA 02111-1307 USA
025: *
026: * @author Scott Ferguson
027: */
028:
029: package com.caucho.xsl;
030:
031: import java.util.ArrayList;
032:
033: /**
034: * Encapsulates the xsl:output attributes.
035: *
036: * @since Resin 1.2
037: */
038: public class OutputFormat {
039: private String method = null;
040: private String encoding = null;
041: private String mediaType = null;
042: private String indent = null;
043: private String version = null;
044: private String omitDeclaration = null;
045: private String standalone = null;
046: private String systemId = null;
047: private String publicId = null;
048: private ArrayList cdataSectionElements;
049:
050: /**
051: * Returns the output method: xml, html, or text.
052: */
053: public String getMethod() {
054: return method;
055: }
056:
057: /**
058: * Sets the output method: xml, html, or text.
059: */
060: public void setMethod(String method) {
061: this .method = method;
062: }
063:
064: /**
065: * Returns the output version, e.g. 1.0 for XML or 3.2 for HTML.
066: */
067: public String getVersion() {
068: return version;
069: }
070:
071: /**
072: * Sets the output version, e.g. 1.0 for XML or 3.2 for HTML.
073: */
074: public void setVersion(String version) {
075: this .version = version;
076: }
077:
078: /**
079: * Returns "true" if the output declaration should be omitted.
080: * A null value means that the XML printer may use its own heuristics
081: * to decide.
082: */
083: public String getOmitDeclaration() {
084: return omitDeclaration;
085: }
086:
087: /**
088: * Set to "true" if the output declaration should be omitted.
089: */
090: public void setOmitDeclaration(String omitDeclaration) {
091: this .omitDeclaration = omitDeclaration;
092: }
093:
094: public void setStandalone(String standalone) {
095: this .standalone = standalone;
096: }
097:
098: public String getStandalone() {
099: return standalone;
100: }
101:
102: public void setSystemId(String systemId) {
103: this .systemId = systemId;
104: }
105:
106: public String getSystemId() {
107: return systemId;
108: }
109:
110: public void setPublicId(String publicId) {
111: this .publicId = publicId;
112: }
113:
114: public String getPublicId() {
115: return publicId;
116: }
117:
118: public ArrayList getCdataSectionElements() {
119: return cdataSectionElements;
120: }
121:
122: public void setCdataSectionElements(ArrayList list) {
123: cdataSectionElements = list;
124: }
125:
126: public String getEncoding() {
127: return encoding;
128: }
129:
130: public void setEncoding(String encoding) {
131: this .encoding = encoding;
132: }
133:
134: public String getMediaType() {
135: return mediaType;
136: }
137:
138: public void setMediaType(String mediaType) {
139: this .mediaType = mediaType;
140: }
141:
142: public String getIndent() {
143: return indent;
144: }
145:
146: public void setIndent(String indent) {
147: this.indent = indent;
148: }
149: }
|