List of usage examples for org.apache.commons.lang.builder ReflectionToStringBuilder toString
public static String toString(Object object, ToStringStyle style)
Builds a toString
value through reflection.
From source file:org.bibsonomy.lucene.database.params.GenericParam.java
/** * Introspect the current param object and return a string representation of the form attribute = value * for all attributes of this object.//from w w w .ja v a 2s .c o m * * @return - a string representation of the given object by introspection. */ public String toStringByReflection() { return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE); }
From source file:org.nuxeo.connect.update.task.update.RollbackOptions.java
/** * @since 5.7 */ @Override public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE); }
From source file:org.sonar.batch.rule.RuleFinderCompatibility.java
@Override public Rule find(RuleQuery query) { Collection<Rule> all = findAll(query); if (all.size() > 1) { throw new IllegalArgumentException("Non unique result for rule query: " + ReflectionToStringBuilder.toString(query, ToStringStyle.SHORT_PREFIX_STYLE)); } else if (all.isEmpty()) { return null; } else {// w w w . jav a 2s.c om return all.iterator().next(); } }
From source file:wwutil.sys.ReflectUtil.java
public static String dumpObj(Object obj) { if (obj == null) return "null"; return ReflectionToStringBuilder.toString(obj, MyStyle.instance); }