org.n52.faroe.Validation.notNullOrEmpty()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.n52.faroe.Validation.notNullOrEmpty()方法的一些代码示例,展示了Validation.notNullOrEmpty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Validation.notNullOrEmpty()方法的具体详情如下:
包路径:org.n52.faroe.Validation
类名称:Validation
方法名:notNullOrEmpty

Validation.notNullOrEmpty介绍

暂无

代码示例

代码示例来源:origin: org.n52.sensorweb.sos/inspire-code

/**
   * Set the INSPIRE id
   *
   * @param inspireId
   *            the INSPIRE id to set
   */
//    @Setting(InspireSettings.INSPIRE_ID_KEY)
  public void setInspireId(String inspireId) {
    Validation.notNullOrEmpty("The INSPIRE id", inspireId);
    this.inspireId = inspireId;
  }

代码示例来源:origin: 52North/SOS

/**
   * Set the INSPIRE id
   *
   * @param inspireId
   *            the INSPIRE id to set
   */
//    @Setting(InspireSettings.INSPIRE_ID_KEY)
  public void setInspireId(String inspireId) {
    Validation.notNullOrEmpty("The INSPIRE id", inspireId);
    this.inspireId = inspireId;
  }

代码示例来源:origin: org.n52.arctic-sea/svalbard-json

private String getLocalId(JsonNode node) throws DecodingException {
  String localId = node.path(AQDJSONConstants.LOCAL_ID).textValue();
  Validation.notNullOrEmpty("Identifier localId", localId);
  return localId;
}

代码示例来源:origin: org.n52.sensorweb.sos/hibernate-common

@Setting(CodingSettings.DECIMAL_SEPARATOR)
public void setDecimalSeparator(final String separator) throws ConfigurationError {
  Validation.notNullOrEmpty("Decimal separator", separator);
  decimalSeparator = separator;
}

代码示例来源:origin: org.n52.svalbard/svalbard

@Setting(CodingSettings.TOKEN_SEPARATOR)
public void setTokenSeparator(final String separator) throws ConfigurationError {
  Validation.notNullOrEmpty("Token separator", separator);
  tokenSeparator = separator;
}

代码示例来源:origin: org.n52.arctic-sea/svalbard

@Setting(CodingSettings.TOKEN_SEPARATOR)
public void setTokenSeparator(final String separator) throws ConfigurationError {
  Validation.notNullOrEmpty("Token separator", separator);
  tokenSeparator = separator;
}

代码示例来源:origin: org.n52.arctic-sea/svalbard

@Setting(CodingSettings.TUPLE_SEPARATOR)
public void setTupleSeparator(final String separator) throws ConfigurationError {
  Validation.notNullOrEmpty("Tuple separator", separator);
  tupleSeparator = separator;
}

代码示例来源:origin: org.n52.sensorweb.sos/hibernate-common

@Setting(ProcedureDescriptionSettings.DESCRIPTION_TEMPLATE)
public void setDescriptionTemplate(String descriptionTemplate) {
  Validation.notNullOrEmpty(DESCRIPTION_TEMPLATE, descriptionTemplate);
  this.descriptionTemplate = descriptionTemplate;
}

代码示例来源:origin: org.n52.sensorweb.sos/hibernate-common

@Setting(I18NSettings.I18N_DEFAULT_LANGUAGE)
public void setDefaultLanguage(String defaultLanguage) {
  Validation.notNullOrEmpty("Default language as three character string", defaultLanguage);
  this.defaultLanguage = new Locale(defaultLanguage);
}

代码示例来源:origin: org.n52.iceland/statistics

@Setting(ElasticsearchSettingsKeys.INDEX_NAME)
public void setIndexId(String indexId) {
  Validation.notNullOrEmpty(ElasticsearchSettingsKeys.INDEX_NAME, indexId);
  this.indexId = indexId;
}

代码示例来源:origin: org.n52.iceland/statistics

@Setting(ElasticsearchSettingsKeys.CLUSTER_NAME)
public void setClusterName(String clusterName) {
  Validation.notNullOrEmpty(ElasticsearchSettingsKeys.CLUSTER_NAME, clusterName);
  this.clusterName = clusterName;
}

代码示例来源:origin: 52North/SOS

@Setting(ProcedureDescriptionSettings.IDENTIFIER_LONG_NAME_DEFINITION)
public void setIdentifierLongNameDefinition(final String identifierLongNameDefinition) {
  Validation.notNullOrEmpty(IDENTIFIER_LONG_NAME_DEFINITION, identifierLongNameDefinition);
  this.identifierLongNameDefinition = identifierLongNameDefinition;
}

代码示例来源:origin: 52North/SOS

@Setting(ProcedureDescriptionSettings.PROCESS_METHOD_RULES_DEFINITION_DESCRIPTION_TEMPLATE)
public void setProcessMethodRulesDefinitionDescriptionTemplate(
    final String processMethodRulesDefinitionDescriptionTemplate) {
  Validation.notNullOrEmpty(PROCESS_METHOD_RULES_DEFINITION_DESCRIPTION_TEMPLATE,
      processMethodRulesDefinitionDescriptionTemplate);
  this.processMethodRulesDefinitionDescriptionTemplate = processMethodRulesDefinitionDescriptionTemplate;
}

代码示例来源:origin: 52North/SOS

@Setting(CodingSettings.TOKEN_SEPARATOR)
public void setTokenSeparator(final String separator) throws ConfigurationError {
  Validation.notNullOrEmpty("Token separator", separator);
  tokenSeparator = separator;
}

代码示例来源:origin: 52North/SOS

@Setting(CodingSettings.TUPLE_SEPARATOR)
public void setTupleSeparator(final String separator) throws ConfigurationError {
  Validation.notNullOrEmpty("Tuple separator", separator);
  tupleSeparator = separator;
}

代码示例来源:origin: org.n52.arctic-sea/svalbard

@Setting(CodingSettings.DECIMAL_SEPARATOR)
public void setDecimalSeparator(final String separator) throws ConfigurationError {
  Validation.notNullOrEmpty("Decimal separator", separator);
  decimalSeparator = separator;
}

代码示例来源:origin: 52North/SOS

@Setting(ProcedureDescriptionSettings.IDENTIFIER_SHORT_NAME_DEFINITION)
public void setIdentifierShortNameDefinition(final String identifierShortNameDefinition) {
  Validation.notNullOrEmpty(IDENTIFIER_SHORT_NAME_DEFINITION, identifierShortNameDefinition);
  this.identifierShortNameDefinition = identifierShortNameDefinition;
}

代码示例来源:origin: org.n52.sensorweb.sos/hibernate-common

@Setting(CodingSettings.TUPLE_SEPARATOR)
public void setTupleSeparator(final String separator) throws ConfigurationError {
  Validation.notNullOrEmpty("Tuple separator", separator);
  tupleSeparator = separator;
}

代码示例来源:origin: org.n52.iceland/iceland

@Setting(EXISettings.EXI_GRAMMAR)
public void setGrammarType(String grammar) {
  Validation.notNullOrEmpty(EXISettings.EXI_GRAMMAR, grammar);
  if (grammar.equalsIgnoreCase(EXISettings.EXI_GRAMMAR_SCHEMALESS)) {
    setSchemaLessGrammar(true);
  } else if (grammar.equalsIgnoreCase(EXISettings.EXI_GRAMMAR_BASETYPES)) {
    setXSBaseTypeGrammar(true);
  }
}

代码示例来源:origin: 52North/SOS

/**
 * Set the default language
 *
 * @param defaultLanguage
 *            the default language to set
 */
 @Setting(I18NSettings.I18N_DEFAULT_LANGUAGE)
 public void setDefaultLanguage(final String defaultLanguage) {
   Validation.notNullOrEmpty("Default language as three character string", defaultLanguage);
   this.defaultLanguage = InspireLanguageISO6392B.fromValue(defaultLanguage);
 }

相关文章