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:net.sourceforge.fenixedu.presentationTier.docs.thesis.ApproveJuryDocument.java
@Override protected void fillGeneric() { super.fillGeneric(); Thesis thesis = getThesis();// w w w .j a va2 s . c o m final ThesisEvaluationParticipant thesisEvaluationParticipant = thesis.getProposalApprover(); final String author; final String date; final String ccAuthor; final String ccDate; if (thesisEvaluationParticipant == null) { author = date = ccAuthor = ccDate = StringUtils.EMPTY; } else { final Person person = thesisEvaluationParticipant.getPerson(); if (person != null && person.hasRole(RoleType.SCIENTIFIC_COUNCIL)) { author = date = StringUtils.EMPTY; ccAuthor = thesisEvaluationParticipant.getPersonName(); ccDate = String.format(new Locale("pt"), "%1$td de %1$tB de %1$tY", thesis.getApproval().toDate()); } else { ccAuthor = ccDate = StringUtils.EMPTY; author = thesisEvaluationParticipant.getPersonName(); date = String.format(new Locale("pt"), "%1$td de %1$tB de %1$tY", thesis.getApproval().toDate()); } } addParameter("author", author); addParameter("date", date); addParameter("ccAuthor", ccAuthor); addParameter("ccDate", ccDate); }
From source file:com.aionemu.gameserver.model.team2.common.events.PlayerLeavedEvent.java
public PlayerLeavedEvent(T alliance, Player player, LeaveReson reason) { this(alliance, player, reason, StringUtils.EMPTY); }
From source file:com.chadekin.jadys.commons.expression.impl.LogicalExpressionBuilder.java
@Override public String build() { if (value == null || StringUtils.isBlank(value.toString())) { return StringUtils.EMPTY; }// w w w .j a va 2 s.c o m StringBuilder result = new StringBuilder(JadysKeys.SPACE).append(operator.getOperator()) .append(JadysKeys.SPACE).append(JadysKeys.OPEN_PARENTHESIS).append(value) .append(JadysKeys.CLOSE_PARENTHESIS); return result.toString(); }
From source file:com.mmj.app.web.tools.EnumViewTools.java
public static String subjectEnumDesc(Integer v) { if (v == null) { return StringUtils.EMPTY; }//from www . j a va 2 s . co m return SubjectEnum.getEnum(v).getDesc(); }
From source file:com.chadekin.jadys.commons.expression.impl.DefaultExpressionBuilder.java
@Override public String build() { if (SqlExpressionBuilder.isBlankValue(value)) { return StringUtils.EMPTY; }// w ww. j a va 2 s . com StringBuilder result = new StringBuilder(operator.getOperator()) .append(SqlValueFormatterFactory.format(value).build()); return result.toString(); }
From source file:com.amalto.core.storage.hibernate.UserTypeMappingRepository.java
public MetadataRepository visit(ComplexTypeMetadata complexType) { TypeMapping typeMapping = complexType.accept(getTypeMappingCreator(complexType, strategy)); // Add MDM specific record specific metadata ComplexTypeMetadata database = typeMapping.getDatabase(); if (database.isInstantiable() && !database.isFrozen()) { TypeMetadata longType = new SoftTypeRef(internalRepository, XMLConstants.W3C_XML_SCHEMA_NS_URI, Types.LONG, false); TypeMetadata stringType = new SoftTypeRef(internalRepository, XMLConstants.W3C_XML_SCHEMA_NS_URI, Types.STRING, false); database.addField(new SimpleTypeFieldMetadata(database, false, false, true, Storage.METADATA_TIMESTAMP, longType, Collections.<String>emptyList(), Collections.<String>emptyList(), Collections.<String>emptyList(), StringUtils.EMPTY)); database.addField(new SimpleTypeFieldMetadata(database, false, false, false, Storage.METADATA_TASK_ID, stringType, Collections.<String>emptyList(), Collections.<String>emptyList(), Collections.<String>emptyList(), StringUtils.EMPTY)); }/*from ww w . jav a 2s . c om*/ // Register mapping internalRepository.addTypeMetadata(typeMapping.getDatabase()); mappings.addMapping(typeMapping); return internalRepository; }
From source file:net.sourceforge.ajaxtags.tags.AjaxAutocompleteTagTest.java
/** * Test options./*from www.j av a2 s . c om*/ */ @Test public void testOptions() { tag.setAfterUpdate("Object.method"); tag.setClassName(StringUtils.EMPTY); assertEquals("Options 1", "afterUpdate: Object.method, autoSelect: false", tag.getOptions().toString()); tag.setAfterUpdate("function(value){alert('value: '+value);}"); tag.setAutoSelect(true); assertEquals("Options 2", "afterUpdate: function(value){alert('value: '+value);}, autoSelect: true", tag.getOptions().toString()); }
From source file:cn.cuizuoli.appranking.http.converter.JsoupHttpMessageConverter.java
@Override protected Document readInternal(Class<? extends Document> clazz, HttpInputMessage inputMessage) throws IOException { Charset charset = getContentTypeCharset(inputMessage.getHeaders().getContentType()); return Jsoup.parse(inputMessage.getBody(), charset.name(), StringUtils.EMPTY); }
From source file:com.amalto.core.server.routing.NoOpService.java
@Override public String receiveFromInbound(ItemPOJOPK itemPK, String routingOrderID, String parameters) throws XtentisException { try {/* w w w. j av a 2s .c om*/ Thread.sleep(pauseTime); } catch (InterruptedException e) { throw new XtentisException(e); } return StringUtils.EMPTY; }
From source file:com.amalto.core.servlet.ExportServlet.java
private static String getParameter(HttpServletRequest request, String parameter, boolean isMandatory) { return getParameter(request, parameter, isMandatory, StringUtils.EMPTY); }