Tabnine Logo
ExecOnceType
Code IndexAdd Tabnine to your IDE (free)

How to use
ExecOnceType
in
com.netflix.imfutility.generated.conversion

Best Java code snippets using com.netflix.imfutility.generated.conversion.ExecOnceType (Showing top 20 results out of 315)

origin: DSRCorporation/imf-conversion

/**
 * Create an instance of {@link ExecOnceType }
 * 
 */
public ExecOnceType createExecOnceType() {
  return new ExecOnceType();
}
origin: DSRCorporation/imf-conversion

private List<OperationInfo> getSubPipeOperations(SubPipeType subPipe) {
  return subPipe.getExecOnce().stream()
      .map(execOnce -> new OperationInfo(execOnce.getValue(), execOnce.getName(), ContextInfo.EMPTY,
          skipOperationResolver
              .setContextInfo(ContextInfo.EMPTY)
              .isSkip(execOnce)))
      .collect(Collectors.toList());
}
origin: DSRCorporation/imf-conversion

@Test(expected = TemplateParameterNotFoundException.class)
public void testInvalidContextParameter() {
  SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));
  ExecOnceType exec = new ExecOnceType();
  exec.setIf("%{dynamic.null}");
  resolver.setContextInfo(ContextInfo.EMPTY).isSkip(exec);
}
origin: DSRCorporation/imf-conversion

@Test
public void testInvalidBoolean() {
  SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));
  ExecOnceType ifInvalidExec = new ExecOnceType();
  ifInvalidExec.setIf("true");
  ifInvalidExec.setUnless("123");     // convert to false in result
  assertFalse(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(ifInvalidExec));
}
origin: DSRCorporation/imf-conversion

OperationInfo operationInfo = new OperationInfo(execSegment.getExecOnce().getValue(),
    execSegment.getName(), contextInfo,
    skipOperationResolver
origin: DSRCorporation/imf-conversion

@Test(expected = UnknownTemplateParameterContextException.class)
public void testInvalidContext() {
  SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));
  ExecOnceType exec = new ExecOnceType();
  exec.setIf("%{null.true}");
  resolver.setContextInfo(ContextInfo.EMPTY).isSkip(exec);
}
origin: DSRCorporation/imf-conversion

OperationInfo operationInfo = new OperationInfo(execSequence.getExecOnce().getValue(),
    execSequence.getName(), contextInfo,
    skipOperationResolver
origin: DSRCorporation/imf-conversion

@Test
public void testDamagedContextParameter() {
  SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));
  ExecOnceType exec = new ExecOnceType();
  exec.setIf("%{dynamic.damagedParam}"); // convert to false in result
  assertTrue(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(exec));
}
origin: DSRCorporation/imf-conversion

private OperationInfo getExecOnceOperation(ExecOnceType execOnce) {
  return new OperationInfo(execOnce.getValue(), execOnce.getName(), ContextInfo.EMPTY,
      skipOperationResolver
          .setContextInfo(ContextInfo.EMPTY)
          .isSkip(execOnce));
}
origin: DSRCorporation/imf-conversion

/**
 * Create an instance of {@link ExecOnceType }
 * 
 */
public ExecOnceType createExecOnceType() {
  return new ExecOnceType();
}
origin: DSRCorporation/imf-conversion

@Test
public void testEmptyParameter() {
  SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));
  ExecOnceType exec = new ExecOnceType();
  exec.setIf("");                 // convert to false in result
  assertTrue(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(exec));
}
origin: DSRCorporation/imf-conversion

private List<OperationInfo> getSubPipeOperations(SubPipeType subPipe) {
  ContextInfo contextInfo = new ContextInfoBuilder()
      .setSegmentUuid(currentSegmentUuid)
      .build();
  return subPipe.getExecOnce().stream()
      .map(execOnce -> new OperationInfo(execOnce.getValue(), execOnce.getName(), contextInfo,
          skipOperationResolver
              .setContextInfo(contextInfo)
              .isSkip(execOnce, execEachSegm)))
      .collect(Collectors.toList());
}
origin: DSRCorporation/imf-conversion

@Test
public void testFewOperationsSkipped() {
  SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));
  ConditionalSimpleType trueExec1 = new ExecOnceType();
  trueExec1.setUnless("false");
  ConditionalComplexType trueExec2 = new ConditionalComplexType();
  trueExec2.setIf("true");
  ConditionalComplexType falseExec = new ConditionalComplexType();
  falseExec.setIf("false");
  assertTrue(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(trueExec1, trueExec2, falseExec));
}
origin: DSRCorporation/imf-conversion

  @Test
  public void testContextInfo() {
    SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));

    ExecOnceType exec = new ExecOnceType();
    exec.setIf("true");

    assertFalse(resolver
        .setContextInfo(new ContextInfoBuilder()
            .setSequenceUuid(SequenceUUID.create("seq:urn"))
            .setResourceUuid(ResourceUUID.create("res:urn", 0))
            .build())
        .isSkip(exec));
  }
}
origin: DSRCorporation/imf-conversion

@Override
public void execute() throws IOException {
  OperationInfo operationInfo = new OperationInfo(operation.getValue(), operation.getName(), ContextInfo.EMPTY,
      skipOperationResolver
          .setContextInfo(ContextInfo.EMPTY)
          .isSkip(operation));
  executeStrategyFactory.createExecuteOnceStrategy(contextProvider).execute(operationInfo);
}
origin: DSRCorporation/imf-conversion

@Test
public void testOperationNotSkipped() {
  SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));
  ConditionalSimpleType trueExec = new ExecOnceType();
  trueExec.setUnless("false");
  ConditionalSimpleType ifParamExec = new ExecOnceType();
  ifParamExec.setIf("%{dynamic.trueParam}");
  ConditionalComplexType unlessParamExec = new ExecEachSequenceType();
  unlessParamExec.setUnless("%{dynamic.falseParam}");
  ConditionalComplexType ifUnlessParamExec = new ExecEachSegmentSequenceType();
  ifUnlessParamExec.setIf("%{dynamic.trueParam}");
  ifUnlessParamExec.setUnless("%{dynamic.falseParam}");
  assertFalse(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(trueExec));
  assertFalse(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(ifParamExec));
  assertFalse(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(unlessParamExec));
  assertFalse(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(ifUnlessParamExec));
}
origin: DSRCorporation/imf-conversion

private List<OperationInfo> getSubPipeOperations(SubPipeType subPipe) {
  List<OperationInfo> result = new ArrayList<>();
  ContextInfo contextInfo = new ContextInfoBuilder()
      .setSequenceUuid(currentSeqUuid)
      .setSequenceType(seqType)
      .build();
  result.addAll(subPipe.getExecOnce().stream()
      .map(execOnce -> new OperationInfo(execOnce.getValue(), execOnce.getName(), contextInfo,
          skipOperationResolver
              .setContextInfo(contextInfo)
              .isSkip(execOnce, execEachSeq)))
      .collect(Collectors.toList()));
  return result;
}
origin: DSRCorporation/imf-conversion

@Test
public void testOperationSkipped() {
  SkipOperationResolver resolver = new SkipOperationResolver(new TemplateParameterResolver(contextProvider));
  ConditionalSimpleType falseExec = new ExecOnceType();
  falseExec.setIf("false");
  ConditionalSimpleType ifParamExec = new ExecOnceType();
  ifParamExec.setIf("%{dynamic.falseParam}");
  ConditionalComplexType unlessParamExec = new ExecEachSequenceType();
  unlessParamExec.setUnless("%{dynamic.trueParam}");
  ConditionalComplexType ifUnlessParamExec = new ExecEachSegmentSequenceType();
  ifUnlessParamExec.setIf("%{dynamic.trueParam}");        // not skipped
  ifUnlessParamExec.setUnless("%{dynamic.trueParam}");    // skipped
  assertTrue(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(falseExec));
  assertTrue(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(ifParamExec));
  assertTrue(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(unlessParamExec));
  assertTrue(resolver.setContextInfo(ContextInfo.EMPTY).isSkip(ifUnlessParamExec));
}
origin: DSRCorporation/imf-conversion

private OperationInfo getExecOnceOperation(ExecOnceType execOnce) {
  ContextInfo contextInfo = new ContextInfoBuilder()
      .setSegmentUuid(currentSegmentUuid)
      .build();
  return new OperationInfo(execOnce.getValue(), execOnce.getName(), contextInfo,
      skipOperationResolver
          .setContextInfo(contextInfo)
          .isSkip(execOnce, execEachSegm));
}
origin: DSRCorporation/imf-conversion

private OperationInfo getExecOnceOperation(ExecOnceType execOnce) {
  ContextInfo contextInfo = new ContextInfoBuilder()
      .setSequenceUuid(currentSeqUuid)
      .setSequenceType(seqType)
      .build();
  return new OperationInfo(execOnce.getValue(), execOnce.getName(), contextInfo,
      skipOperationResolver
          .setContextInfo(contextInfo)
          .isSkip(execOnce, execEachSeq));
}
com.netflix.imfutility.generated.conversionExecOnceType

Javadoc

Java class for execOnceType complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType name="execOnceType"> 
<simpleContent> 
<extension base="<http://conversion.imfutility.netflix.com>conditionalSimpleType"> 
</extension> 
</simpleContent> 
</complexType> 

Most used methods

  • <init>
  • getName
  • getValue
  • setIf
  • setUnless

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Reference (javax.naming)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now