congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SType.addDependentType
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.opensingular/form-core

public final void setRoot(SInstance root) {
  if (this.root != null) {
    throw new SingularFormException("Não é permitido altera o raiz depois que o mesmo for diferente de null");
  }
  this.root = Objects.requireNonNull(root);
  STypes.streamDescendants(getRoot().getType(), true).forEach(tipo -> {
    // init dependencies
    final Supplier<Collection<SType<?>>> func = tipo.getAttributeValue(SPackageBasic.ATR_DEPENDS_ON_FUNCTION);
    if (func != null) {
      for (SType<?> dependency : func.get()) {
        dependency.addDependentType(tipo);
      }
    }
  });
}
origin: org.opensingular/singular-form-core

public final void setRoot(SInstance root) {
  if (this.root != null) {
    throw new SingularFormException("Não é permitido alterar o raiz depois que o mesmo for diferente de null");
  }
  this.root = Objects.requireNonNull(root);
  STypes.streamDescendants(getRoot().getType(), true).forEach(type -> {
    // init dependencies
    final Supplier<Collection<AtrBasic.DelayedDependsOnResolver>> func = type.getAttributeValue(SPackageBasic.ATR_DEPENDS_ON_FUNCTION);
    if (func != null) {
      for (AtrBasic.DelayedDependsOnResolver resolver : func.get()) {
        for (SType s : resolver.resolve(getRoot().getType(), type)){
          s.addDependentType(type);
        }
      }
    }
  });
}
org.opensingular.formSTypeaddDependentType

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,
  • addInstanceValidator

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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