public LibraryFactoryConfiguration createLibraries() { LibraryFactoryConfiguration mf = new LibraryFactoryConfiguration(); conf.setMethodFactory(mf); return mf; }
public IOpenMethod[] getMethods(String namespace, String name) { IOpenMethod[] mcs = methodFactory == null ? new IOpenMethod[] {} : methodFactory.getMethods(namespace, name, configurationContext); IOpenMethod[] pmcs = parent == null ? new IOpenMethod[] {} : parent.getMethods(namespace, name);
public IOpenField getVar(String namespace, String name, boolean strictMatch) { IOpenField field = methodFactory == null ? null : methodFactory .getVar(namespace, name, configurationContext, strictMatch); if (field != null) { return field; } return parent == null ? null : parent.getVar(namespace, name, strictMatch); }
private void addLibraries(LibraryFactoryConfiguration libraries, String namespace, String[] libraryNames) { NameSpacedLibraryConfiguration library = new NameSpacedLibraryConfiguration(); library.setNamespace(namespace); for (String libraryName : libraryNames) { JavaLibraryConfiguration configuration = new JavaLibraryConfiguration(); configuration.setClassName(libraryName); library.addJavalib(configuration); } libraries.addConfiguredLibrary(library); } }
public synchronized void validate(IConfigurableResourceContext cxt) throws OpenConfigurationException { if (grammarFactory != null) { grammarFactory.validate(cxt); } else if (parent == null) { throw new OpenConfigurationException("Grammar class is not set", getUri(), null); } if (binderFactory != null) { binderFactory.validate(cxt); } else if (parent == null) { throw new OpenConfigurationException("Bindings are not set", getUri(), null); } // Methods and casts are optional // else if (parent == null) // throw new OpenConfigurationException("Methods are not set", getUri(), // null); if (methodFactory != null) { methodFactory.validate(cxt); } if (typeCastFactory != null) { typeCastFactory.validate(cxt); } if (typeFactory != null) { typeFactory.validate(cxt); } if (openFactories != null) { for (IOpenFactoryConfiguration factory : openFactories.values()) { factory.validate(cxt); } } }
javalib2.setClassName(org.openl.binding.impl.operator.Comparison.class.getName()); nslc.addJavalib(javalib2); lfc.addConfiguredLibrary(nslc);
public synchronized void validate(IConfigurableResourceContext cxt) throws OpenConfigurationException { if (grammarFactory != null) { grammarFactory.validate(cxt); } else if (parent == null) { throw new OpenConfigurationException("Grammar class is not set", getUri(), null); } if (binderFactory != null) { binderFactory.validate(cxt); } else if (parent == null) { throw new OpenConfigurationException("Bindings are not set", getUri(), null); } // Methods and casts are optional // else if (parent == null) // throw new OpenConfigurationException("Methods are not set", getUri(), // null); if (methodFactory != null) { methodFactory.validate(cxt); } if (typeCastFactory != null) { typeCastFactory.validate(cxt); } if (typeFactory != null) { typeFactory.validate(cxt); } if (openFactories != null) { for (IOpenFactoryConfiguration factory : openFactories.values()) { factory.validate(cxt); } } }
javalib2.setClassName(org.openl.binding.impl.operator.Comparison.class.getName()); nslc.addJavalib(javalib2); lfc.addConfiguredLibrary(nslc);
public LibraryFactoryConfiguration createLibraries() { LibraryFactoryConfiguration mf = new LibraryFactoryConfiguration(); conf.setMethodFactory(mf); return mf; }
public IOpenField getVar(String namespace, String name, boolean strictMatch) { IOpenField field = methodFactory == null ? null : methodFactory .getVar(namespace, name, configurationContext, strictMatch); if (field != null) { return field; } return parent == null ? null : parent.getVar(namespace, name, strictMatch); }
public IOpenMethod[] getMethods(String namespace, String name) { IOpenMethod[] mcs = methodFactory == null ? new IOpenMethod[] {} : methodFactory.getMethods(namespace, name, configurationContext); IOpenMethod[] pmcs = parent == null ? new IOpenMethod[] {} : parent.getMethods(namespace, name);
libraries.addConfiguredLibrary(operationNamespaceLibrary); libraries.addConfiguredLibrary(thisNamespaceLibrary);
public LibraryFactoryConfiguration createLibraries() { LibraryFactoryConfiguration mf = new LibraryFactoryConfiguration(); conf.setMethodFactory(mf); return mf; }
libraries.addConfiguredLibrary(operationNamespaceLibrary); libraries.addConfiguredLibrary(thisNamespaceLibrary);
libraries.addConfiguredLibrary(library); nslc.addJavalib(javalib); libraries.addConfiguredLibrary(nslc);