Codota Logo
SInstance.hasValidationErrors
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • JComboBox (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now