congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
StandardField.setTitle
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.tinygroup.metadata.config.stdfield.StandardField.setTitle (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.stdfieldStandardFieldsetTitle

Popular methods of StandardField

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Sublime Text for Python
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