/** * Create an instance of {@link AcceptFormatsType } * */ public AcceptFormatsType createAcceptFormatsType() { return new AcceptFormatsType(); }
public Object clone() { return copyTo(createNewInstance()); }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List<String> theOutputFormat; theOutputFormat = (this.isSetOutputFormat()?this.getOutputFormat():null); strategy.appendField(locator, this, "outputFormat", buffer, theOutputFormat, this.isSetOutputFormat()); } return buffer; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof AcceptFormatsType) { final AcceptFormatsType copy = ((AcceptFormatsType) draftCopy); { Boolean outputFormatShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetOutputFormat()); if (outputFormatShouldBeCopiedAndSet == Boolean.TRUE) { List<String> sourceOutputFormat; sourceOutputFormat = (this.isSetOutputFormat()?this.getOutputFormat():null); @SuppressWarnings("unchecked") List<String> copyOutputFormat = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "outputFormat", sourceOutputFormat), sourceOutputFormat, this.isSetOutputFormat())); copy.unsetOutputFormat(); if (copyOutputFormat!= null) { List<String> uniqueOutputFormatl = copy.getOutputFormat(); uniqueOutputFormatl.addAll(copyOutputFormat); } } else { if (outputFormatShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetOutputFormat(); } } } } return draftCopy; }
public void setOutputFormat(List<String> value) { this.outputFormat = null; if (value!= null) { List<String> draftl = this.getOutputFormat(); draftl.addAll(value); } }
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy2 strategy) { if (right instanceof AcceptFormatsType) { final AcceptFormatsType target = this; final AcceptFormatsType leftObject = ((AcceptFormatsType) left); final AcceptFormatsType rightObject = ((AcceptFormatsType) right); { Boolean outputFormatShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetOutputFormat(), rightObject.isSetOutputFormat()); if (outputFormatShouldBeMergedAndSet == Boolean.TRUE) { List<String> lhsOutputFormat; lhsOutputFormat = (leftObject.isSetOutputFormat()?leftObject.getOutputFormat():null); List<String> rhsOutputFormat; rhsOutputFormat = (rightObject.isSetOutputFormat()?rightObject.getOutputFormat():null); List<String> mergedOutputFormat = ((List<String> ) strategy.merge(LocatorUtils.property(leftLocator, "outputFormat", lhsOutputFormat), LocatorUtils.property(rightLocator, "outputFormat", rhsOutputFormat), lhsOutputFormat, rhsOutputFormat, leftObject.isSetOutputFormat(), rightObject.isSetOutputFormat())); target.unsetOutputFormat(); if (mergedOutputFormat!= null) { List<String> uniqueOutputFormatl = target.getOutputFormat(); uniqueOutputFormatl.addAll(mergedOutputFormat); } } else { if (outputFormatShouldBeMergedAndSet == Boolean.FALSE) { target.unsetOutputFormat(); } } } } }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof AcceptFormatsType) { final AcceptFormatsType copy = ((AcceptFormatsType) draftCopy); if ((this.outputFormat!= null)&&(!this.outputFormat.isEmpty())) { List<String> sourceOutputFormat; sourceOutputFormat = this.getOutputFormat(); @SuppressWarnings("unchecked") List<String> copyOutputFormat = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "outputFormat", sourceOutputFormat), sourceOutputFormat)); copy.outputFormat = null; List<String> uniqueOutputFormatl = copy.getOutputFormat(); uniqueOutputFormatl.addAll(copyOutputFormat); } else { copy.outputFormat = null; } } return draftCopy; }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
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 int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public Object copyTo(Object target) { final CopyStrategy 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); }
public AcceptFormatsType withOutputFormat(String... values) { if (values!= null) { for (String value: values) { getOutputFormat().add(value); } } return this; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List<String> theOutputFormat; theOutputFormat = (this.isSetOutputFormat()?this.getOutputFormat():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outputFormat", theOutputFormat), currentHashCode, theOutputFormat, this.isSetOutputFormat()); } return currentHashCode; }
public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public Object copyTo(Object target) { final CopyStrategy2 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); }