KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > forms > binding > ImportJXPathBinding


1 /*
2  * Copyright 1999-2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.forms.binding;
17
18 import org.apache.cocoon.forms.formmodel.Widget;
19 import org.apache.commons.jxpath.JXPathContext;
20
21 /**
22  * Dummy class cause binding doesn't accept null results from binding builders
23  *
24  * @version $Id: ImportJXPathBinding.java 289538 2005-09-16 13:46:22Z sylvain $
25  */

26 public class ImportJXPathBinding extends JXPathBindingBase {
27
28     public ImportJXPathBinding() {
29         super(JXPathBindingBuilderBase.CommonAttributes.DEFAULT);
30     }
31     
32     /* (non-Javadoc)
33      * @see org.apache.cocoon.forms.binding.JXPathBindingBase#doLoad(org.apache.cocoon.forms.formmodel.Widget, org.apache.commons.jxpath.JXPathContext)
34      */

35     public void doLoad(Widget frmModel, JXPathContext jxpc)
36             throws BindingException {
37         // dont do anything
38

39     }
40
41     /* (non-Javadoc)
42      * @see org.apache.cocoon.forms.binding.JXPathBindingBase#doSave(org.apache.cocoon.forms.formmodel.Widget, org.apache.commons.jxpath.JXPathContext)
43      */

44     public void doSave(Widget frmModel, JXPathContext jxpc)
45             throws BindingException {
46 // dont do anything
47

48     }
49
50 }
51
Popular Tags