Example usage for org.apache.commons.lang StringUtils EMPTY

List of usage examples for org.apache.commons.lang StringUtils EMPTY

Introduction

In this page you can find the example usage for org.apache.commons.lang StringUtils EMPTY.

Prototype

String EMPTY

To view the source code for org.apache.commons.lang StringUtils EMPTY.

Click Source Link

Document

The empty String "".

Usage

From source file:com.egt.core.aplicacion.OrdenConjuntoResultados.java

@Override
public String toString() {
    String order = StringUtils.EMPTY;
    String token = StringUtils.EMPTY;
    for (CriterioOrden criterio : criterios) {
        token = criterio.toString();/*from  w w  w  . j  a v a  2  s  .  c o m*/
        order += StringUtils.isBlank(token) ? "" : COMA + token;
    }
    order = StringUtils.removeStart(order, COMA);
    return StringUtils.trimToNull(order);
}

From source file:com.microsoft.alm.plugin.external.commands.RenameCommand.java

/**
 * There is no useful output from this command unless there is an error which we will throw
 *///  w w  w . j  a  v a  2 s . c o m
@Override
public String parseOutput(final String stdout, final String stderr) {
    throwIfError(stderr);

    return StringUtils.EMPTY;
}

From source file:com.amalto.core.storage.hibernate.UpdateReportMappingCreator.java

public UpdateReportMappingCreator(TypeMetadata updateReportType, MetadataRepository repository,
        MappingRepository mappings, boolean preferClobUse) {
    this.repository = repository;
    if (updateReportType == null) {
        throw new IllegalStateException("Update report type cannot be null."); //$NON-NLS-1$
    }/* www.  j a  v  a2 s  . c o  m*/
    USER_UPDATE_REPORT_TYPE = (ComplexTypeMetadata) updateReportType;
    this.mappings = mappings;
    ComplexTypeMetadata databaseUpdateReportType = new ComplexTypeMetadataImpl(StringUtils.EMPTY,
            "X_UPDATE_REPORT", true); //$NON-NLS-1$
    TypeMetadata stringType = new SimpleTypeMetadata(XMLConstants.W3C_XML_SCHEMA_NS_URI, Types.STRING);
    TypeMetadata longStringType = new SimpleTypeMetadata(XMLConstants.W3C_XML_SCHEMA_NS_URI, Types.STRING);
    TypeMetadata longType = new SimpleTypeMetadata(XMLConstants.W3C_XML_SCHEMA_NS_URI, Types.LONG);
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, false, false, false,
            "x_user_name", stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, true, false, true,
            "x_source", stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, true, false, true,
            "x_time_in_millis", longType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, false, false, false,
            "x_operation_type", stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, false, false, false,
            "x_revision_id", stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, false, false, false,
            "x_data_cluster", stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, false, false, false,
            "x_data_model", stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, false, false, false,
            "x_concept", stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    databaseUpdateReportType.addField(new SimpleTypeFieldMetadata(databaseUpdateReportType, false, false, false,
            "x_key", stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), StringUtils.EMPTY));
    SimpleTypeFieldMetadata items_xml = new SimpleTypeFieldMetadata(databaseUpdateReportType, false, false,
            false, "x_items_xml", longStringType, Collections.<String>emptyList(), //$NON-NLS-1$
            Collections.<String>emptyList(), Collections.<String>emptyList(), StringUtils.EMPTY);
    items_xml.getType().setData(TypeMapping.SQL_TYPE,
            preferClobUse ? TypeMapping.SQL_TYPE_CLOB : TypeMapping.SQL_TYPE_TEXT);
    databaseUpdateReportType.addField(items_xml);
    DATABASE_UPDATE_REPORT_TYPE = (ComplexTypeMetadata) databaseUpdateReportType.freeze();
}

From source file:com.netprogs.minecraft.plugins.social.command.help.HelpPage.java

public HelpPage() {
    this.title = StringUtils.EMPTY;
}

From source file:net.sourceforge.fenixedu.presentationTier.candidacydocfiller.PdfFiller.java

protected String getMail(Person person) {
    if (person.hasInstitutionalEmailAddress()) {
        return person.getInstitutionalEmailAddressValue();
    } else {/* w  w w .  j a v a2s  .  c  o m*/
        String emailForSendingEmails = person.getEmailForSendingEmails();
        return emailForSendingEmails != null ? emailForSendingEmails : StringUtils.EMPTY;
    }
}

From source file:com.amalto.core.save.context.BulkLoadContext.java

@Override
public String getChangeSource() {
    return StringUtils.EMPTY;
}

From source file:gobblin.metastore.testing.TestMetadataDatabase.java

TestMetadataDatabase(TestMetastoreDatabaseServer testMetastoreDatabaseServer, String version) throws Exception {
    this.testMetastoreDatabaseServer = testMetastoreDatabaseServer;
    this.database = String.format("gobblin_%s", UUID.randomUUID().toString().replace("-", StringUtils.EMPTY));
    this.resetDatabase(version);
}

From source file:com.apexxs.neonblack.utilities.TikaTextExtractor.java

public String extractFromFile(String fname) {
    String text = StringUtils.EMPTY;

    try (InputStream is = new FileInputStream(fname)) {
        text = extractTextFromInputStream(is);
    } catch (Exception ex) {
        logger.error("Error in TikaTextExtractor.extractFromFile(): " + ex.getMessage());
    }/*from  w  w  w .j a  va 2 s .c  o m*/
    return text;
}

From source file:com.zb.app.common.file.ExcelUtils.java

/**
 * excelrow?T??title?T/*w  ww .j  ava  2 s.co m*/
 * 
 * @param response
 * @param list
 * @param xlsName
 * @param headTitle
 * @return
 */
public static <T> HSSFWorkbook defBuildExcel(List<T> list, String xlsName, String... headTitle) {

    return buildExcel(list, xlsName, new IExcel<T>() {

        @Override
        public void initHSSRow(List<T> list, HSSFSheet sheet) {
            HSSFCell cell;
            for (int j = 0; j < list.size(); j++) {
                T row = list.get(j);
                if (row == null) {
                    continue;
                }
                HSSFRow hssrow = sheet.createRow(j + 1);
                Map<String, String> fieldValMap = BeanUtils.getFieldValueMap(row);

                int i = 0;
                for (Entry<String, String> entry : fieldValMap.entrySet()) {
                    Object value = entry.getValue();
                    cell = hssrow.createCell(i++);
                    cell.setCellType(HSSFCell.CELL_TYPE_STRING);
                    cell.setCellValue(value == null ? StringUtils.EMPTY : value + StringUtils.EMPTY);
                }
            }
        }
    }, headTitle);
}

From source file:net.sourceforge.fenixedu.domain.PersonInformationLog.java

public String getIstUsername() {
    return getPerson() != null ? getPerson().getIstUsername() : StringUtils.EMPTY;
}