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

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

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

origin: org.opensingular/singular-form-core

/**
 *
 * @param header
 * a subtype of  element type of the list.
 * it can not be the very element type of the list
 * in order to use de element type as header it is necessary to define a displayString and call {@link #SViewListByForm()}
 */
public SViewListByForm(SType header) {
  this.headerPath = header.getNameSimple();
}
origin: org.opensingular/singular-form-core

final void register(SType<?> type) {
  if(isRecursiveReference()) {
    ((SScopeBase) getParentScope()).register(type);
  } else {
    verifyIfMayAddNewType(type.getNameSimpleObj());
    if (localTypes == null) {
      localTypes = new LinkedHashMap<>();
    }
    localTypes.put(type.getNameSimple(), type);
  }
}
origin: org.opensingular/exemplos-form

public TripleConverter(SType left, SType middle, SType right) {
  this.left = left.getNameSimple();
  this.middle = middle.getNameSimple();
  this.right = right.getNameSimple();
}
origin: org.opensingular/singular-form-samples

public TripleConverter(SType left, SType middle, SType right) {
  this.left = left.getNameSimple();
  this.middle = middle.getNameSimple();
  this.right = right.getNameSimple();
}
origin: org.opensingular/form-core

private void addInterno(SType<?> field) {
  if (fields == null) {
    fields = new LinkedHashMap<>();
  }
  fields.put(field.getNameSimple(), new FieldRef(field));
}
origin: org.opensingular/singular-form-core

/**
 * Obtém o valor de um campo a partir do seu tipo O campo deve ser filho
 * imediato desse MTipo
 *
 * @param field Tipo do campo filho
 */
public Object getValue(SType<?> field) {
  return getValue(field.getNameSimple());
}
origin: org.opensingular/form-core

/**
 * Obtém o valor de um campo a partir do seu tipo O campo deve ser filho
 * imediato desse MTipo
 *
 * @param field Tipo do campo filho
 */
public Object getValue(SType<?> field) {
  return getValue(field.getNameSimple());
}
origin: org.opensingular/singular-requirement-module

private String getFormSimpleName(String formTypeName) {
  if (StringUtils.isBlank(formTypeName)) {
    return null;
  }
  return singularFormConfig
      .flatMap(formConfig -> formConfig.getTypeLoader().loadType(formTypeName))
      .map(type -> type.getNameSimple())
      .map(String::toUpperCase)
      .orElse(null);
}
origin: org.opensingular/singular-requirement-commons

private String getFormSimpleName(String formTypeName) {
  if (StringUtils.isBlank(formTypeName)) {
    return null;
  }
  return singularFormConfig
      .flatMap(formConfig -> formConfig.getTypeLoader().loadType(formTypeName))
      .map(type -> type.getNameSimple())
      .map(String::toUpperCase)
      .orElse(null);
}
origin: org.opensingular/singular-form-core

/**
 * Add a new tab to the view tab.
 *
 * @param type the type of the field added to the tab
 * @param title the title of the tab
 * @return the new tab created
 */
public STab addTab(SType<?> type, String title) {
  return addTab(type.getNameSimple(), title)
    .add(type);
}
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 prepareDefaultImports(SDictionary dictionary) {
  for (SType<?> type : dictionary.getType(SType.class).getPackage().getLocalTypes()) {
    imports.put(type.getNameSimple(), type.getName());
  }
}
origin: org.opensingular/singular-form-core

/**
 * Retorna todos os campos do tipo, instanciando os que ainda não foram.
 *
 * @return instancias dos campos
 */
@Nonnull
public List<SInstance> getAllFields() {
  for (SType<?> field : getType().getFields())
    getField(field.getNameSimple());
  return getFields();
}
origin: org.opensingular/singular-requirement-module

@SuppressWarnings("unchecked")
private void addForms(BoxConfigurationData boxConfigurationMetadata) {
  for (Class<? extends SType<?>> formClass : singularModuleConfiguration.getFormTypes()) {
    String name = SFormUtil.getTypeName(formClass);
    Optional<SType<?>> sTypeOptional = singularFormConfig.getTypeLoader().loadType(name);
    if (sTypeOptional.isPresent()) {
      SType<?> sType = sTypeOptional.get();
      String label = sType.asAtr().getLabel();
      boxConfigurationMetadata.getForms().add(new FormDTO(name, sType.getNameSimple(), label));
    }
  }
}
origin: org.opensingular/singular-form-core

DiffInfo(SInstance original, SInstance newer, DiffType type) {
  this.original = original;
  this.newer = newer;
  this.type = type;
  //Copia dados básicos para o caso do diff ser serializado
  SInstance instance = newer == null ? original : newer;
  this.simpleName = instance.getType().getNameSimple();
  this.simpleLabel = instance.getType().asAtr().getLabel();
}
origin: org.opensingular/form-core

DiffInfo(SInstance original, SInstance newer, DiffType type) {
  this.original = original;
  this.newer = newer;
  this.type = type;
  //Copia dados básicos para o caso do diff ser serializado
  SInstance instance = newer == null ? original : newer;
  this.simpleName = instance.getType().getNameSimple();
  this.simpleLabel = instance.getType().asAtr().getLabel();
}
origin: org.opensingular/form-core

/**
 * Retorna todos os campos do tipo, instanciando os que ainda não foram.
 *
 * @return instancias dos campos
 */
public List<SInstance> getAllFields() {
  for (SType<?> field : getType().getFields())
    getField(field.getNameSimple());
  return getFields();
}
origin: org.opensingular/form-core

@Override
public void fillInstance(SInstance ins, T obj) {
  if (!(ins instanceof SIComposite)) {
    throw new SingularFormException("AutoSICompositeConverter somente funciona com instancias compostas.");
  }
  final SIComposite   cins          = (SIComposite) ins;
  final GetterHandler getterHandler = new Mirror().on(obj).get();
  cins.getType().getFields().forEach(f -> cins.setValue(f, getterHandler.field(f.getNameSimple())));
}
origin: org.opensingular/singular-form-core

@Override
public void fillInstance(SInstance ins, T obj) {
  if (!(ins instanceof SIComposite)) {
    throw new SingularFormException("AutoSICompositeConverter somente funciona com instancias compostas.", ins);
  }
  final SIComposite   cins          = (SIComposite) ins;
  final GetterHandler getterHandler = new Mirror().on(obj).get();
  cins.getType().getFields().forEach(f -> cins.setValue(f, getterHandler.field(f.getNameSimple())));
}
origin: org.opensingular/form-core

private static void writeType(ContextArchive ctx, SIPersistenceType pType, SType<?> type) {
  pType.setSuperType(ctx.translateImport(type.getSuperType()));
  
  ensureType(ctx, type.getSuperType());
  if (type.isComposite()) {
    //TODO (por Daniel Bordin) O código abaixo ainda precisa resolver a questão de field que foram extendido
    // e tiveram apenas uma atributo alterado
    for (SType<?> localField : ((STypeComposite<?>) type).getFieldsLocal()) {
      SIPersistenceType pMember = pType.addMember(localField.getNameSimple());
      writeType(ctx, pMember, localField);
    }
  }
}
org.opensingular.formSTypegetNameSimple

Popular methods of SType

  • asAtr
  • 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
  • getDictionary
  • getDependentTypes,
  • getDictionary,
  • hasAttributeDefinedInHierarchy,
  • isDependentType,
  • isTypeOf,
  • newInstance,
  • addAttribute,
  • addDependentType,
  • addInstanceValidator

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Option (scala)
  • Top plugins for Android Studio
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