public Object clone() { return copyTo(createNewInstance()); }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
Boolean acceptVersionsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAcceptVersions(), rightObject.isSetAcceptVersions()); if (acceptVersionsShouldBeMergedAndSet == Boolean.TRUE) { AcceptVersionsType lhsAcceptVersions; lhsAcceptVersions = leftObject.getAcceptVersions(); AcceptVersionsType rhsAcceptVersions; rhsAcceptVersions = rightObject.getAcceptVersions(); AcceptVersionsType mergedAcceptVersions = ((AcceptVersionsType) strategy.merge(LocatorUtils.property(leftLocator, "acceptVersions", lhsAcceptVersions), LocatorUtils.property(rightLocator, "acceptVersions", rhsAcceptVersions), lhsAcceptVersions, rhsAcceptVersions, leftObject.isSetAcceptVersions(), rightObject.isSetAcceptVersions())); target.setAcceptVersions(mergedAcceptVersions); } else { if (acceptVersionsShouldBeMergedAndSet == Boolean.FALSE) { Boolean sectionsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetSections(), rightObject.isSetSections()); if (sectionsShouldBeMergedAndSet == Boolean.TRUE) { SectionsType lhsSections; lhsSections = leftObject.getSections(); SectionsType rhsSections; rhsSections = rightObject.getSections(); SectionsType mergedSections = ((SectionsType) strategy.merge(LocatorUtils.property(leftLocator, "sections", lhsSections), LocatorUtils.property(rightLocator, "sections", rhsSections), lhsSections, rhsSections, leftObject.isSetSections(), rightObject.isSetSections())); target.setSections(mergedSections); } else { if (sectionsShouldBeMergedAndSet == Boolean.FALSE) { Boolean acceptFormatsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAcceptFormats(), rightObject.isSetAcceptFormats()); if (acceptFormatsShouldBeMergedAndSet == Boolean.TRUE) { AcceptFormatsType lhsAcceptFormats; lhsAcceptFormats = leftObject.getAcceptFormats(); AcceptFormatsType rhsAcceptFormats; rhsAcceptFormats = rightObject.getAcceptFormats(); AcceptFormatsType mergedAcceptFormats = ((AcceptFormatsType) strategy.merge(LocatorUtils.property(leftLocator, "acceptFormats", lhsAcceptFormats), LocatorUtils.property(rightLocator, "acceptFormats", rhsAcceptFormats), lhsAcceptFormats, rhsAcceptFormats, leftObject.isSetAcceptFormats(), rightObject.isSetAcceptFormats()));
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof GetCapabilitiesType) { final GetCapabilitiesType copy = ((GetCapabilitiesType) draftCopy); if (this.acceptVersions!= null) { AcceptVersionsType sourceAcceptVersions; sourceAcceptVersions = this.getAcceptVersions(); AcceptVersionsType copyAcceptVersions = ((AcceptVersionsType) strategy.copy(LocatorUtils.property(locator, "acceptVersions", sourceAcceptVersions), sourceAcceptVersions)); copy.setAcceptVersions(copyAcceptVersions); } else { copy.acceptVersions = null; sourceSections = this.getSections(); SectionsType copySections = ((SectionsType) strategy.copy(LocatorUtils.property(locator, "sections", sourceSections), sourceSections)); copy.setSections(copySections); } else { copy.sections = null; sourceAcceptFormats = this.getAcceptFormats(); AcceptFormatsType copyAcceptFormats = ((AcceptFormatsType) strategy.copy(LocatorUtils.property(locator, "acceptFormats", sourceAcceptFormats), sourceAcceptFormats)); copy.setAcceptFormats(copyAcceptFormats); } else { copy.acceptFormats = null; sourceUpdateSequence = this.getUpdateSequence(); String copyUpdateSequence = ((String) strategy.copy(LocatorUtils.property(locator, "updateSequence", sourceUpdateSequence), sourceUpdateSequence)); copy.setUpdateSequence(copyUpdateSequence); } else { copy.updateSequence = null;
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { AcceptVersionsType theAcceptVersions; theAcceptVersions = this.getAcceptVersions(); strategy.appendField(locator, this, "acceptVersions", buffer, theAcceptVersions, this.isSetAcceptVersions()); } { SectionsType theSections; theSections = this.getSections(); strategy.appendField(locator, this, "sections", buffer, theSections, this.isSetSections()); } { AcceptFormatsType theAcceptFormats; theAcceptFormats = this.getAcceptFormats(); strategy.appendField(locator, this, "acceptFormats", buffer, theAcceptFormats, this.isSetAcceptFormats()); } { String theUpdateSequence; theUpdateSequence = this.getUpdateSequence(); strategy.appendField(locator, this, "updateSequence", buffer, theUpdateSequence, this.isSetUpdateSequence()); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { AcceptVersionsType theAcceptVersions; theAcceptVersions = this.getAcceptVersions(); strategy.appendField(locator, this, "acceptVersions", buffer, theAcceptVersions); } { SectionsType theSections; theSections = this.getSections(); strategy.appendField(locator, this, "sections", buffer, theSections); } { AcceptFormatsType theAcceptFormats; theAcceptFormats = this.getAcceptFormats(); strategy.appendField(locator, this, "acceptFormats", buffer, theAcceptFormats); } { String theUpdateSequence; theUpdateSequence = this.getUpdateSequence(); strategy.appendField(locator, this, "updateSequence", buffer, theUpdateSequence); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { String theService; theService = this.getService(); strategy.appendField(locator, this, "service", buffer, theService); } return buffer; }
public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public void mergeFrom(Object left, Object right) { final MergeStrategy2 strategy = JAXBMergeStrategy.INSTANCE; mergeFrom(null, null, left, right, strategy); }
/** * Create an instance of {@link GetCapabilitiesType } * */ public GetCapabilitiesType createGetCapabilitiesType() { return new GetCapabilitiesType(); }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof GetCapabilitiesType) { final GetCapabilitiesType copy = ((GetCapabilitiesType) draftCopy); Boolean acceptVersionsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAcceptVersions()); if (acceptVersionsShouldBeCopiedAndSet == Boolean.TRUE) { AcceptVersionsType sourceAcceptVersions; sourceAcceptVersions = this.getAcceptVersions(); AcceptVersionsType copyAcceptVersions = ((AcceptVersionsType) strategy.copy(LocatorUtils.property(locator, "acceptVersions", sourceAcceptVersions), sourceAcceptVersions, this.isSetAcceptVersions())); copy.setAcceptVersions(copyAcceptVersions); } else { if (acceptVersionsShouldBeCopiedAndSet == Boolean.FALSE) { Boolean sectionsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetSections()); if (sectionsShouldBeCopiedAndSet == Boolean.TRUE) { SectionsType sourceSections; sourceSections = this.getSections(); SectionsType copySections = ((SectionsType) strategy.copy(LocatorUtils.property(locator, "sections", sourceSections), sourceSections, this.isSetSections())); copy.setSections(copySections); } else { if (sectionsShouldBeCopiedAndSet == Boolean.FALSE) { Boolean acceptFormatsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAcceptFormats()); if (acceptFormatsShouldBeCopiedAndSet == Boolean.TRUE) { AcceptFormatsType sourceAcceptFormats; sourceAcceptFormats = this.getAcceptFormats(); AcceptFormatsType copyAcceptFormats = ((AcceptFormatsType) strategy.copy(LocatorUtils.property(locator, "acceptFormats", sourceAcceptFormats), sourceAcceptFormats, this.isSetAcceptFormats())); copy.setAcceptFormats(copyAcceptFormats); } else {
lhsAcceptVersions = leftObject.getAcceptVersions(); AcceptVersionsType rhsAcceptVersions; rhsAcceptVersions = rightObject.getAcceptVersions(); target.setAcceptVersions(((AcceptVersionsType) strategy.merge(LocatorUtils.property(leftLocator, "acceptVersions", lhsAcceptVersions), LocatorUtils.property(rightLocator, "acceptVersions", rhsAcceptVersions), lhsAcceptVersions, rhsAcceptVersions))); lhsSections = leftObject.getSections(); SectionsType rhsSections; rhsSections = rightObject.getSections(); target.setSections(((SectionsType) strategy.merge(LocatorUtils.property(leftLocator, "sections", lhsSections), LocatorUtils.property(rightLocator, "sections", rhsSections), lhsSections, rhsSections))); lhsAcceptFormats = leftObject.getAcceptFormats(); AcceptFormatsType rhsAcceptFormats; rhsAcceptFormats = rightObject.getAcceptFormats(); target.setAcceptFormats(((AcceptFormatsType) strategy.merge(LocatorUtils.property(leftLocator, "acceptFormats", lhsAcceptFormats), LocatorUtils.property(rightLocator, "acceptFormats", rhsAcceptFormats), lhsAcceptFormats, rhsAcceptFormats))); lhsUpdateSequence = leftObject.getUpdateSequence(); String rhsUpdateSequence; rhsUpdateSequence = rightObject.getUpdateSequence(); target.setUpdateSequence(((String) strategy.merge(LocatorUtils.property(leftLocator, "updateSequence", lhsUpdateSequence), LocatorUtils.property(rightLocator, "updateSequence", rhsUpdateSequence), lhsUpdateSequence, rhsUpdateSequence)));
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { AcceptVersionsType theAcceptVersions; theAcceptVersions = this.getAcceptVersions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptVersions", theAcceptVersions), currentHashCode, theAcceptVersions, this.isSetAcceptVersions()); } { SectionsType theSections; theSections = this.getSections(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sections", theSections), currentHashCode, theSections, this.isSetSections()); } { AcceptFormatsType theAcceptFormats; theAcceptFormats = this.getAcceptFormats(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptFormats", theAcceptFormats), currentHashCode, theAcceptFormats, this.isSetAcceptFormats()); } { String theUpdateSequence; theUpdateSequence = this.getUpdateSequence(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "updateSequence", theUpdateSequence), currentHashCode, theUpdateSequence, this.isSetUpdateSequence()); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { AcceptVersionsType theAcceptVersions; theAcceptVersions = this.getAcceptVersions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptVersions", theAcceptVersions), currentHashCode, theAcceptVersions); } { SectionsType theSections; theSections = this.getSections(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sections", theSections), currentHashCode, theSections); } { AcceptFormatsType theAcceptFormats; theAcceptFormats = this.getAcceptFormats(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptFormats", theAcceptFormats), currentHashCode, theAcceptFormats); } { String theUpdateSequence; theUpdateSequence = this.getUpdateSequence(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "updateSequence", theUpdateSequence), currentHashCode, theUpdateSequence); } return currentHashCode; }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public void mergeFrom(Object left, Object right) { final MergeStrategy strategy = JAXBMergeStrategy.INSTANCE; mergeFrom(null, null, left, right, strategy); }
/** * Create an instance of {@link GetCapabilitiesType } * */ public GetCapabilitiesType createGetCapabilitiesType() { return new GetCapabilitiesType(); }