Tabnine Logo
StandardField.setName
Code IndexAdd Tabnine to your IDE (free)

How to use
setName
method
in
org.tinygroup.metadata.config.stdfield.StandardField

Best Java code snippets using org.tinygroup.metadata.config.stdfield.StandardField.setName (Showing top 3 results out of 315)

origin: org.tinygroup/org.tinygroup.metadata

public void addStandardFields(StandardFields standardFields) {
  if (standardFields != null
      && standardFields.getStandardFieldList() != null) {
    for (StandardField field : standardFields.getStandardFieldList()) {
      if (standardFieldMap.containsKey(field.getId())) {
        if (ConfigUtil.isCheckStrict()) {
          //重复id
          throw new MetadataRuntimeException(STDFIELD_ADD_ALREADY_ERROR, field.getId());
        } else {
          LOGGER.error(new MetadataRuntimeException(STDFIELD_ADD_ALREADY_ERROR, field.getId()));
          continue;
        }
      }
      standardFieldMap.put(field.getId(), field);
      if (field.getNickNames() != null) {
        for (NickName name : field.getNickNames()) {
          StandardField newStandardField = new StandardField();
          newStandardField.setId(name.getId());
          newStandardField.setName(name.getName());
          newStandardField.setTitle(name.getTitle());
          newStandardField.setDefaultValue(field.getDefaultValue());
          newStandardField.setDescription(field.getDescription());
          newStandardField.setTypeId(field.getTypeId());
          standardFieldMap.put(name.getId(), newStandardField);
        }
      }
    }
  }
}
origin: org.tinygroup/ientity

/**
 * 
 * 创建新的标准字段信息带有name和title属性
 * @param relationField
 * @param stdField
 * @return
 */
public StandardField createNewStandardField(RelationField relationField,
    StandardField stdField) {
  String aliasName = relationField.getAliseName();
  String title= relationField.getTitle();
  String refFieldId=relationField.getRefFieldId();
  if(!StringUtil.isBlank(refFieldId)){
    if(StringUtil.isBlank(aliasName)){//如果 ref-field-id值不为空且没有设置别名,那么别名值取自field-id的值
      aliasName=relationField.getFieldId();
    }
  }
  StandardField newStdField = new StandardField();
  if (StringUtil.isBlank(aliasName)) {//如果没有设置aliasName属性则取自标准字段
    aliasName=stdField.getName();
  }
  if(StringUtil.isBlank(title)){//如果为设置title属性则取自标准字段
    title=stdField.getTitle();
  }
  newStdField.setName(aliasName);
  newStdField.setTitle(title);
  return newStdField;
}
origin: org.tinygroup/org.tinygroup.ientity

/**
 * 
 * 创建新的标准字段信息带有name和title属性
 * @param relationField
 * @param stdField
 * @return
 */
public StandardField createNewStandardField(RelationField relationField,
    StandardField stdField) {
  String aliasName = relationField.getAliseName();
  String title= relationField.getTitle();
  String refFieldId=relationField.getRefFieldId();
  if(!StringUtil.isBlank(refFieldId)){
    if(StringUtil.isBlank(aliasName)){//如果 ref-field-id值不为空且没有设置别名,那么别名值取自field-id的值
      aliasName=relationField.getFieldId();
    }
  }
  StandardField newStdField = new StandardField();
  if (StringUtil.isBlank(aliasName)) {//如果没有设置aliasName属性则取自标准字段
    aliasName=stdField.getName();
  }
  if(StringUtil.isBlank(title)){//如果为设置title属性则取自标准字段
    title=stdField.getTitle();
  }
  newStdField.setName(aliasName);
  newStdField.setTitle(title);
  return newStdField;
}
org.tinygroup.metadata.config.stdfieldStandardFieldsetName

Popular methods of StandardField

  • getName
  • <init>
  • getId
  • getTitle
  • setTitle
  • getDefaultValue
  • getDescription
  • getNickNames
  • getTypeId
  • setDefaultValue
  • setDescription
  • setId
  • setDescription,
  • setId,
  • setTypeId

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFileChooser (javax.swing)
  • Top 12 Jupyter Notebook extensions
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