public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null) ? createNewInstance() : target); if (draftCopy instanceof WSIWmsServer) { final WSIWmsServer copy = ((WSIWmsServer) draftCopy); if (this.isSetName()) { String sourceName; sourceName = this.getName(); String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName)); copy.setName(copyName); } else { copy.name = null; } if (this.isSetUrl()) { String sourceUrl; sourceUrl = this.getUrl(); String copyUrl = ((String) strategy.copy(LocatorUtils.property(locator, "url", sourceUrl), sourceUrl)); copy.setUrl(copyUrl); } else { copy.url = null; } } return draftCopy; }
public boolean equals( ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof WSIWmsServer)) { return false; } if (this == object) { return true; } final WSIWmsServer that = ((WSIWmsServer) object); { String lhsName; lhsName = this.getName(); String rhsName; rhsName = that.getName(); if (!strategy.equals( LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) { return false; } } { String lhsUrl; lhsUrl = this.getUrl(); String rhsUrl; rhsUrl = that.getUrl(); if (!strategy.equals( LocatorUtils.property(thisLocator, "url", lhsUrl), LocatorUtils.property(thatLocator, "url", rhsUrl), lhsUrl, rhsUrl)) { return false; } } return true; }