Codota Logo
StandardField.setTitle
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • JFileChooser (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now