/** * Create an instance of {@link KeywordsType } * */ public KeywordsType createKeywordsType() { return new KeywordsType(); }
public Object clone() { return copyTo(createNewInstance()); }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
final KeywordsType rightObject = ((KeywordsType) right); Boolean keywordShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetKeyword(), rightObject.isSetKeyword()); if (keywordShouldBeMergedAndSet == Boolean.TRUE) { List<String> lhsKeyword; lhsKeyword = (leftObject.isSetKeyword()?leftObject.getKeyword():null); List<String> rhsKeyword; rhsKeyword = (rightObject.isSetKeyword()?rightObject.getKeyword():null); List<String> mergedKeyword = ((List<String> ) strategy.merge(LocatorUtils.property(leftLocator, "keyword", lhsKeyword), LocatorUtils.property(rightLocator, "keyword", rhsKeyword), lhsKeyword, rhsKeyword, leftObject.isSetKeyword(), rightObject.isSetKeyword())); target.unsetKeyword(); if (mergedKeyword!= null) { List<String> uniqueKeywordl = target.getKeyword(); uniqueKeywordl.addAll(mergedKeyword); target.unsetKeyword(); Boolean typeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetType(), rightObject.isSetType()); if (typeShouldBeMergedAndSet == Boolean.TRUE) { CodeType lhsType; lhsType = leftObject.getType(); CodeType rhsType; rhsType = rightObject.getType(); CodeType mergedType = ((CodeType) strategy.merge(LocatorUtils.property(leftLocator, "type", lhsType), LocatorUtils.property(rightLocator, "type", rhsType), lhsType, rhsType, leftObject.isSetType(), rightObject.isSetType())); target.setType(mergedType); } else { if (typeShouldBeMergedAndSet == Boolean.FALSE) {
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof KeywordsType) { final KeywordsType copy = ((KeywordsType) draftCopy); if ((this.keyword!= null)&&(!this.keyword.isEmpty())) { List<String> sourceKeyword; sourceKeyword = this.getKeyword(); @SuppressWarnings("unchecked") List<String> copyKeyword = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "keyword", sourceKeyword), sourceKeyword)); copy.keyword = null; List<String> uniqueKeywordl = copy.getKeyword(); uniqueKeywordl.addAll(copyKeyword); } else { copy.keyword = null; } if (this.type!= null) { CodeType sourceType; sourceType = this.getType(); CodeType copyType = ((CodeType) strategy.copy(LocatorUtils.property(locator, "type", sourceType), sourceType)); copy.setType(copyType); } else { copy.type = null; } } return draftCopy; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List<String> theKeyword; theKeyword = (this.isSetKeyword()?this.getKeyword():null); strategy.appendField(locator, this, "keyword", buffer, theKeyword, this.isSetKeyword()); } { CodeType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, this.isSetType()); } return buffer; }
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { if (right instanceof KeywordsType) { final KeywordsType target = this; final KeywordsType leftObject = ((KeywordsType) left); final KeywordsType rightObject = ((KeywordsType) right); { List<String> lhsKeyword; lhsKeyword = leftObject.getKeyword(); List<String> rhsKeyword; rhsKeyword = rightObject.getKeyword(); target.keyword = null; List<String> uniqueKeywordl = target.getKeyword(); uniqueKeywordl.addAll(((List<String> ) strategy.merge(LocatorUtils.property(leftLocator, "keyword", lhsKeyword), LocatorUtils.property(rightLocator, "keyword", rhsKeyword), lhsKeyword, rhsKeyword))); } { CodeType lhsType; lhsType = leftObject.getType(); CodeType rhsType; rhsType = rightObject.getType(); target.setType(((CodeType) strategy.merge(LocatorUtils.property(leftLocator, "type", lhsType), LocatorUtils.property(rightLocator, "type", rhsType), lhsType, rhsType))); } } }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { List<String> theKeyword; theKeyword = this.getKeyword(); strategy.appendField(locator, this, "keyword", buffer, theKeyword); } { CodeType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } return buffer; }
public KeywordsType withKeyword(Collection<String> values) { if (values!= null) { getKeyword().addAll(values); } return this; }
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, ToStringStrategy 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 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); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof KeywordsType) { final KeywordsType copy = ((KeywordsType) draftCopy); Boolean keywordShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetKeyword()); if (keywordShouldBeCopiedAndSet == Boolean.TRUE) { List<String> sourceKeyword; sourceKeyword = (this.isSetKeyword()?this.getKeyword():null); @SuppressWarnings("unchecked") List<String> copyKeyword = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "keyword", sourceKeyword), sourceKeyword, this.isSetKeyword())); copy.unsetKeyword(); if (copyKeyword!= null) { List<String> uniqueKeywordl = copy.getKeyword(); uniqueKeywordl.addAll(copyKeyword); copy.unsetKeyword(); Boolean typeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetType()); if (typeShouldBeCopiedAndSet == Boolean.TRUE) { CodeType sourceType; sourceType = this.getType(); CodeType copyType = ((CodeType) strategy.copy(LocatorUtils.property(locator, "type", sourceType), sourceType, this.isSetType())); copy.setType(copyType); } else { if (typeShouldBeCopiedAndSet == Boolean.FALSE) {
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List<String> theKeyword; theKeyword = (this.isSetKeyword()?this.getKeyword():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keyword", theKeyword), currentHashCode, theKeyword, this.isSetKeyword()); } { CodeType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, this.isSetType()); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List<String> theKeyword; theKeyword = this.getKeyword(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keyword", theKeyword), currentHashCode, theKeyword); } { CodeType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } return currentHashCode; }
public KeywordsType withKeyword(String... values) { if (values!= null) { for (String value: values) { getKeyword().add(value); } } return this; }
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, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }