KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openbravo > xmlEngine > FunctionValue


1 /*
2  ************************************************************************************
3  * Copyright (C) 2001-2006 Openbravo S.L.
4  * Licensed under the Apache Software License version 2.0
5  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6  * Unless required by applicable law or agreed to in writing, software distributed
7  * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
8  * CONDITIONS OF ANY KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations under the License.
10  ************************************************************************************
11 */

12 package org.openbravo.xmlEngine;
13
14 class FunctionValue implements XmlComponentValue {
15   FunctionTemplate functionTemplate;
16   FieldValue fieldValue;
17
18   public FunctionValue() {
19   }
20
21   public FunctionValue(FunctionTemplate functionTemplate, XmlDocument xmlDocument) {
22     this.functionTemplate = functionTemplate;
23     fieldValue = functionTemplate.fieldTemplate.createFieldValue(xmlDocument);
24     xmlDocument.hasXmlComponentValue.put(functionTemplate, this); //CHX
25
}
26
27   public String JavaDoc print() {return null;}
28
29   public void acumulate() {}
30
31   public void init() {}
32
33   public String JavaDoc printPrevious() {
34     return print();
35   }
36
37   public String JavaDoc printSimple() {
38     return print();
39   }
40
41   public String JavaDoc printPreviousSimple() {
42     return printPrevious();
43   }
44
45 }
46
Popular Tags