001: /*
002: * Copyright 2004 Outerthought bvba and Schaubroeck nv
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.outerj.daisy.tools.importexport.export.config;
017:
018: import org.outerj.daisy.tools.importexport.config.SchemaCustomizer;
019: import org.outerj.daisy.tools.importexport.config.BasicSchemaCustomizer;
020:
021: /**
022: * Options that influence the export.
023: *
024: * Descriptions of these options can be found in the Daisy documentation.
025: */
026: public class ExportOptions {
027: private SchemaCustomizer schemaCustomizer = new BasicSchemaCustomizer();
028: private DocumentExportCustomizer documentExportCustomizer = new BasicCustomizer();
029: private boolean exportLastVersion = false;
030: private boolean failOnError = false;
031: private boolean includeListOfRetiredDocuments = true;
032: private boolean exportDocumentOwners = false;
033: private boolean stackTracesOfFailures = false;
034: private boolean linkExtractionEnabled = true;
035: private boolean exportVersionState = true;
036: private boolean exportReferenceLanguage = true;
037:
038: public SchemaCustomizer getSchemaCustomizer() {
039: return schemaCustomizer;
040: }
041:
042: public void setSchemaCustomizer(SchemaCustomizer schemaCustomizer) {
043: if (schemaCustomizer == null)
044: throw new IllegalArgumentException(
045: "Null argument: schemaCustomizer");
046: this .schemaCustomizer = schemaCustomizer;
047: }
048:
049: public DocumentExportCustomizer getDocumentExportCustomizer() {
050: return documentExportCustomizer;
051: }
052:
053: public void setDocumentExportCustomizer(
054: DocumentExportCustomizer documentExportCustomizer) {
055: if (documentExportCustomizer == null)
056: throw new IllegalArgumentException(
057: "Null argument: documentExportCustomizer");
058: this .documentExportCustomizer = documentExportCustomizer;
059: }
060:
061: public boolean getExportLastVersion() {
062: return exportLastVersion;
063: }
064:
065: public void setExportLastVersion(boolean exportLastVersion) {
066: this .exportLastVersion = exportLastVersion;
067: }
068:
069: public boolean getFailOnError() {
070: return failOnError;
071: }
072:
073: public void setFailOnError(boolean failOnError) {
074: this .failOnError = failOnError;
075: }
076:
077: public boolean getIncludeListOfRetiredDocuments() {
078: return includeListOfRetiredDocuments;
079: }
080:
081: public void setIncludeListOfRetiredDocuments(
082: boolean includeListOfRetiredDocuments) {
083: this .includeListOfRetiredDocuments = includeListOfRetiredDocuments;
084: }
085:
086: public boolean getExportDocumentOwners() {
087: return exportDocumentOwners;
088: }
089:
090: public void setExportDocumentOwners(boolean exportDocumentOwners) {
091: this .exportDocumentOwners = exportDocumentOwners;
092: }
093:
094: public boolean getStackTracesOfFailures() {
095: return stackTracesOfFailures;
096: }
097:
098: public void setStackTracesOfFailures(boolean stackTracesOfFailures) {
099: this .stackTracesOfFailures = stackTracesOfFailures;
100: }
101:
102: public boolean getLinkExtractionEnabled() {
103: return linkExtractionEnabled;
104: }
105:
106: public void setLinkExtractionEnabled(boolean linkExtractionEnabled) {
107: this .linkExtractionEnabled = linkExtractionEnabled;
108: }
109:
110: public boolean getExportVersionState() {
111: return exportVersionState;
112: }
113:
114: public void setExportVersionState(boolean exportVersionState) {
115: this .exportVersionState = exportVersionState;
116: }
117:
118: public boolean getExportReferenceLanguage() {
119: return exportReferenceLanguage;
120: }
121:
122: public void setExportReferenceLanguage(
123: boolean exportReferenceLanguage) {
124: this.exportReferenceLanguage = exportReferenceLanguage;
125: }
126: }
|