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

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

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

origin: org.opensingular/singular-form-core

@SuppressWarnings("unchecked")
final <T extends SType<?>> void registerType(@Nonnull SScope scope, @Nonnull T newType,
    @Nullable Class<T> classForRegister) {
  if (classForRegister != null) {
    Class<? extends SPackage> packageClass = SFormUtil.getTypePackage(classForRegister);
    SPackage packageAnnotation = packages.getOrNewInstance(packageClass);
    SPackage packageDestiny = scope.getPackage();
    if (!packageDestiny.getName().equals(packageAnnotation.getName())) {
      throw new SingularFormException(
          "Tentativa de carregar o tipo '" + newType.getNameSimple() + "' anotado para o pacote '" +
              packageAnnotation.getName() + "' como sendo do pacote '" + packageDestiny.getName() + "'",
          newType);
    }
  }
  newType.setScope(scope);
  newType.resolveSuperType(this);
  newType.setTypeId(++idCount);
  ((SScopeBase) scope).register(newType);
  typeByClass.put(classForRegister, newType);
}
origin: org.opensingular/form-core

@SuppressWarnings("unchecked")
final <T extends SType<?>> void registeType(SScope scope, T newType, Class<T> classForRegister) {
  if (classForRegister != null) {
    Class<? extends SPackage> classePacoteAnotado = SFormUtil.getTypePackage(classForRegister);
    SPackage pacoteAnotado = packages.getOrNewInstance(classePacoteAnotado);
    SPackage pacoteDestino = findPackage(scope);
    if (pacoteDestino == null) {
      throw new SingularFormException("O pacote de destino para carregar o tipo " +
          newType.getNameSimple() + " não pode ser nulo.");
    }
    if (!pacoteDestino.getName().equals(pacoteAnotado.getName())) {
      throw new SingularFormException(
          "Tentativa de carregar o tipo '" + newType.getNameSimple() + "' anotado para o pacote '" +
              pacoteAnotado.getName() + "' como sendo do pacote '" + pacoteDestino.getName() + "'",
          newType);
    }
  }
  newType.setScope(scope);
  newType.resolvSuperType(this);
  newType.setTypeId(++idCount);
  types.verifyMustNotBePresent(newType, this);
  ((SScopeBase) scope).register(newType);
  types.add(newType, (Class<SType<?>>) classForRegister);
}
org.opensingular.formSTypesetTypeId

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

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Option (scala)
  • 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