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

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

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

origin: org.opensingular/singular-form-core

@SuppressWarnings("rawtypes")
private <T extends SType<?>> SType<?> addAttributeInternal(SType<?> targetType, AtrRef<T, ?, ?> atr) {
  SType<?> attribute = getAttribute(atr);
  targetType.addAttribute(attribute);
  return attribute;
}
origin: org.opensingular/form-core

@SuppressWarnings("rawtypes")
private <T extends SType<?>> SType<?> addAttributeInternal(SType<?> targetType, AtrRef<T, ?, ?> atr) {
  SType<?> attribute = getAttribute(atr);
  targetType.addAttribute(attribute);
  return attribute;
}
origin: org.opensingular/singular-form-core

/**
 * Registra um atributo que pertence a um único tipo (não pode ser associado novamente a outro tipo) e que pode ser
 * do tipo auto referência (atributo cujo valor é o mesmo do tipo ao qual está
 * associado).
 */
@Nonnull
final AttrInternalRef registerAttribute(@Nonnull SType<?> attr, @Nonnull SType<?> owner, boolean selfReference) {
  AttrInternalRef ref = registerAttribute(attr.getName());
  ref.resolve(attr, owner, selfReference);
  owner.addAttribute(attr);
  return ref;
}
origin: org.opensingular/form-core

private <T extends SType<?>> T createAttributeIntoTypeInternal(SType<?> targetType, String attrFullName,
                                String attrSimpleName, T attributeType,
                                boolean selfReference) {
  getDictionary().getTypesInternal().verifyMustNotBePresent(attrFullName, sPackage);
  SScopeBase scope = Objects.equals(targetType.getPackage(), sPackage) ? targetType : sPackage;
  T attributeDef = scope.extendType(attrSimpleName, attributeType);
  attributeDef.setAttributeDefinitionInfo(new AttributeDefinitionInfo(targetType, selfReference));
  targetType.addAttribute(attributeDef);
  return attributeDef;
}
org.opensingular.formSTypeaddAttribute

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

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 25 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