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

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

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

origin: org.opensingular/singular-form-core

@Nonnull
final Optional<SType<?>> getLocalTypeOptional(@Nonnull PathReader pathReader) {
  SType<?> type = getLocalTypesMap().get(pathReader.getToken());
  if (type == null) {
    return Optional.empty();
  } else if (pathReader.isLast()) {
    return Optional.of(type);
  }
  return type.getLocalTypeOptional(pathReader.next());
}
origin: org.opensingular/form-core

private void debugAttributesDefined(Appendable appendable, int level) {
  attributesDefined.getAttributes().stream().filter(att -> !getLocalTypeOptional(att.getNameSimple())
      .isPresent()).forEach(att -> {
    try {
      pad(appendable, level + 1).append("att ").append(suppressPackage(att.getName()))
          .append(':').append(suppressPackage(att.getSuperType().getName())).append(
          att.isSelfReference() ? " SELF" : "").append('\n');
    } catch (IOException ex) {
      LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
    }
  });
}
origin: org.opensingular/singular-form-core

private void debugAttributesDefined(Appendable appendable, int level) {
  AttributeDefinitionManager.getStaticAttributes(attributesDefined).stream().filter(att -> !getLocalTypeOptional(
      att.getNameSimple()).isPresent()).forEach(att -> {
    try {
      pad(appendable, level + 1).append("att ").append(suppressPackage(att.getName())).append(':').append(
          suppressPackage(att.getSuperType().getName())).append(att.isSelfReference() ? " SELF" : "")
          .append('\n');
    } catch (IOException ex) {
      LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
    }
  });
}
origin: org.opensingular/form-core

final Optional<SType<?>> getLocalTypeOptional(PathReader pathReader) {
  SType<?> type = getLocalTypesMap().get(pathReader.getToken());
  if (type == null) {
    return Optional.empty();
  } else if (pathReader.isLast()) {
    return Optional.of(type);
  }
  return type.getLocalTypeOptional(pathReader.next());
}
org.opensingular.formSTypegetLocalTypeOptional

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
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Runner (org.openjdk.jmh.runner)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top PhpStorm 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