List of usage examples for org.apache.commons.lang.builder ToStringBuilder appendSuper
public ToStringBuilder appendSuper(String superToString)
Append the toString
from the superclass.
This method assumes that the superclass uses the same ToStringStyle
as this one.
If superToString
is null
, no change is made.
From source file:com.funambol.ctp.core.Auth.java
/** * Returns a string representation of the object. * @return a string representation of the object. */// ww w. j a va 2 s.co m public String toString() { ToStringBuilder sb = new ToStringBuilder(this); sb.appendSuper(super.toString()); sb.append(PARAM_DEVID, devid); sb.append(PARAM_USERNAME, username); sb.append(PARAM_CRED, cred); sb.append(PARAM_FROM, from); return sb.toString(); }
From source file:edu.internet2.middleware.psp.spml.request.SyncResponse.java
@Override public String toString() { ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.appendSuper(super.toString()); for (AddResponse response : this.getAddResponses()) { toStringBuilder.append(PSPUtil.toString(response)); }//from ww w .ja v a 2s . c o m for (ModifyResponse response : this.getModifyResponses()) { toStringBuilder.append(PSPUtil.toString(response)); } for (DeleteResponse response : this.getDeleteResponses()) { toStringBuilder.append(PSPUtil.toString(response)); } for (SynchronizedResponse response : this.getSynchronizedResponses()) { toStringBuilder.append(response); } return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.spml.request.DiffResponse.java
@Override public String toString() { ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.appendSuper(super.toString()); for (AddRequest request : this.getAddRequests()) { toStringBuilder.append("add", PSPUtil.toString(request)); }/* ww w . j a v a2 s.c o m*/ for (ModifyRequest request : this.getModifyRequests()) { toStringBuilder.append("modify", PSPUtil.toString(request)); } for (DeleteRequest request : this.getDeleteRequests()) { toStringBuilder.append("delete", PSPUtil.toString(request)); } for (SynchronizedResponse response : this.getSynchronizedResponses()) { toStringBuilder.append("synchronized", response.toString()); } return toStringBuilder.toString(); }
From source file:edu.internet2.middleware.psp.util.PSPUtil.java
public static String toString(ModifyRequest modifyRequest) { ToStringBuilder toStringBuilder = new ToStringBuilder(modifyRequest, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("psoID", PSPUtil.toString(modifyRequest.getPsoID())); for (Modification modification : modifyRequest.getModifications()) { for (Object object : modification.getOpenContentElements(DSMLModification.class)) { toStringBuilder.append("mod", PSPUtil.toString((DSMLModification) object)); }//from w w w. jav a 2s . c o m try { Map<String, List<Reference>> references = PSPUtil.getReferences(modification.getCapabilityData()); for (String typeOfReference : references.keySet()) { toStringBuilder.append("typeOfReference", typeOfReference); } } catch (PspException e) { // (Probably not a good idea, but this should never happen. ;-) throw new RuntimeException(e); } } toStringBuilder.append("returnData", modifyRequest.getReturnData()); toStringBuilder.appendSuper(PSPUtil.toString((Request) modifyRequest)); return toStringBuilder.toString(); }
From source file:org.glite.security.voms.admin.persistence.model.request.CertificateRequest.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); builder.appendSuper(super.toString()).append("certificateSubject", certificateSubject) .append("certificateIssuer", certificateIssuer).append("certificate", certificate); return builder.toString(); }
From source file:org.glite.security.voms.admin.persistence.model.request.GroupMembershipRequest.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); builder.appendSuper(super.toString()).append("groupName", groupName); return builder.toString(); }
From source file:org.glite.security.voms.admin.persistence.model.request.MembershipRemovalRequest.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); return builder.appendSuper(super.toString()).append("reason", reason).toString(); }
From source file:org.glite.security.voms.admin.persistence.model.request.NewVOMembershipRequest.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); builder.appendSuper(super.toString()).append("confirmId", confirmId); return builder.toString(); }
From source file:org.glite.security.voms.admin.persistence.model.request.RoleMembershipRequest.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); builder.appendSuper(super.toString()).append("groupName", groupName).append("roleName", roleName); return builder.toString(); }
From source file:org.openhab.binding.ecobee.internal.messages.AbstractAuthResponse.java
@Override public String toString() { final ToStringBuilder builder = createToStringBuilder(); builder.appendSuper(super.toString()); if (this.error != null) { builder.append("error", this.error); }/* w ww . ja v a 2s . c o m*/ if (this.errorDescription != null) { builder.append("errorDescription", this.errorDescription); } if (this.errorURI != null) { builder.append("errorURI", this.errorURI); } return builder.toString(); }