List of usage examples for org.apache.commons.lang StringUtils EMPTY
String EMPTY
To view the source code for org.apache.commons.lang StringUtils EMPTY.
Click Source Link
""
. From source file:edu.northwestern.bioinformatics.studycalendar.web.PingController.java
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { return new ModelAndView(new LiteralTextView(StringUtils.EMPTY)); }
From source file:com.tera.common.network.template.packet.DummyPacketTemplate.java
@Override public String getName() { return StringUtils.EMPTY; }
From source file:com.amalto.core.history.accessor.NoOpAccessor.java
public String getActualType() { return StringUtils.EMPTY; }
From source file:cec.easyshop.cockpits.ticket.email.context.AcceleratorCustomerTicketContext.java
@Override public String getTo() { if (getTicket().getCustomer() instanceof CustomerModel) { String result = StringUtils.EMPTY; final CustomerModel ticketCustomer = (CustomerModel) getTicket().getCustomer(); if (CustomerType.GUEST.equals(ticketCustomer.getType())) { result = StringUtils.substringAfter(getTicket().getCustomer().getUid(), PIPE); } else {/*from w ww . j a v a 2 s . c o m*/ result = ticketCustomer.getUid(); } return result; } return super.getTo(); }
From source file:info.magnolia.cms.gui.control.Password.java
public String getHtml() { StringBuffer html = new StringBuffer(); String value = StringUtils.EMPTY; if (this.getEncoding() == ENCODING_BASE64) { // show number of characters (using spaces) String valueDecoded = new String(Base64.decodeBase64(this.getValue().getBytes())); for (int i = 0; i < valueDecoded.length(); i++) { value += " "; //$NON-NLS-1$ }//from w w w .j ava 2 s .c o m } else if (this.getEncoding() == ENCODING_UNIX) { value = StringUtils.EMPTY; } else { value = this.getValue(); } html.append("<input type=\"password\""); //$NON-NLS-1$ html.append(" name=\"" + this.getName() + "\""); //$NON-NLS-1$ //$NON-NLS-2$ html.append(" id=\"" + this.getName() + "\""); //$NON-NLS-1$ //$NON-NLS-2$ html.append(" value=\"" + value + "\""); //$NON-NLS-1$ //$NON-NLS-2$ html.append(getHtmlEvents()); html.append(this.getHtmlCssClass()); html.append(this.getHtmlCssStyles()); html.append(" />"); //$NON-NLS-1$ if (this.getSaveInfo()) { html.append(this.getHtmlSaveInfo()); } return html.toString(); }
From source file:com.amalto.core.load.xml.SetId.java
public void parse(StateContext context, XMLStreamReader reader) throws XMLStreamException { int next = reader.next(); if (next == XMLEvent.END_ELEMENT) { // Means we started an ID but got no text in it, so set it to empty string context.getMetadata().setId(context.getCurrentIdElement(), StringUtils.EMPTY); // ... and move to EndElement state context.setCurrent(EndElement.INSTANCE); return;//from ww w. ja v a2s .com } else if (next != XMLEvent.CHARACTERS) { // Everything else (not END_ELEMENT and not CHARACTERS is error). throw new IllegalStateException("Expected characters but got XML event id #" + next); } // We're parsing characters so call super.parse(context, reader)... super.parse(context, reader); // ...and we're also setting id for metadata context.getMetadata().setId(context.getCurrentIdElement(), reader.getText()); // If we're ready, flush document if (doFlush(context)) { Utils.doParserCallback(context, reader, context.getMetadata()); } }
From source file:com.chadekin.jadys.commons.expression.SqlExpressionCleaning.java
public default String cleanExpression(String expression) { if (StringUtils.isBlank(expression)) return StringUtils.EMPTY; if (expression.startsWith(JadysSqlOperation.AND.toString())) { expression = expression.replaceFirst(JadysSqlOperation.AND.toString(), StringUtils.EMPTY); } else if (expression.startsWith(JadysSqlOperation.OR.toString())) { expression = expression.replaceFirst(JadysSqlOperation.OR.toString(), StringUtils.EMPTY); }/*from w w w .j a va2 s . c o m*/ return expression.trim(); }
From source file:com.codenjoy.dojo.kata.model.levels.NullAlgorithm.java
@Override public String author() { return StringUtils.EMPTY; }
From source file:com.alibaba.otter.shared.common.utils.compile.model.JavaSource.java
public JavaSource(String sourceString) { String className = RegexUtils.findFirst(sourceString, "public class (?s).*?{").split("extends")[0] .split("implements")[0].replaceAll("public class ", StringUtils.EMPTY) .replace("{", StringUtils.EMPTY).trim(); String packageName = RegexUtils.findFirst(sourceString, "package (?s).*?;") .replaceAll("package ", StringUtils.EMPTY).replaceAll(";", StringUtils.EMPTY).trim(); this.packageName = packageName; this.className = className; this.source = sourceString; }
From source file:com.microsoft.alm.plugin.idea.ui.workitem.VcsWorkItemsModelTest.java
@Before public void setUp() { model = new VcsWorkItemsModel(mockProject); operation = new WorkItemLookupOperation(StringUtils.EMPTY); }