KickJava   Java API By Example, From Geeks To Geeks.

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


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 FunctionEvaluationValue extends FunctionValue {
15   protected XmlComponentValue arg1Value;
16   protected XmlComponentValue arg2Value;
17
18   public FunctionEvaluationValue(FunctionTemplate functionTemplate, XmlDocument xmlDocument) {
19     this.functionTemplate = functionTemplate;
20     arg1Value = functionTemplate.arg1Template.createXmlComponentValue(xmlDocument);
21     if (functionTemplate.arg2Template != null) {
22       arg2Value = functionTemplate.arg2Template.createXmlComponentValue(xmlDocument);
23     }
24     xmlDocument.hasXmlComponentValue.put(functionTemplate, this); //CHX
25
}
26
27 }
28
Popular Tags