congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DMNElement$ExtensionElements.getAny
Code IndexAdd Tabnine to your IDE (free)

How to use
getAny
method
in
org.kie.dmn.model.api.DMNElement$ExtensionElements

Best Java code snippets using org.kie.dmn.model.api.DMNElement$ExtensionElements.getAny (Showing top 4 results out of 315)

origin: org.kie/kie-dmn-model

@Override
public List<DecisionService> getDecisionService() {
  if ( decisionService == null ) {
    decisionService = new ArrayList<>();
    // as DMN1.1 xsd is broken to allow proper persistence of DecisionService, do fetch them from extensions.
    if ( getExtensionElements() != null ) {
      List<DecisionService> collectDS = getExtensionElements().getAny().stream()
                                .filter(DecisionServices.class::isInstance).map(DecisionServices.class::cast)
                                .flatMap(dss -> dss.getDecisionService().stream())
                                .collect(Collectors.toList());
      decisionService.addAll(collectDS);
    }
  }
  return this.decisionService;
}
origin: org.kie/kie-dmn-core

  final DMNElement.ExtensionElements id1elements = inputData1.getExtensionElements();
  assertNotNull(id1elements);
  assertEquals(1, id1elements.getAny().size());
  final FirstNameDescription firstNameDescription = (FirstNameDescription) id1elements.getAny().get(0);
  assertEquals("First name in latin characters", firstNameDescription.getContent());
  final DMNElement.ExtensionElements id2elements = inputData2.getExtensionElements();
  assertNotNull(id2elements);
  assertEquals(1, id2elements.getAny().size());
  final LastNameDescription lastNameDescription = (LastNameDescription) id2elements.getAny().get(0);
  assertEquals("Last name in latin characters", lastNameDescription.getContent());
} catch (final Exception e) {
origin: org.kie/kie-dmn-core

final DMNElement.ExtensionElements id1elements = inputData1.getExtensionElements();
assertNotNull(id1elements);
assertEquals(1, id1elements.getAny().size());
final FirstNameDescription firstNameDescription = (FirstNameDescription) id1elements.getAny().get(0);
assertEquals("First name in latin characters", firstNameDescription.getContent());
final DMNElement.ExtensionElements id2elements = inputData2.getExtensionElements();
assertNotNull(id2elements);
assertEquals(1, id2elements.getAny().size());
final LastNameDescription lastNameDescription = (LastNameDescription) id2elements.getAny().get(0);
assertEquals("Last name in latin characters", lastNameDescription.getContent());
origin: org.kie/kie-dmn-core

final DMNElement.ExtensionElements id1elements = inputData1.getExtensionElements();
assertNotNull(id1elements);
assertEquals(0, id1elements.getAny().size());
final DMNElement.ExtensionElements id2elements = inputData2.getExtensionElements();
assertNotNull(id2elements);
assertEquals(0, id2elements.getAny().size());
org.kie.dmn.model.apiDMNElement$ExtensionElementsgetAny

Popular methods of DMNElement$ExtensionElements

    Popular in Java

    • Creating JSON documents from java classes using gson
    • putExtra (Intent)
    • compareTo (BigDecimal)
    • setRequestProperty (URLConnection)
    • HttpURLConnection (java.net)
      An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
    • ServerSocket (java.net)
      This class represents a server-side socket that waits for incoming client connections. A ServerSocke
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • CountDownLatch (java.util.concurrent)
      A synchronization aid that allows one or more threads to wait until a set of operations being perfor
    • JOptionPane (javax.swing)
    • JPanel (javax.swing)
    • Top plugins for WebStorm
    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