| /******************************************************************************* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License") throws Exception ; you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| *******************************************************************************/ |
| package org.apache.ofbiz.widget.model; |
| |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.And; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.IfCompare; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.IfCompareField; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.IfEmpty; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.IfEntityPermission; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.IfHasPermission; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.IfRegexp; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.IfServicePermission; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.IfValidateMethod; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.Not; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.Or; |
| import org.apache.ofbiz.widget.model.AbstractModelCondition.Xor; |
| import org.apache.ofbiz.widget.model.ModelScreenCondition.IfEmptySection; |
| |
| /** |
| * A <code>ModelCondition</code> visitor. |
| */ |
| public interface ModelConditionVisitor { |
| |
| void visit(And and) throws Exception; |
| |
| void visit(IfCompare ifCompare) throws Exception; |
| |
| void visit(IfCompareField ifCompareField) throws Exception; |
| |
| void visit(IfEmpty ifEmpty) throws Exception; |
| |
| void visit(IfEntityPermission ifEntityPermission) throws Exception; |
| |
| void visit(IfHasPermission ifHasPermission) throws Exception; |
| |
| void visit(IfRegexp ifRegexp) throws Exception; |
| |
| void visit(IfServicePermission ifServicePermission) throws Exception; |
| |
| void visit(IfValidateMethod ifValidateMethod) throws Exception; |
| |
| void visit(Not not) throws Exception; |
| |
| void visit(Or or) throws Exception; |
| |
| void visit(Xor xor) throws Exception; |
| |
| void visit(ModelMenuCondition modelMenuCondition) throws Exception; |
| |
| void visit(ModelTreeCondition modelTreeCondition) throws Exception; |
| |
| void visit(IfEmptySection ifEmptySection) throws Exception; |
| } |