Package org.ofbiz.minilang.method.callops

Examples of org.ofbiz.minilang.method.callops.CallSimpleMethod


            } else if (methodOperation instanceof GetRelatedOne) {
                String relationName = ((GetRelatedOne) methodOperation).getRelationName();
                if (UtilValidate.isNotEmpty(relationName)) allEntityNames.add(relationName);

            } else if (methodOperation instanceof CallSimpleMethod) {
                CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                try {
                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(null);
                    if (calledMethod == null) {
                        Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                    } else {
                        if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
                            simpleMethodsVisited.add(calledMethod.getLocationAndName());
                            findEntityNamesUsed(calledMethod.methodOperations, allEntityNames, simpleMethodsVisited);
                        }
                    }
                } catch (MiniLangException e) {
                    Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
                }
            } else if (methodOperation instanceof Iterate) {
                findEntityNamesUsed(((Iterate) methodOperation).getSubOps(), allEntityNames, simpleMethodsVisited);
            } else if (methodOperation instanceof IterateMap) {
                findEntityNamesUsed(((IterateMap) methodOperation).getSubOps(), allEntityNames, simpleMethodsVisited);
View Full Code Here


            } else if (methodOperation instanceof SetServiceFields) {
                String svcName = ((SetServiceFields) methodOperation).getServiceName();
                if (UtilValidate.isNotEmpty(svcName)) allServiceNames.add(svcName);

            } else if (methodOperation instanceof CallSimpleMethod) {
                CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                try {
                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(methodOperations.getClass().getClassLoader());
                    if (calledMethod == null) {
                        Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                    } else {
                        if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
                            simpleMethodsVisited.add(calledMethod.getLocationAndName());
                            findServiceNamesCalled(calledMethod.methodOperations, allServiceNames, simpleMethodsVisited);
                        }
                    }
                } catch (MiniLangException e) {
                    Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
                }
            } else if (methodOperation instanceof Iterate) {
                findServiceNamesCalled(((Iterate) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
            } else if (methodOperation instanceof IterateMap) {
                findServiceNamesCalled(((IterateMap) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
View Full Code Here

            } else if (methodOperation instanceof SetServiceFields) {
                String svcName = ((SetServiceFields) methodOperation).getServiceName();
                if (UtilValidate.isNotEmpty(svcName)) allServiceNames.add(svcName);

            } else if (methodOperation instanceof CallSimpleMethod) {
                CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                try {
                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(methodOperations.getClass().getClassLoader());
                    if (calledMethod == null) {
                        Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                    } else {
                        if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
                            simpleMethodsVisited.add(calledMethod.getLocationAndName());
                            findServiceNamesCalled(calledMethod.methodOperations, allServiceNames, simpleMethodsVisited);
                        }
                    }
                } catch (MiniLangException e) {
                    Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
                }
            } else if (methodOperation instanceof Iterate) {
                findServiceNamesCalled(((Iterate) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
            } else if (methodOperation instanceof IterateMap) {
                findServiceNamesCalled(((IterateMap) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
View Full Code Here

            } else if (methodOperation instanceof GetRelatedOne) {
                String relationName = ((GetRelatedOne) methodOperation).getRelationName();
                if (UtilValidate.isNotEmpty(relationName)) allEntityNames.add(relationName);

            } else if (methodOperation instanceof CallSimpleMethod) {
                CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                try {
                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(null);
                    if (calledMethod == null) {
                        Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                    } else {
                        if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
                            simpleMethodsVisited.add(calledMethod.getLocationAndName());
                            findEntityNamesUsed(calledMethod.methodOperations, allEntityNames, simpleMethodsVisited);
                        }
                    }
                } catch (MiniLangException e) {
                    Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
                }
            } else if (methodOperation instanceof Iterate) {
                findEntityNamesUsed(((Iterate) methodOperation).getSubOps(), allEntityNames, simpleMethodsVisited);
            } else if (methodOperation instanceof IterateMap) {
                findEntityNamesUsed(((IterateMap) methodOperation).getSubOps(), allEntityNames, simpleMethodsVisited);
View Full Code Here

            } else if (methodOperation instanceof SetServiceFields) {
                String svcName = ((SetServiceFields) methodOperation).getServiceName();
                if (UtilValidate.isNotEmpty(svcName)) allServiceNames.add(svcName);

            } else if (methodOperation instanceof CallSimpleMethod) {
                CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                try {
                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(methodOperations.getClass().getClassLoader());
                    if (calledMethod == null) {
                        Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                    } else {
                        if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
                            simpleMethodsVisited.add(calledMethod.getLocationAndName());
                            findServiceNamesCalled(calledMethod.methodOperations, allServiceNames, simpleMethodsVisited);
                        }
                    }
                } catch (MiniLangException e) {
                    Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
                }
            } else if (methodOperation instanceof Iterate) {
                findServiceNamesCalled(((Iterate) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
            } else if (methodOperation instanceof IterateMap) {
                findServiceNamesCalled(((IterateMap) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
View Full Code Here

            } else if (methodOperation instanceof GetRelatedOne) {
                String relationName = ((GetRelatedOne) methodOperation).getRelationName();
                if (UtilValidate.isNotEmpty(relationName)) allEntityNames.add(relationName);

            } else if (methodOperation instanceof CallSimpleMethod) {
                CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                try {
                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(null);
                    if (calledMethod == null) {
                        Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                    } else {
                        if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
                            simpleMethodsVisited.add(calledMethod.getLocationAndName());
                            findEntityNamesUsed(calledMethod.methodOperations, allEntityNames, simpleMethodsVisited);
                        }
                    }
                } catch (MiniLangException e) {
                    Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
                }
            } else if (methodOperation instanceof Iterate) {
                findEntityNamesUsed(((Iterate) methodOperation).getSubOps(), allEntityNames, simpleMethodsVisited);
            } else if (methodOperation instanceof IterateMap) {
                findEntityNamesUsed(((IterateMap) methodOperation).getSubOps(), allEntityNames, simpleMethodsVisited);
View Full Code Here

            } else if (methodOperation instanceof SetServiceFields) {
                String svcName = ((SetServiceFields) methodOperation).getServiceName();
                if (UtilValidate.isNotEmpty(svcName)) allServiceNames.add(svcName);
               
            } else if (methodOperation instanceof CallSimpleMethod) {
                CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                try {
                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(methodOperations.getClass().getClassLoader());
                    if (calledMethod == null) {
                        Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                    } else {
                        if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
                            simpleMethodsVisited.add(calledMethod.getLocationAndName());
                            findServiceNamesCalled(calledMethod.methodOperations, allServiceNames, simpleMethodsVisited);
                        }
                    }
                } catch (MiniLangException e) {
                    Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
                }
            } else if (methodOperation instanceof Iterate) {
                findServiceNamesCalled(((Iterate) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
            } else if (methodOperation instanceof IterateMap) {
                findServiceNamesCalled(((IterateMap) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
View Full Code Here

            } else if (methodOperation instanceof GetRelatedOne) {
                String relationName = ((GetRelatedOne) methodOperation).getRelationName();
                if (UtilValidate.isNotEmpty(relationName)) allEntityNames.add(relationName);
               
            } else if (methodOperation instanceof CallSimpleMethod) {
                CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                try {
                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(null);
                    if (calledMethod == null) {
                        Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                    } else {
                        if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
                            simpleMethodsVisited.add(calledMethod.getLocationAndName());
                            findEntityNamesUsed(calledMethod.methodOperations, allEntityNames, simpleMethodsVisited);
                        }
                    }
                } catch (MiniLangException e) {
                    Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
                }
            } else if (methodOperation instanceof Iterate) {
                findEntityNamesUsed(((Iterate) methodOperation).getSubOps(), allEntityNames, simpleMethodsVisited);
            } else if (methodOperation instanceof IterateMap) {
                findEntityNamesUsed(((IterateMap) methodOperation).getSubOps(), allEntityNames, simpleMethodsVisited);
View Full Code Here

TOP

Related Classes of org.ofbiz.minilang.method.callops.CallSimpleMethod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.