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.maven.hibernate.beans.SchemaExportBean;
21  
22  /**
23   * 
24   * Jelly tag which delagates all calls to {@link SchemaExportBean}
25   * 
26   * @author <a href="michal.maczka@dimatics.com">Michal Maczka</a> 
27   * @version $Id: SchemaExportTag.java 170200 2005-05-15 06:24:19Z brett $
28   */
29  public class SchemaExportTag extends SchemaTagBase
30  {
31       
32     public SchemaExportTag() {
33       super( new SchemaExportBean() );
34     }
35     
36     public void setDrop(boolean b)
37     {
38        ((SchemaExportBean) bean).setDrop(b);
39     }
40     
41     public void setOutputFile(String string)
42     {
43        bean.setOutputFile(string);
44     }
45  
46     public void setDelimiter(String delimiter)
47     {
48        bean.setDelimiter(delimiter);
49     }
50  
51     public boolean isDrop()
52     {
53        return ((SchemaExportBean) bean).isDrop();
54     }
55  
56     public String getOutputFile()
57     {
58        return bean.getOutputFile();
59     }
60     
61     public String getDelimiter()
62     {
63        return bean.getDelimiter();
64     }
65  
66  }