Tabnine Logo
SInstance.hasValidationErrors
Code IndexAdd Tabnine to your IDE (free)

How to use
hasValidationErrors
method
in
org.opensingular.form.SInstance

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

origin: org.opensingular/form-core

public boolean hasNestedValidationErrors() {
  return SInstances.hasAny(this, i -> hasValidationErrors());
}
origin: org.opensingular/singular-form-core

/**
 * rerun validation on types that are filled with data and currently valid and the invalid ones (filled or not)
 *
 * @param updatedInstances a list of instances to rerun the validation
 * @return
 */
private static void revalidateInvalidOrNonEmptyInstances(Iterable<SInstance> updatedInstances) {
  final InstanceValidationContext validationContext = new InstanceValidationContext();
  // limpa erros de instancias dependentes, e limpa o valor caso de este não seja válido para o provider
  for (SInstance it : updatedInstances) {
    //Executa validações que dependem do valor preenchido que não estão com valor vazio ou
    // que já haviam sido validadas anteriormente e possuem mensagens
    if (!it.isEmptyOfData() || it.hasValidationErrors()) {
      it.getDocument().clearValidationErrors(it.getId());
      validationContext.validateSingle(it);
    }
  }
}
org.opensingular.formSInstancehasValidationErrors

Popular methods of SInstance

  • getDocument
    Retorna o documento ao qual pertence a instância atual.
  • getType
  • toStringDisplay
  • getId
    Retorna um ID único dentre as instâncias do mesmo documento. Um ID nunca é reutilizado, mesmo se a i
  • getAttributeValue
  • findNearest
    Returns the nearest SInstance for the given type in the form SInstance tree. The search is performed
  • setId
    Apenas para uso nas soluções de persistencia. Não deve ser usado fora dessa situação.
  • clearInstance
    Apaga os valores associados a instância. Se for uma lista ou composto, apaga os valores em profundid
  • getName
  • getParent
  • getValue
  • isEmptyOfData
    Retorna true se a instancia não conter nenhuma informação diferente de null. A pesquisa é feita em
  • getValue,
  • isEmptyOfData,
  • asAtr,
  • asAtrAnnotation,
  • asAtrProvider,
  • attachEventCollector,
  • detachEventCollector,
  • getDictionary,
  • getField,
  • getPathFromRoot

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ImageIO (javax.imageio)
  • Top Sublime Text 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