/** * Create an instance of {@link DescriptionType } * */ public DescriptionType createDescriptionType() { return new DescriptionType(); }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public Object clone() { return copyTo(createNewInstance()); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, this.isSetTitle()); } { String theAbstract; theAbstract = this.getAbstract(); strategy.appendField(locator, this, "_abstract", buffer, theAbstract, this.isSetAbstract()); } { List<KeywordsType> theKeywords; theKeywords = (this.isSetKeywords()?this.getKeywords():null); strategy.appendField(locator, this, "keywords", buffer, theKeywords, this.isSetKeywords()); } return buffer; }
Boolean titleShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetTitle(), rightObject.isSetTitle()); if (titleShouldBeMergedAndSet == Boolean.TRUE) { String lhsTitle; lhsTitle = leftObject.getTitle(); String rhsTitle; rhsTitle = rightObject.getTitle(); String mergedTitle = ((String) strategy.merge(LocatorUtils.property(leftLocator, "title", lhsTitle), LocatorUtils.property(rightLocator, "title", rhsTitle), lhsTitle, rhsTitle, leftObject.isSetTitle(), rightObject.isSetTitle())); target.setTitle(mergedTitle); } else { if (titleShouldBeMergedAndSet == Boolean.FALSE) { Boolean _abstractShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAbstract(), rightObject.isSetAbstract()); if (_abstractShouldBeMergedAndSet == Boolean.TRUE) { String lhsAbstract; lhsAbstract = leftObject.getAbstract(); String rhsAbstract; rhsAbstract = rightObject.getAbstract(); String mergedAbstract = ((String) strategy.merge(LocatorUtils.property(leftLocator, "_abstract", lhsAbstract), LocatorUtils.property(rightLocator, "_abstract", rhsAbstract), lhsAbstract, rhsAbstract, leftObject.isSetAbstract(), rightObject.isSetAbstract())); target.setAbstract(mergedAbstract); } else { if (_abstractShouldBeMergedAndSet == Boolean.FALSE) { Boolean keywordsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetKeywords(), rightObject.isSetKeywords()); if (keywordsShouldBeMergedAndSet == Boolean.TRUE) { List<KeywordsType> lhsKeywords; lhsKeywords = (leftObject.isSetKeywords()?leftObject.getKeywords():null); List<KeywordsType> rhsKeywords; rhsKeywords = (rightObject.isSetKeywords()?rightObject.getKeywords():null); List<KeywordsType> mergedKeywords = ((List<KeywordsType> ) strategy.merge(LocatorUtils.property(leftLocator, "keywords", lhsKeywords), LocatorUtils.property(rightLocator, "keywords", rhsKeywords), lhsKeywords, rhsKeywords, leftObject.isSetKeywords(), rightObject.isSetKeywords()));
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof DescriptionType) { final DescriptionType copy = ((DescriptionType) draftCopy); if (this.title!= null) { String sourceTitle; sourceTitle = this.getTitle(); String copyTitle = ((String) strategy.copy(LocatorUtils.property(locator, "title", sourceTitle), sourceTitle)); copy.setTitle(copyTitle); } else { copy.title = null; sourceAbstract = this.getAbstract(); String copyAbstract = ((String) strategy.copy(LocatorUtils.property(locator, "_abstract", sourceAbstract), sourceAbstract)); copy.setAbstract(copyAbstract); } else { copy._abstract = null; sourceKeywords = this.getKeywords(); @SuppressWarnings("unchecked") List<KeywordsType> copyKeywords = ((List<KeywordsType> ) strategy.copy(LocatorUtils.property(locator, "keywords", sourceKeywords), sourceKeywords)); copy.keywords = null; List<KeywordsType> uniqueKeywordsl = copy.getKeywords(); uniqueKeywordsl.addAll(copyKeywords); } else {
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle); } { String theAbstract; theAbstract = this.getAbstract(); strategy.appendField(locator, this, "_abstract", buffer, theAbstract); } { List<KeywordsType> theKeywords; theKeywords = this.getKeywords(); strategy.appendField(locator, this, "keywords", buffer, theKeywords); } return buffer; }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
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 Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public DescriptionType withKeywords(Collection<KeywordsType> values) { if (values!= null) { getKeywords().addAll(values); } return this; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof DescriptionType) { final DescriptionType copy = ((DescriptionType) draftCopy); Boolean titleShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetTitle()); if (titleShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTitle; sourceTitle = this.getTitle(); String copyTitle = ((String) strategy.copy(LocatorUtils.property(locator, "title", sourceTitle), sourceTitle, this.isSetTitle())); copy.setTitle(copyTitle); } else { if (titleShouldBeCopiedAndSet == Boolean.FALSE) { Boolean _abstractShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAbstract()); if (_abstractShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAbstract; sourceAbstract = this.getAbstract(); String copyAbstract = ((String) strategy.copy(LocatorUtils.property(locator, "_abstract", sourceAbstract), sourceAbstract, this.isSetAbstract())); copy.setAbstract(copyAbstract); } else { if (_abstractShouldBeCopiedAndSet == Boolean.FALSE) { Boolean keywordsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetKeywords()); if (keywordsShouldBeCopiedAndSet == Boolean.TRUE) { List<KeywordsType> sourceKeywords; sourceKeywords = (this.isSetKeywords()?this.getKeywords():null); @SuppressWarnings("unchecked") List<KeywordsType> copyKeywords = ((List<KeywordsType> ) strategy.copy(LocatorUtils.property(locator, "keywords", sourceKeywords), sourceKeywords, this.isSetKeywords())); copy.unsetKeywords();
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { if (right instanceof DescriptionType) { final DescriptionType target = this; final DescriptionType leftObject = ((DescriptionType) left); final DescriptionType rightObject = ((DescriptionType) right); { String lhsTitle; lhsTitle = leftObject.getTitle(); String rhsTitle; rhsTitle = rightObject.getTitle(); target.setTitle(((String) strategy.merge(LocatorUtils.property(leftLocator, "title", lhsTitle), LocatorUtils.property(rightLocator, "title", rhsTitle), lhsTitle, rhsTitle))); } { String lhsAbstract; lhsAbstract = leftObject.getAbstract(); String rhsAbstract; rhsAbstract = rightObject.getAbstract(); target.setAbstract(((String) strategy.merge(LocatorUtils.property(leftLocator, "_abstract", lhsAbstract), LocatorUtils.property(rightLocator, "_abstract", rhsAbstract), lhsAbstract, rhsAbstract))); } { List<KeywordsType> lhsKeywords; lhsKeywords = leftObject.getKeywords(); List<KeywordsType> rhsKeywords; rhsKeywords = rightObject.getKeywords(); target.keywords = null; List<KeywordsType> uniqueKeywordsl = target.getKeywords(); uniqueKeywordsl.addAll(((List<KeywordsType> ) strategy.merge(LocatorUtils.property(leftLocator, "keywords", lhsKeywords), LocatorUtils.property(rightLocator, "keywords", rhsKeywords), lhsKeywords, rhsKeywords))); } } }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, this.isSetTitle()); } { String theAbstract; theAbstract = this.getAbstract(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_abstract", theAbstract), currentHashCode, theAbstract, this.isSetAbstract()); } { List<KeywordsType> theKeywords; theKeywords = (this.isSetKeywords()?this.getKeywords():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keywords", theKeywords), currentHashCode, theKeywords, this.isSetKeywords()); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle); } { String theAbstract; theAbstract = this.getAbstract(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_abstract", theAbstract), currentHashCode, theAbstract); } { List<KeywordsType> theKeywords; theKeywords = this.getKeywords(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keywords", theKeywords), currentHashCode, theKeywords); } return currentHashCode; }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
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 CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }