List of usage examples for com.google.common.base CaseFormat LOWER_CAMEL
CaseFormat LOWER_CAMEL
To view the source code for com.google.common.base CaseFormat LOWER_CAMEL.
Click Source Link
From source file:org.jclouds.b2.domain.BucketType.java
public static BucketType fromValue(String symbol) { return BucketType.valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, symbol)); }
From source file:io.kazuki.v0.internal.helper.StringHelper.java
public static String toCamelCase(String value) { Preconditions.checkNotNull(value, "value"); String canonical = value.replace('.', '-').toLowerCase(); return CaseFormat.LOWER_HYPHEN.to(CaseFormat.LOWER_CAMEL, canonical); }
From source file:org.jclouds.cloudstack.domain.StorageType.java
public static StorageType fromValue(String type) { try {//from www . ja v a 2 s.com return valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(type, "type"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
From source file:org.jclouds.cloudstack.domain.SystemVmType.java
public static SystemVmType fromValue(String type) { try {//from ww w .j av a 2s.c om return valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(type, "type"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
From source file:org.jclouds.apis.ApiType.java
public static ApiType fromValue(String type) { checkNotEmpty(type, "type must be defined"); try {// w w w . ja v a 2 s. co m return valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, type)); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
From source file:com.sebrichard.mfgen.MetaFieldUtil.java
public static String fieldNameFromMetaField(@NotNull PsiField field) { Preconditions.checkArgument(isMetaField(field)); return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, field.getName().replaceFirst(PREFIX, "")); }
From source file:com.google.api.tools.framework.importers.swagger.NameConverter.java
static String getFieldName(String jsonName) { return CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sanitizeStringValue(jsonName)); }
From source file:org.jclouds.cloudstack.config.CredentialType.java
public static CredentialType fromValue(String credentialType) { return valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(credentialType, "credentialType"))); }
From source file:com.google.api.tools.framework.importers.swagger.aspects.utils.NameConverter.java
public static String getFieldName(String jsonName) { return CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sanitizeStringValue(jsonName)); }
From source file:com.google.api.codegen.LanguageUtil.java
public static String upperCamelToLowerCamel(String name) { name = CommonAcronyms.camelizeUpperAcronyms(name); return CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_CAMEL, name); }