Search in sources :

Example 6 with AdapterFieldDependency

use of com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency in project navajo by Dexels.

the class CompiledTestScript method getDependentObjects.

@Override
public ArrayList<Dependency> getDependentObjects() {
    ArrayList<Dependency> deps = new ArrayList<Dependency>();
    deps.add(new ExpressionValueDependency(1, "mies", "noot"));
    deps.add(new AdapterFieldDependency(-1, "com.dexels.navajo.server.resource.ResourceTestAdapter", "whatever", "'id1'"));
    deps.add(new AdapterFieldDependency(-1, "com.dexels.navajo.server.resource.ResourceTestAdapter", "whatever", "'id2'"));
    deps.add(new AdapterFieldDependency(-1, "com.dexels.navajo.server.resource.ResourceTestDoesNotExistAdapter", "whatever", "'id3'"));
    deps.add(new ExpressionValueDependency(1, "aap", "noot"));
    deps.add(new AdapterFieldDependency(-1, "com.dexels.navajo.server.resource.ResourceTestAdapter2", "whatever", "'id4'"));
    return deps;
}
Also used : AdapterFieldDependency(com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency) ExpressionValueDependency(com.dexels.navajo.mapping.compiler.meta.ExpressionValueDependency) ArrayList(java.util.ArrayList) AdapterFieldDependency(com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency) ExpressionValueDependency(com.dexels.navajo.mapping.compiler.meta.ExpressionValueDependency) Dependency(com.dexels.navajo.script.api.Dependency)

Example 7 with AdapterFieldDependency

use of com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency in project navajo by Dexels.

the class CompiledTestScript4 method getDependentObjects.

@Override
public ArrayList<Dependency> getDependentObjects() {
    ArrayList<Dependency> deps = new ArrayList<Dependency>();
    deps.add(new AdapterFieldDependency(-1, "com.dexels.navajo.server.resource.ResourceTestAdapter", "whatever", "'id5'"));
    // Deliberately create circular dependency
    deps.add(new AdapterFieldDependency(-1, "com.dexels.navajo.adapter.NavajoMap", GenericDependentResource.SERVICE_DEPENDENCY, "'CompiledTestScript3'"));
    return deps;
}
Also used : AdapterFieldDependency(com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency) ArrayList(java.util.ArrayList) AdapterFieldDependency(com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency) Dependency(com.dexels.navajo.script.api.Dependency)

Example 8 with AdapterFieldDependency

use of com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency in project navajo by Dexels.

the class CompiledTestScript3 method getDependentObjects.

@Override
public ArrayList<Dependency> getDependentObjects() {
    ArrayList<Dependency> deps = new ArrayList<Dependency>();
    deps.add(new AdapterFieldDependency(-1, "com.dexels.navajo.server.resource.ResourceTestAdapter", "whatever", "'id1'"));
    deps.add(new AdapterFieldDependency(-1, "com.dexels.navajo.adapter.NavajoMap", GenericDependentResource.SERVICE_DEPENDENCY, "'CompiledTestScript4'"));
    return deps;
}
Also used : AdapterFieldDependency(com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency) ArrayList(java.util.ArrayList) AdapterFieldDependency(com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency) Dependency(com.dexels.navajo.script.api.Dependency)

Aggregations

AdapterFieldDependency (com.dexels.navajo.mapping.compiler.meta.AdapterFieldDependency)8 Dependency (com.dexels.navajo.script.api.Dependency)7 ArrayList (java.util.ArrayList)5 ExpressionValueDependency (com.dexels.navajo.mapping.compiler.meta.ExpressionValueDependency)2 ExtendDependency (com.dexels.navajo.mapping.compiler.meta.ExtendDependency)2 IncludeDependency (com.dexels.navajo.mapping.compiler.meta.IncludeDependency)2 Method (java.lang.reflect.Method)2 NavajoException (com.dexels.navajo.document.NavajoException)1 Operand (com.dexels.navajo.document.Operand)1 TMLExpressionException (com.dexels.navajo.expression.api.TMLExpressionException)1 DependentResource (com.dexels.navajo.mapping.DependentResource)1 GenericMultipleDependentResource (com.dexels.navajo.mapping.GenericMultipleDependentResource)1 HasDependentResources (com.dexels.navajo.mapping.HasDependentResources)1 JavaDependency (com.dexels.navajo.mapping.compiler.meta.JavaDependency)1 KeywordException (com.dexels.navajo.mapping.compiler.meta.KeywordException)1 MetaCompileException (com.dexels.navajo.mapping.compiler.meta.MetaCompileException)1 ParseException (com.dexels.navajo.parser.compiled.ParseException)1 CompilationException (com.dexels.navajo.script.api.CompilationException)1 MappingException (com.dexels.navajo.script.api.MappingException)1 SystemException (com.dexels.navajo.script.api.SystemException)1