Java Code Examples for org.apache.commons.lang.builder.ReflectionToStringBuilder#toString()

The following examples show how to use org.apache.commons.lang.builder.ReflectionToStringBuilder#toString() . 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: VendorHeader.java    From kfs with GNU Affero General Public License v3.0 6 votes vote down vote up
@Override
public String toString() {
    class VendorHeaderToStringBuilder extends ReflectionToStringBuilder {
        private VendorHeaderToStringBuilder(Object object) {
            super(object);
        }

        @Override
        public boolean accept(Field field) {
            if (BusinessObject.class.isAssignableFrom(field.getType())) {
                return false;
            }

            DataDictionaryService dataDictionaryService = SpringContext.getBean(DataDictionaryService.class);
            AttributeSecurity attributeSecurity = dataDictionaryService.getAttributeSecurity(VendorHeader.class.getName(), field.getName());
            if (ObjectUtils.isNotNull(attributeSecurity)
                            && (attributeSecurity.isHide() || attributeSecurity.isMask() || attributeSecurity.isPartialMask())) {
                return false;
            }

            return super.accept(field);
        }
    };
    ReflectionToStringBuilder toStringBuilder = new VendorHeaderToStringBuilder(this);
    return toStringBuilder.toString();
}
 
Example 2
Source File: PrintUtility.java    From datawave with Apache License 2.0 6 votes vote down vote up
public static String getPrintableValue(final Value value) {
    if ((value != null) && (value.getSize() > 0)) {
        try {
            final Uid.List uidList = Uid.List.parseFrom(value.get());
            
            return (uidList.getUIDList().toString());
        } catch (final InvalidProtocolBufferException e1) {
            try {
                return (ReflectionToStringBuilder.toString(EdgeValue.decode(value), ToStringStyle.SHORT_PREFIX_STYLE));
            } catch (final Exception e2) {
                try {
                    final ExtendedHyperLogLogPlus ehllp = new ExtendedHyperLogLogPlus(value);
                    
                    return (String.valueOf(ehllp.getCardinality()));
                } catch (final Exception e3) {
                    logger.error("Could not deserialize protobuff" + e2);
                }
            }
        }
    }
    
    return ("");
}
 
Example 3
Source File: PluginConfigInterfaceDto.java    From wecube-platform with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this);
}
 
Example 4
Source File: ListImagesCmdImpl.java    From docker-java with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
 
Example 5
Source File: ManyToOneProperty.java    From geomajas-project-server with GNU Affero General Public License v3.0 4 votes vote down vote up
public String toString() {
	return ReflectionToStringBuilder.toString(this);
}
 
Example 6
Source File: MessageDTO.java    From rice with Educational Community License v2.0 4 votes vote down vote up
public String toString() {
    return ReflectionToStringBuilder.toString(this);
}
 
Example 7
Source File: BusinessAssessmentRowConfig.java    From projectforge-webapp with GNU General Public License v3.0 4 votes vote down vote up
@Override
public String toString()
{
  final ReflectionToStringBuilder builder = new ReflectionToStringBuilder(this);
  return builder.toString();
}
 
Example 8
Source File: SimpleFeature.java    From geomajas-project-server with GNU Affero General Public License v3.0 4 votes vote down vote up
public String toString() {
	return ReflectionToStringBuilder.toString(this);
}
 
Example 9
Source File: Review.java    From customer-review-crawler with The Unlicense 4 votes vote down vote up
public String toString() {
	return ReflectionToStringBuilder.toString(this);
}
 
Example 10
Source File: HibernateTestManyToOne.java    From geomajas-project-server with GNU Affero General Public License v3.0 4 votes vote down vote up
public String toString() {
	return ReflectionToStringBuilder.toString(this);
}
 
Example 11
Source File: WorkerNodeEntity.java    From uid-generator with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
 
Example 12
Source File: OneToManyProperty.java    From geomajas-project-server with GNU Affero General Public License v3.0 4 votes vote down vote up
public String toString() {
	return ReflectionToStringBuilder.toString(this);
}
 
Example 13
Source File: PluginPackageEntity.java    From wecube-platform with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this);
}
 
Example 14
Source File: SystemVariable.java    From wecube-platform with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this);
}
 
Example 15
Source File: PluginConfigInterfaceParameterDto.java    From wecube-platform with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this);
}
 
Example 16
Source File: PluginPackageDto.java    From wecube-platform with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this);
}
 
Example 17
Source File: PluginPackageEntityDto.java    From wecube-platform with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this);
}
 
Example 18
Source File: HibernateTestFeature.java    From geomajas-project-server with GNU Affero General Public License v3.0 4 votes vote down vote up
public String toString() {
	return ReflectionToStringBuilder.toString(this);
}
 
Example 19
Source File: ConfigureHoliday.java    From projectforge-webapp with GNU General Public License v3.0 4 votes vote down vote up
@Override
public String toString()
{
  ReflectionToStringBuilder builder = new ReflectionToStringBuilder(this);
  return builder.toString();
}
 
Example 20
Source File: Base.java    From mybatis-dalgen with Apache License 2.0 2 votes vote down vote up
/**
 * Returns a string representation of the object. In general, the
 * {@code toString} method returns a string that
 * "textually represents" this object. The result should
 * be a concise but informative representation that is easy for a
 * person to read.
 * It is recommended that all subclasses override this method.
 * <p/>
 * The {@code toString} method for class {@code Object}
 * returns a string consisting of the name of the class of which the
 * object is an instance, the at-sign character `{@code @}', and
 * the unsigned hexadecimal representation of the hash code of the
 * object. In other words, this method returns a string equal to the
 * value of:
 * <blockquote>
 * <pre>
 * getClass().getName() + '@' + Integer.toHexString(hashCode())
 * </pre></blockquote>
 *
 * @return a string representation of the object.
 */
@Override
public String toString() {
    return ReflectionToStringBuilder.toString(this);
}