View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.myfaces.custom.transform;
20  
21  import java.io.InputStream;
22  
23  /**
24   * Simple class to be used as a ManagedBean in testing.
25   *
26   * @author Sean Schofield
27   */
28  public class ManagedFoo
29  {
30      private String content;
31      private String stylesheet;
32      private String contentLocation;
33      private String stylesheetLocation;
34      private InputStream contentStream;
35      private InputStream styleStream;
36  
37      public String getContent()
38      {
39          return content;
40      }
41  
42      public void setContent(String content)
43      {
44          this.content = content;
45      }
46  
47      public String getStylesheet()
48      {
49          return stylesheet;
50      }
51  
52      public void setStylesheet(String stylesheet)
53      {
54          this.stylesheet = stylesheet;
55      }
56  
57      public String getContentLocation()
58      {
59          return contentLocation;
60      }
61  
62      public void setContentLocation(String contentLocation)
63      {
64          this.contentLocation = contentLocation;
65      }
66  
67      public String getStylesheetLocation()
68      {
69          return stylesheetLocation;
70      }
71  
72      public void setStylesheetLocation(String stylesheetLocation)
73      {
74          this.stylesheetLocation = stylesheetLocation;
75      }
76  
77      public InputStream getContentStream()
78      {
79          return contentStream;
80      }
81  
82      public void setContentStream(InputStream contentStream)
83      {
84          this.contentStream = contentStream;
85      }
86  
87      public InputStream getStyleStream()
88      {
89          return styleStream;
90      }
91  
92      public void setStyleStream(InputStream styleStream)
93      {
94          this.styleStream = styleStream;
95      }
96  }