KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > event > PipelineConfiguration


1 package net.sf.saxon.event;
2
3 import net.sf.saxon.Configuration;
4 import net.sf.saxon.Controller;
5
6 import javax.xml.transform.ErrorListener JavaDoc;
7 import javax.xml.transform.URIResolver JavaDoc;
8
9 /**
10  * A PipelineConfiguration sets options that apply to all the operations in a pipeline.
11  * Unlike the global Configuration, these options are always local to a process.
12  */

13
14 public class PipelineConfiguration {
15
16     private Configuration config;
17     private LocationProvider locationProvider;
18     private ErrorListener JavaDoc errorListener;
19     private URIResolver JavaDoc uriResolver;
20     private Controller controller;
21     private boolean isSerializing;
22
23     public PipelineConfiguration() {
24     }
25
26     public PipelineConfiguration(PipelineConfiguration p) {
27         config = p.config;
28         locationProvider = p.locationProvider;
29         errorListener = p.errorListener;
30         uriResolver = p.uriResolver;
31         controller = p.controller;
32         isSerializing = p.isSerializing;
33     }
34
35     public Configuration getConfiguration() {
36         return config;
37     }
38
39     public void setConfiguration(Configuration config) {
40         this.config = config;
41     }
42
43     public LocationProvider getLocationProvider() {
44         return locationProvider;
45     }
46
47     public void setLocationProvider(LocationProvider locationProvider) {
48         this.locationProvider = locationProvider;
49     }
50
51     public ErrorListener JavaDoc getErrorListener() {
52         return errorListener;
53     }
54
55     public void setErrorListener(ErrorListener JavaDoc errorListener) {
56         this.errorListener = errorListener;
57     }
58
59     public URIResolver JavaDoc getURIResolver() {
60         return uriResolver;
61     }
62
63     public void setURIResolver(URIResolver JavaDoc uriResolver) {
64         this.uriResolver = uriResolver;
65     }
66
67     public void setController(Controller controller) {
68         this.controller = controller;
69     }
70
71     public void setSerializing(boolean isSerializing) {
72         this.isSerializing = isSerializing;
73     }
74
75     public boolean isSerializing() {
76         return isSerializing;
77     }
78
79     /**
80      * Get the controller associated with this pipelineConfiguration
81      *
82      * @return the controller if it is known; otherwise null.
83      */

84
85     public Controller getController() {
86         return controller;
87     }
88
89 }
90
91 //
92
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
93
// you may not use this file except in compliance with the License. You may obtain a copy of the
94
// License at http://www.mozilla.org/MPL/
95
//
96
// Software distributed under the License is distributed on an "AS IS" basis,
97
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
98
// See the License for the specific language governing rights and limitations under the License.
99
//
100
// The Original Code is: all this file.
101
//
102
// The Initial Developer of the Original Code is Michael H. Kay
103
//
104
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
105
//
106
// Contributor(s): none.
107
//
108

109
Popular Tags