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

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

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

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.formSInstancegetAttributes

Javadoc

Lista todos os atributos com valor associado diretamente à instância atual.

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

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for WebStorm
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