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

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

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

origin: org.opensingular/singular-form-core

private void debugAttributes(Appendable appendable) {
  try {
    Collection<SInstance> attrs = getAttributes();
    if (!attrs.isEmpty()) {
      appendable.append(" {");
      attrs.forEach(attr -> debugAttribute(appendable, attr));
      appendable.append("}");
    }
  } catch (IOException ex) {
    LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
  }
}
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 static void writeType(ContextArchive ctx, SIPersistenceType pType, SType<?> type) {
  SType<?> superType = type.getSuperType();
  pType.setSuperType(ctx.translateImport(superType));
  ensureType(ctx, superType);
  for (SInstance attrInstance : type.getAttributes()) {
    SIPersistenceAttribute pAttribute = pType.newAttribute();
    writeAttr(ctx, pAttribute, attrInstance);
  }
  if (type.isComposite()) {
    //TODO (por Daniel Bordin) O código abaixo ainda precisa resolver a questão de field que foram extendido
    // e tiveram apenas uma atributo alterado
    for (SType<?> localField : ((STypeComposite<?>) type).getFieldsLocal()) {
      SIPersistenceType pMember = pType.addMember(localField.getNameSimple());
      writeType(ctx, pMember, localField);
    }
  }
}
org.opensingular.formSTypegetAttributes

Javadoc

Lista todos os atributos com valor associado diretamente ao tipo atual. Não retorna os atributos consolidado do tipo pai.

Popular methods of SType

  • asAtr
  • getNameSimple
  • getName
  • asAtrProvider
  • getAttributeValue
  • isList
    Verificar se o tipo é um tipo lista ( STypeList).
  • getValidators
  • withView
  • asAtrBootstrap
  • getInstanceClass
  • isComposite
    Verificar se o tipo é um tipo composto ( STypeComposite).
  • getDependentTypes
  • isComposite,
  • getDependentTypes,
  • getDictionary,
  • hasAttributeDefinedInHierarchy,
  • isDependentType,
  • isTypeOf,
  • newInstance,
  • addAttribute,
  • addDependentType,
  • addInstanceValidator

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Github Copilot alternatives
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