public void toString(ToStringBuilder toStringBuilder) { super.toString(toStringBuilder); { String theValue; theValue = this.getValue(); toStringBuilder.append("value", theValue); } }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Profile)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } super.equals(object, equalsBuilder); final Profile that = ((Profile) object); equalsBuilder.append(this.getValue(), that.getValue()); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getValue()); }
public String getProfile(EmbeddedAnnotation annotation) { if (annotation instanceof Profile) { Profile profile=(Profile) annotation; return profile.getValue(); } else { for (Property prop: annotation.getProperty()) { if (prop.getKey().equals(PROFILE_PROPERTY)) { return (String) prop.getValue(); } } return null; } }