congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SInstance.getAttributeInstanceInfo
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.opensingular/singular-form-core

private void debugAttribute(Appendable appendable, SInstance attr) {
  try {
    if (!attr.getAttributeInstanceInfo().getRef().isResolved()) {
      appendable.append('?');
    }
    appendable.append(suppressPackage(attr.getAttributeInstanceInfo().getName(), true)).append("=")
        .append(attr.toStringDisplay()).append("; ");
  } catch (IOException ex) {
    LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
  }
}
origin: org.opensingular/singular-form-core

public static void assertEqualsAttribute(SAttributeEnabled copy, SInstance atrOriginal) {
  Optional<SInstance> atrNewOpt = copy.getAttributeDirectly(atrOriginal.getAttributeInstanceInfo().getName());
  try {
    assertThat(atrNewOpt).isPresent();
    if (atrNewOpt.isPresent()) {
      assertEquivalentInstance(atrOriginal, atrNewOpt.get(), false);
    }
  } catch (AssertionError e) {
    throw new AssertionError(
        "Erro comparando atributo '" + atrOriginal.getAttributeInstanceInfo().getName() + "'", e);
  }
}
origin: org.opensingular/form-core

private void debugAttributes(Appendable appendable) {
  try {
    Collection<SInstance> attrs = getAttributes();
    if (! attrs.isEmpty()) {
      appendable.append(" {");
      attrs.stream().forEach(attr -> {
        try {
          appendable.append(suppressPackage(attr.getAttributeInstanceInfo().getName(), true)).append("=")
              .append(attr.toStringDisplay()).append("; ");
        } catch (IOException ex) {
          LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
        }
      });
      appendable.append("}");
    }
  } catch (IOException ex) {
    LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
  }
}
origin: org.opensingular/singular-form-core

  private MElement complement(SInstance instance, MElement element) {
    Integer id = instance.getId();
    if (builder.isPersistId()) {
      element.setAttribute(ID_ATTRIBUTE, id.toString());
    }
    if (builder.isPersistAttributes()) {
      for (SInstance atr : instance.getAttributes()) {
        String name = atr.getAttributeInstanceInfo().getName();
        if (atr instanceof SISimple) {
          String sPersistence = ((SISimple<?>) atr).toStringPersistence();
          element.setAttribute(name, sPersistence);
        } else {
          throw new SingularFormException("Não implementada a persitência de atributos compostos: " + name,
              instance);
        }
      }
    }
    return element;
  }
}
origin: org.opensingular/form-core

  private MElement complement(SInstance instancia, MElement element) {
    if (builder.isPersistId() && instancia.getId() != null) {
      element.setAttribute(ATRIBUTO_ID, instancia.getId().toString());
    }
    if (builder.isPersistAttributes()) {
      for (SInstance atr : instancia.getAttributes()) {
        String name = atr.getAttributeInstanceInfo().getName();
        if (atr instanceof SISimple) {
          String sPersistence = ((SISimple<?>) atr).toStringPersistence();
          element.setAttribute(name, sPersistence);
        } else {
          throw new SingularFormException("Não implementada a persitência de atributos compostos: " + name,
              instancia);
        }
      }
    }
    return element;
  }
}
org.opensingular.formSInstancegetAttributeInstanceInfo

Javadoc

Retorna informações de atributo extra se a instância atual for um atributo.

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
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now