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

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

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

origin: org.opensingular/singular-form-core

public final SType<I> addDependentType(SType<?> type) {
  if (!isDependentType(type)) {
    if (dependentTypes == null) {
      dependentTypes = new LinkedHashSet<>();
    }
    dependentTypes.add(type);
  }
  return this;
}
origin: org.opensingular/singular-form-core

public final boolean isDependentType(SType<?> type) {
  if (dependentTypes != null) {
    for (SType<?> d : dependentTypes) {
      if (type.isTypeOf(d)) {
        return true;
      }
    }
  }
  return superType != null && superType.isDependentType(type);
}
origin: org.opensingular/form-core

public final boolean isDependentType(SType<?> type) {
  if (dependentTypes != null) {
    for (SType<?> d : dependentTypes) {
      if (type.isTypeOf(d)) {
        return true;
      }
    }
  }
  return superType != null && superType.isDependentType(type);
}
origin: org.opensingular/form-core

public final SType<I> addDependentType(SType<?> type) {
  if (! isDependentType(type)) {
    if (type.hasDirectOrInderectDependentType(this)) {
      throw new SingularFormException(
          "Referência circular de dependência detectada ao tentar adicionar " + type +
              " como dependente de " + this);
    }
    if (dependentTypes == null) {
      dependentTypes = new LinkedHashSet<>();
    }
    dependentTypes.add(type);
  }
  return this;
}
origin: org.opensingular/singular-form-core

/** Verifica se o tipo atual tem todos os tipos informados como campos dependentes. */
public AssertionsSType isDependentType(SType<?>... types) {
  for (SType<?> type : types) {
    if (!getTarget().isDependentType(type)) {
      throw new AssertionError(errorMsg("O tipo " + type + " não está como dependente de " + getTarget() +
          " ( isDependentType(type) retornou false)"));
    }
  }
  return this;
}
origin: org.opensingular/singular-form-core

/** Verifica se o tipo atual não possui nenhum dos tipos informados como campos dependentes. */
public AssertionsSType isNotDependentType(SType<?>... types) {
  for (SType<?> type : types) {
    if (getTarget().isDependentType(type)) {
      throw new AssertionError(errorMsg("O tipo " + type + " está como dependente de " + getTarget() +
          " ( isDependentType(type) retornou true)"));
    }
  }
  return this;
}
origin: org.opensingular/form-wicket

    .collect(toSet());
final Predicate<SType<?>> isDependent         = (type) -> fieldInstance.getType().isDependentType(type);
final Predicate<SType<?>> isElementsDependent = (type) -> type.isList() && isDependent.test(((STypeList<?, ?>) type).getElementsType());
org.opensingular.formSTypeisDependentType

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,
  • isTypeOf,
  • newInstance,
  • addAttribute,
  • addDependentType,
  • addInstanceValidator

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • BoxLayout (javax.swing)
  • Top Vim 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