Java Code Examples for org.apache.commons.lang.builder.ToStringStyle#SHORT_PREFIX_STYLE
The following examples show how to use
org.apache.commons.lang.builder.ToStringStyle#SHORT_PREFIX_STYLE .
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: VariableConfig.java From openhab1-addons with Eclipse Public License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("name", name); if (converter != null) { tsb.append("converter", converter); } if (action != null) { tsb.append("action", action); } if (forceUpdate) { tsb.append("forceUpdate", forceUpdate); } if (delay > 0.0) { tsb.append("delay", delay); } return tsb.toString(); }
Example 2
Source File: DatapointConfig.java From openhab1-addons with Eclipse Public License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("address", address).append("channel", channel).append("parameter", parameter); if (converter != null) { tsb.append("converter", converter); } if (action != null) { tsb.append("action", action); } if (forceUpdate) { tsb.append("forceUpdate", forceUpdate); } if (delay > 0.0) { tsb.append("delay", delay); } return tsb.toString(); }
Example 3
Source File: KeyValueFactory.java From pentaho-kettle with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} * * @see java.lang.Object#toString() */ @Override public String toString() { final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.SHORT_PREFIX_STYLE ); builder.append( "defaultValue", this.defaultValue ); return builder.toString(); }
Example 4
Source File: KeyValueSet.java From hop with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} * * @see java.lang.Object#toString() */ @Override public String toString() { final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.SHORT_PREFIX_STYLE ); builder.append( "size", this.size() ); return builder.toString(); }
Example 5
Source File: PluginMessages.java From pentaho-kettle with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} * * @see java.lang.Object#toString() */ @Override public String toString() { final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.SHORT_PREFIX_STYLE ); builder.append( "packageName", this.packageName ); return builder.toString(); }
Example 6
Source File: KeyValueSet.java From pentaho-kettle with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} * * @see java.lang.Object#toString() */ @Override public String toString() { final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.SHORT_PREFIX_STYLE ); builder.append( "size", this.size() ); return builder.toString(); }
Example 7
Source File: ForecastBindingConfig.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("locationId", getLocationId()).append("forecast", forecastDay).append("type", getType()) .append("property", getProperty()); if (getRoundingMode() != null) { tsb.append("roundingMode", getRoundingMode()).append("scale", getScale()); } if (getUnit() != null) { tsb.append("unit", getUnit().toString()); } return tsb.toString(); }
Example 8
Source File: WeatherBindingConfig.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("locationId", locationId).append("type", type).append("property", property); if (roundingMode != null) { tsb.append("roundingMode", roundingMode).append("scale", scale); } if (unit != null) { tsb.append("unit", unit.toString()); } return tsb.toString(); }
Example 9
Source File: Weather.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); if (this instanceof org.openhab.binding.weather.internal.model.Forecast) { tsb.append("day", ((org.openhab.binding.weather.internal.model.Forecast) this).getDay()); } tsb.append(temperature).append(atmosphere).append(clouds).append(condition).append(precipitation).append(wind) .append(station).append(error); return tsb.toString(); }
Example 10
Source File: SagerCasterBindingConfig.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("commandType", commandType.toString()); return tsb.toString(); }
Example 11
Source File: AstroBindingConfig.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
@Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("planet", planetName.toString().toLowerCase()).append("type", type).append("property", property); if (offset != 0) { tsb.append("offset", offset); } return tsb.toString(); }
Example 12
Source File: ProgramConfig.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("name", name); if (action != null) { tsb.append("action", action); } return tsb.toString(); }
Example 13
Source File: HmRemoteControlOptions.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
@Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("text", text).append("beep", beep).append("backlight", backlight).append("unit", unit) .append("symbols", symbols); return tsb.toString(); }
Example 14
Source File: AssetPaymentDetail.java From kfs with GNU Affero General Public License v3.0 | 5 votes |
/** * Create a key including the * <li><b>expenditureFinancialDocumentNumber</b></li> * <li><b>expenditureFinancialDocumentTypeCode</b></li> * with accounting information for asset payment distribution * * Make sure the full accounting line information is part of the key * chartOfAccount, accountNumber, subAccountNumber, objectCode, subObjectCode, projectCode * * @return */ public String getAssetPaymentDetailKey() { LinkedHashMap<String,String> paymentMap = assetPaymentToStringMapper(); paymentMap.put("expenditureFinancialDocumentTypeCode",this.getExpenditureFinancialDocumentTypeCode()); paymentMap.put("expenditureFinancialDocumentNumber",this.getExpenditureFinancialDocumentNumber()); //use SHORT_PREFIX_STYLE so that memory address is not part of the toString output ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); for (String key : paymentMap.keySet()){ builder.append(key, paymentMap.get(key)); } return paymentMap.toString(); }
Example 15
Source File: HomematicConfig.java From smarthome with Eclipse Public License 2.0 | 5 votes |
@Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("gatewayAddress", gatewayAddress).append("callbackHost", callbackHost) .append("bindAddress", bindAddress).append("xmlCallbackPort", xmlCallbackPort) .append("binCallbackPort", binCallbackPort).append("gatewayType", gatewayType) .append("rfPort", getRfPort()).append("wiredPort", getWiredPort()).append("hmIpPort", getHmIpPort()) .append("cuxdPort", getCuxdPort()).append("groupPort", getGroupPort()).append("timeout", timeout) .append("discoveryTimeToLive", discoveryTimeToLive).append("installModeDuration", installModeDuration) .append("socketMaxAlive", socketMaxAlive); return tsb.toString(); }
Example 16
Source File: AbstractRegisteredService.java From cas4.0.x-server-wechat with Apache License 2.0 | 5 votes |
public String toString() { final ToStringBuilder toStringBuilder = new ToStringBuilder(null, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("id", this.id); toStringBuilder.append("name", this.name); toStringBuilder.append("description", this.description); toStringBuilder.append("serviceId", this.serviceId); toStringBuilder.append("usernameAttribute", this.usernameAttribute); toStringBuilder.append("attributes", this.allowedAttributes.toArray()); return toStringBuilder.toString(); }
Example 17
Source File: KeyValueFactory.java From hop with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} * * @see java.lang.Object#toString() */ @Override public String toString() { final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.SHORT_PREFIX_STYLE ); builder.append( "defaultValue", this.defaultValue ); return builder.toString(); }
Example 18
Source File: PluginMessages.java From hop with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} * * @see java.lang.Object#toString() */ @Override public String toString() { final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.SHORT_PREFIX_STYLE ); builder.append( "packageName", this.packageName ); return builder.toString(); }