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

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

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

origin: org.opensingular/singular-form-core

default void setAttributeValue(SType<?> defAttribute, Object value) {
  defAttribute.checkIfIsAttribute();
  setAttributeValue(defAttribute.getName(), null, value);
}
origin: org.opensingular/form-core

default void setAttributeValue(SType<?> defAttribute, Object value) {
  defAttribute.checkIfIsAttribute();
  setAttributeValue(defAttribute.getName(), null, value);
}
origin: org.opensingular/form-core

private SType<?> getAttributeOptional(AtrRef<?, ?, ?> atr) {
  getDictionary().loadPackage(atr.getPackageClass());
  if (atr.isNotBindDone()) {
    return null;
  }
  SType<?> type = getDictionary().getTypeOptional(atr.getNameFull());
  if (type != null) {
    type.checkIfIsAttribute();
  }
  return type;
}
origin: org.opensingular/form-core

final void addAttribute(SType<?> attributeDef) {
  attributeDef.checkIfIsAttribute();
  SType<?> owner = attributeDef.getAttributeDefinitionInfo().getOwner();
  if (owner != null && owner != this) {
    throw new SingularFormException(
        "O Atributo '" + attributeDef.getName() + "' pertence excelusivamente ao tipo '" + owner.getName() +
            "'. Assim não pode ser reassociado a classe '" + getName(), this);
  }
  attributesDefined.add(attributeDef);
}
origin: org.opensingular/singular-form-core

/** Adiciona uma nova definição de atributo ao tipo. */
void add(@Nonnull SType<?> targetOwner, @Nonnull SType<?> attributeDef) {
  AttrInternalRef ref = attributeDef.checkIfIsAttribute();
  SType<?> currentOwner = ref.getOwner();
  if (currentOwner != null && currentOwner != targetOwner) {
    throw new SingularFormException(
        "O Atributo '" + attributeDef.getName() + "' pertence excelusivamente ao tipo '" +
            currentOwner.getName() + "'. Assim não pode ser reassociado a classe '" +
            targetOwner.getName(), targetOwner);
  }
  if (get(ref) != null) {
    throw new SingularFormException(
        "Já existe um atributo '" + ref.getName() + "' definido em " + targetOwner.getName());
  }
  attributes = ArrUtil.arraySet(attributes, ref.getIndex(), attributeDef, SType.class, ref.getMax());
}
origin: org.opensingular/singular-form-core

final SInstance newAttributeInstanceFor(SType<?> typeToBeAppliedAttribute) {
  checkIfIsAttribute();
  SInstance attrInstance;
  if (attrInternalRef.isSelfReference()) {
    attrInstance = typeToBeAppliedAttribute.newInstance(getDictionary().getInternalDicionaryDocument());
  } else {
    attrInstance = newInstance(getDictionary().getInternalDicionaryDocument());
  }
  attrInstance.setAsAttribute(attrInternalRef, typeToBeAppliedAttribute);
  return attrInstance;
}
origin: org.opensingular/form-core

final SInstance newAttributeInstanceFor(SType<?> typeToBeAppliedAttribute) {
  checkIfIsAttribute();
  SInstance attrInstance;
  if (attributeDefinitionInfo.isSelfReference()) {
    attrInstance = typeToBeAppliedAttribute.newInstance(getDictionary().getInternalDicionaryDocument());
  } else {
    attrInstance = newInstance(getDictionary().getInternalDicionaryDocument());
  }
  attrInstance.setAsAttribute(getName(), this);
  return attrInstance;
}
org.opensingular.formSTypecheckIfIsAttribute

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

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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