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

How to use
DMNQNameInfo
in
org.kie.server.api.model.dmn

Best Java code snippets using org.kie.server.api.model.dmn.DMNQNameInfo (Showing top 3 results out of 315)

origin: kiegroup/droolsjbpm-integration

public static DMNQNameInfo of(QName from) {
  DMNQNameInfo result = new DMNQNameInfo();
  result.namespaceURI = from.getNamespaceURI();
  result.localPart = from.getLocalPart();
  result.prefix = from.getPrefix();
  return result;
}
origin: org.kie.server/kie-server-services-dmn

public static DMNInputDataInfo inputDataToInfo(InputDataNode inputDataNode) {
  DMNInputDataInfo res = new DMNInputDataInfo();
  res.setName(inputDataNode.getName());
  res.setId(inputDataNode.getId());
  InputData id = ((InputDataNodeImpl) inputDataNode).getInputData();
  QName typeRef = id.getVariable().getTypeRef();
  // for InputData sometimes the NS is not really valorized inside the jdk QName as internally ns are resolved by prefix directly.
  if (typeRef != null && XMLConstants.NULL_NS_URI.equals(typeRef.getNamespaceURI())) {
    String actualNS = id.getNamespaceURI(typeRef.getPrefix());
    typeRef = new QName(actualNS, typeRef.getLocalPart(), typeRef.getPrefix());
  }
  res.setTypeRef(DMNQNameInfo.of(typeRef));
  return res;
}

origin: org.kie.server/kie-server-services-dmn

public static DMNItemDefinitionInfo itemDefinitionToInfo(ItemDefinition itemDef) {
  DMNItemDefinitionInfo res = new DMNItemDefinitionInfo();
  res.setId(itemDef.getId());
  res.setName(itemDef.getName());
  if (itemDef.getTypeRef() != null) {
    res.setTypeRef(DMNQNameInfo.of(itemDef.getTypeRef()));
  }
  if (itemDef.getAllowedValues() != null) {
    DMNUnaryTestsInfo av = new DMNUnaryTestsInfo();
    av.setText(itemDef.getAllowedValues().getText());
    av.setExpressionLanguage(itemDef.getAllowedValues().getExpressionLanguage());
    res.setAllowedValues(av);
  }
  if (itemDef.getItemComponent() != null && !itemDef.getItemComponent().isEmpty()) {
    List<DMNItemDefinitionInfo> components = itemDef.getItemComponent().stream().map(ModelEvaluatorServiceBase::itemDefinitionToInfo).collect(Collectors.toList());
    res.setItemComponent(components);
  }
  res.setTypeLanguage(itemDef.getTypeLanguage());
  res.setIsCollection(itemDef.isIsCollection());
  return res;
}
org.kie.server.api.model.dmnDMNQNameInfo

Most used methods

  • <init>
  • of

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top plugins for Android Studio
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