Java Code Examples for org.apache.commons.lang3.text.WordUtils#uncapitalize()
The following examples show how to use
org.apache.commons.lang3.text.WordUtils#uncapitalize() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Label.java From gremlin-ogm with Apache License 2.0 | 5 votes |
@SuppressWarnings("PMD.ShortMethodName") public static String of(Class<? extends Element> elementType) { String label = alias(elementType, Alias::label); if (label == null) { label = name(elementType); if (is(elementType, Edge.class)) { label = WordUtils.uncapitalize(label); } } return label; }
Example 2
Source File: CapacitorRecord.java From ipst with Mozilla Public License 2.0 | 5 votes |
@Override public void createModelicaName(ModExportContext modContext, DDBManager ddbManager, SimulatorInst modelicaSim) { String modelicaName = DEFAULT_CAPACITOR_PREFIX + "_" + parseName(this.capacitor.getId()); modelicaName = WordUtils.uncapitalize(modelicaName.substring(0, 1)) + modelicaName.substring(1); modelicaName = StaticData.PREF_CAP + modelicaName; modContext.dictionary.add(capacitor, modelicaName); super.setModelicaName(modelicaName); }
Example 3
Source File: CommonBrainCell.java From spring-boot-chatbot with MIT License | 4 votes |
public CommonBrainCell(BrainCell brain, Class<?> clazz, Method active, BeanFactory beanFactory) { this.name = WordUtils.uncapitalize(clazz.getSimpleName()); this.brain = brain; this.active = active; this.beanFactory = beanFactory; }
Example 4
Source File: StringHelper.java From camunda-bpm-swagger with Apache License 2.0 | 4 votes |
public static String getFieldnameFromGetter(final String methodName) { return WordUtils.uncapitalize(StringUtils.removeStart(methodName, "get")); }
Example 5
Source File: StringHelper.java From camunda-bpm-swagger with Apache License 2.0 | 4 votes |
public static String getFieldnameFromGetter(final String methodName) { return WordUtils.uncapitalize(StringUtils.removeStart(methodName, "get")); }
Example 6
Source File: BranchRecord.java From ipst with Mozilla Public License 2.0 | 4 votes |
@Override public void createModelicaName(ModExportContext modContext, DDBManager ddbManager, SimulatorInst modelicaSim) { Equipments.ConnectionInfo terminal1Info = Equipments.getConnectionInfoInBusBreakerView(branch.getTerminal1()); Equipments.ConnectionInfo terminal2Info = Equipments.getConnectionInfoInBusBreakerView(branch.getTerminal2()); bus1 = terminal1Info.getConnectionBus(); bus2 = terminal2Info.getConnectionBus(); //System.out.println("Trafo: " + this.branch.getId() + ". Terminal 1: " + bus1.getId() + ". Terminal 2: " + bus2.getId()); nodeName1 = parseName(bus1.getId()); nodeName2 = parseName(bus2.getId()); String branchName = parseName(branch.getId()); //CIM ID String modelicaName = DEFAULT_BRANCH_PREFIX + branchName; //CIM ID modelicaName = WordUtils.uncapitalize(modelicaName.substring(0, 1)) + modelicaName.substring(1); // modelicaName = parseName(modelicaName); //AƱadido de cara al conversor de PSSE modContext.dictionary.add(branch, modelicaName); super.setModelicaName(modelicaName); ModelTemplate model = null; String ddbid = StaticData.MTC_PREFIX_NAME + super.mtcMapper.get(DEFAULT_BRANCH_PREFIX.substring(0, 1).toUpperCase() + DEFAULT_BRANCH_PREFIX); ModelTemplateContainer mtc = ddbManager.findModelTemplateContainer(ddbid); if (mtc == null) { // LOGGER.warn("EUROSTAG Model Template Container does not exist. Searching Default MODELICA Model Template Container in DDB."); mtc = ddbManager.findModelTemplateContainer(StaticData.MTC_PREFIX_NAME + DEFAULT_BRANCH_TYPE); } if (mtc != null) { for (ModelTemplate mt : mtc.getModelTemplates()) { if (mt.getTypeName().equalsIgnoreCase(DEFAULT_BRANCH_TYPE)) { model = mt; } } if (model != null) { super.setModelicaType(model.getTypeName()); } else { super.setCorrect(false); LOGGER.error("MODELICA Model Template does not exist in DDB."); } } else { super.setCorrect(false); // LOGGER.error("MODELICA Model Template Container does not exist in DDB."); } }
Example 7
Source File: BranchRecord.java From ipst with Mozilla Public License 2.0 | 4 votes |
public void setDEFAULT_BRANCH_PREFIX(String defaultBranchPrefix) { DEFAULT_BRANCH_PREFIX = WordUtils.uncapitalize(defaultBranchPrefix.substring(0, 1)) + defaultBranchPrefix.substring(1); }
Example 8
Source File: ThriftClientKey.java From spring-thrift-starter with MIT License | 4 votes |
public String getServiceName() { if (StringUtils.isEmpty(serviceName)) return WordUtils.uncapitalize(clazz.getEnclosingClass().getSimpleName()); return serviceName; }
Example 9
Source File: EndpointNaming.java From yawp with MIT License | 4 votes |
public String getInstance() { return WordUtils.uncapitalize(getName()); }
Example 10
Source File: EndpointNaming.java From yawp with MIT License | 4 votes |
public String getPipeSinkInstance() { return WordUtils.uncapitalize(getPipeSinkName()); }