List of usage examples for org.apache.commons.lang.builder ToStringBuilder toString
public String toString()
Returns the built toString
.
This method appends the end of data indicator, and can only be called once.
From source file:misc.TestUtils.java
public static final String fieldsToString(Object o) { ToStringBuilder tsb = new ToStringBuilder(o); List<Pair<String, Object>> fields = getEntityFields(o); for (Pair<String, Object> p : fields) { tsb.append(p.first(), p.second()); }/*from w w w.ja va 2s . com*/ return removeHashCodes(tsb.toString()); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(Request request) { ToStringBuilder toStringBuilder = new ToStringBuilder(request, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("requestID", request.getRequestID()); return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(DSMLModification dsmlModification) { ToStringBuilder toStringBuilder = new ToStringBuilder(dsmlModification, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("name", dsmlModification.getName()); toStringBuilder.append("op", dsmlModification.getOperation()); return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(Reference reference) { ToStringBuilder toStringBuilder = new ToStringBuilder(reference, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("toPsoID", PSPUtil.toString(reference.getToPsoID())); toStringBuilder.append("type", reference.getTypeOfReference()); return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(AddResponse addResponse) { ToStringBuilder toStringBuilder = new ToStringBuilder(addResponse, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("pso", PSPUtil.toString(addResponse.getPso())); toStringBuilder.appendSuper(PSPUtil.toString((Response) addResponse)); return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(SearchResponse searchResponse) { ToStringBuilder toStringBuilder = new ToStringBuilder(searchResponse, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("psos", searchResponse.getPSOs().length); toStringBuilder.appendSuper(PSPUtil.toString((Response) searchResponse)); return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(LookupResponse lookupResponse) { ToStringBuilder toStringBuilder = new ToStringBuilder(lookupResponse, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("pso", PSPUtil.toString(lookupResponse.getPso())); toStringBuilder.appendSuper(PSPUtil.toString((Response) lookupResponse)); return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(ModifyResponse modifyResponse) { ToStringBuilder toStringBuilder = new ToStringBuilder(modifyResponse, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("pso", PSPUtil.toString(modifyResponse.getPso())); toStringBuilder.appendSuper(PSPUtil.toString((Response) modifyResponse)); return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(LookupRequest lookupRequest) { ToStringBuilder toStringBuilder = new ToStringBuilder(lookupRequest, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("psoID", PSPUtil.toString(lookupRequest.getPsoID())); toStringBuilder.append("returnData", lookupRequest.getReturnData()); toStringBuilder.append("requestID", lookupRequest.getRequestID()); return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(DeleteRequest deleteRequest) { ToStringBuilder toStringBuilder = new ToStringBuilder(deleteRequest, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("psoID", PSPUtil.toString(deleteRequest.getPsoID())); toStringBuilder.append("recursive", deleteRequest.isRecursive()); toStringBuilder.appendSuper(PSPUtil.toString((Request) deleteRequest)); return toStringBuilder.toString(); }