congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SType.getAttributeDefinedLocally
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.opensingular/singular-form-core

@Override
public boolean hasAttributeDefinedDirectly(@Nonnull AtrRef<?, ?, ?> atr) {
  AttrInternalRef ref = getDictionary().getAttributeReferenceOrException(atr);
  return getAttributeDefinedLocally(ref) != null;
}
origin: org.opensingular/singular-form-core

@Nonnull
final static SType<?> getAttributeDefinedHierarchy(@Nonnull SType<?> type, @Nonnull AttrInternalRef ref) {
  Objects.requireNonNull(type);
  Objects.requireNonNull(ref);
  for (SType<?> current = type; current != null; current = current.getSuperType()) {
    SType<?> att = current.getAttributeDefinedLocally(ref);
    if (att != null) {
      return att;
    }
  }
  throw new SingularFormException("Não existe atributo '" + ref.getName() + "' em " + type.getName(), type);
}
origin: org.opensingular/form-core

final SType<?> getAttributeDefinedHierarchy(String fullName) {
  for (SType<?> current = this; current != null; current = current.superType) {
    SType<?> att = current.getAttributeDefinedLocally(fullName);
    if (att != null) {
      return att;
    }
  }
  throw new SingularFormException("Não existe atributo '" + fullName + "' em " + getName(), this);
}
origin: org.opensingular/form-core

public SInstance getCreating(String attributePath) {
  SInstance entry = get(attributePath);
  if (entry != null) {
    return entry;
  }
  for (SType<?> current = owner; current != null; current = current.getSuperType()) {
    SType<?> attrType = current.getAttributeDefinedLocally(attributePath);
    if (attrType != null) {
      SInstance attrInstance = attrType.newAttributeInstanceFor(owner);
      if (attributes == null) {
        attributes = new LinkedHashMap<>();
      }
      attributes.put(attributePath, attrInstance);
      return attrInstance;
    }
  }
  if(owner != null) {
    throw new SingularFormException(
        "Não existe o atributo '" + attributePath + "' definido em '" + owner.getName()
        + "' ou nos tipos extendidos");
  } else {
    throw new SingularFormException("Não existe o atributo '" + attributePath + "'");
  }
}
origin: org.opensingular/singular-form-core

@Nonnull
protected SInstance createNewAttribute(@Nonnull AttrInternalRef ref) {
  for (SType<?> current = getOwner(); current != null; current = current.getSuperType()) {
    SType<?> attrType = current.getAttributeDefinedLocally(ref);
    if (attrType != null) {
      return set(ref, attrType.newAttributeInstanceFor(getOwner()));
    }
  }
  throw new SingularFormException(
      "Não existe o atributo '" + ref.getName() + "' definido em '" + getOwner().getName() +
          "' ou nos tipos pai do mesmo", getOwner());
}
org.opensingular.formSTypegetAttributeDefinedLocally

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

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JCheckBox (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now