public String toString() { StringBuffer sb = new StringBuffer(); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<").append(ResourceDescription.ROOT_ELEMENT_NAME).append(">").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<shortname>").append(this.getShortName()).append("</shortname>").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<description>").append(this.getDescription()).append("</description>").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<").append(WEBSCRIPTS_ELEMENT_NAME).append(">").append(this.getScriptIdsAsString()).append("</").append(WEBSCRIPTS_ELEMENT_NAME).append(">").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("</").append(ResourceDescription.ROOT_ELEMENT_NAME).append(">"); return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<").append(ResourceDescription.ROOT_ELEMENT_NAME).append(">").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<shortname>").append(this.getShortName()).append("</shortname>").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<description>").append(this.getDescription()).append("</description>").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<").append(WEBSCRIPTS_ELEMENT_NAME).append(">").append(this.getScriptIdsAsString()).append("</").append(WEBSCRIPTS_ELEMENT_NAME).append(">").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("</").append(ResourceDescription.ROOT_ELEMENT_NAME).append(">"); return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<").append(ResourceDescription.ROOT_ELEMENT_NAME).append(">").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<shortname>").append(this.getShortName()).append("</shortname>").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<description>").append(this.getDescription()).append("</description>").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("<").append(WEBSCRIPTS_ELEMENT_NAME).append(">").append(this.getScriptIdsAsString()).append("</").append(WEBSCRIPTS_ELEMENT_NAME).append(">").append(AbstractBaseDescriptionDocument.NEW_LINE); sb.append(AbstractBaseDescriptionDocument.TAB).append(AbstractBaseDescriptionDocument.TAB).append("</").append(ResourceDescription.ROOT_ELEMENT_NAME).append(">"); return sb.toString(); }
/** * Utility for comparint this instance with another ResourceDsecription * * @param newResourceDescription instance to be compared to * @return true if they are different */ public boolean compare(ResourceDescription newResourceDescription) { if (compareField(newResourceDescription.getShortName(),this.getShortName()) &&compareField(newResourceDescription.getDescription(),this.getDescription()) &&compareField(newResourceDescription.getScriptIdsAsString(),this.getScriptIdsAsString())) { return false; } else { return true; } }
/** * Utility for comparint this instance with another ResourceDsecription * * @param newResourceDescription instance to be compared to * @return true if they are different */ public boolean compare(ResourceDescription newResourceDescription) { if (compareField(newResourceDescription.getShortName(),this.getShortName()) &&compareField(newResourceDescription.getDescription(),this.getDescription()) &&compareField(newResourceDescription.getScriptIdsAsString(),this.getScriptIdsAsString())) { return false; } else { return true; } }
/** * Utility for comparint this instance with another ResourceDsecription * * @param newResourceDescription instance to be compared to * @return true if they are different */ public boolean compare(ResourceDescription newResourceDescription) { if (compareField(newResourceDescription.getShortName(),this.getShortName()) &&compareField(newResourceDescription.getDescription(),this.getDescription()) &&compareField(newResourceDescription.getScriptIdsAsString(),this.getScriptIdsAsString())) { return false; } else { return true; } }