View Javadoc

1   package org.apache.maven.hibernate.jelly;
2   
3   /* ====================================================================
4    *   Copyright 2001-2004 The Apache Software Foundation.
5    *
6    *   Licensed under the Apache License, Version 2.0 (the "License");
7    *   you may not use this file except in compliance with the License.
8    *   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, software
13   *   distributed under the License is distributed on an "AS IS" BASIS,
14   *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   *   See the License for the specific language governing permissions and
16   *   limitations under the License.
17   * ====================================================================
18   */
19  
20  import org.apache.commons.jelly.*;
21  import org.apache.maven.hibernate.beans.MappingsAggregatorBean;
22  
23  public class AggregateMappingsTag extends TagSupport
24  {
25  
26  	private MappingsAggregatorBean bean = new MappingsAggregatorBean();
27  	
28      protected void execute()
29          throws JellyTagException
30      {
31          try
32          {
33              bean.execute();
34          }
35          catch(Exception e)
36          {
37              String msg = " Mapping aggreagtion failed: " + e.getMessage();
38              throw new JellyTagException(msg, e);
39          }
40      }
41  
42      public void doTag(XMLOutput arg0)
43          throws JellyTagException
44      {
45          execute();
46      }
47  
48      public String toString()
49      {
50          return bean.toString();
51      }
52  
53      public void setExcludes(String string)
54      {
55          bean.setExcludes(string);
56      }
57  
58      public void setIncludes(String string)
59      {
60          bean.setIncludes(string);
61      }
62  
63      public String getExcludes()
64      {
65          return bean.getExcludes();
66      }
67  
68      public String getIncludes()
69      {
70          return bean.getIncludes();
71      }
72  
73      public String getBasedir()
74      {
75          return bean.getBasedir();
76      }
77  
78      public void setBasedir(String string)
79      {
80          bean.setBasedir(string);
81      }
82  
83      public String getAggregateOutputFile()
84      {
85          return bean.getAggregateOutputFile();
86      }
87  
88      public void setAggregateOutputFile(String aggregateOutputFile)
89      {
90          bean.setAggregateOutputFile(aggregateOutputFile);
91      }
92      
93  }