Tabnine Logo
SIComposite.streamDescendants
Code IndexAdd Tabnine to your IDE (free)

How to use
streamDescendants
method
in
org.opensingular.form.SIComposite

Best Java code snippets using org.opensingular.form.SIComposite.streamDescendants (Showing top 2 results out of 315)

origin: org.opensingular/singular-form-core

  @Override
  public void validate(InstanceValidatable<SIComposite> v) {
    Set<Boolean> nullValues = v.getInstance().streamDescendants(false)
      .filter(it -> it.getType() instanceof STypeSimple<?, ?>)
      .map(it -> it.getValue() == null)
      .collect(toSet());
    
    // os campos devem ser todos nulos ou todos preenchidos
    if (nullValues.size() != 1)
      v.error("Endereço incompleto");
  }
}
origin: org.opensingular/form-core

  @Override
  public void validate(IInstanceValidatable<SIComposite> v) {
    Set<Boolean> nullValues = v.getInstance().streamDescendants(false)
      .filter(it -> it.getType() instanceof STypeSimple<?, ?>)
      .map(it -> it.getValue() == null)
      .collect(toSet());
    
    // os campos devem ser todos nulos ou todos preenchidos
    if (nullValues.size() != 1)
      v.error("Endereço incompleto");
  }
}
org.opensingular.formSICompositestreamDescendants

Popular methods of SIComposite

  • getField
  • getFields
    List only those fields already instantiated. OBS: field instantiation occurs automatically when its
  • getType
  • findNearest
  • getDocument
  • setValue
  • asAtr
  • findDescendant
  • getFieldList
  • asAtrAnnotation
  • asAtrBootstrap
  • clearInstance
  • asAtrBootstrap,
  • clearInstance,
  • createField,
  • findFieldIndex,
  • findFieldIndexOpt,
  • getAllChildren,
  • getAllFields,
  • getDictionary,
  • getFieldLocalWithoutCreating,
  • getFieldOpt

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Best plugins for Eclipse
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