/** * Create an instance of {@link TagIndexSearchResponseDto } * */ public TagIndexSearchResponseDto createTagIndexSearchResponseDto() { return new TagIndexSearchResponseDto(); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theTagCode; theTagCode = this.getTagCode(); strategy.appendField(locator, this, "tagCode", buffer, theTagCode, (this.tagCode!= null)); } { long theCount; theCount = this.getCount(); strategy.appendField(locator, this, "count", buffer, theCount, true); } { String theTagDisplayName; theTagDisplayName = this.getTagDisplayName(); strategy.appendField(locator, this, "tagDisplayName", buffer, theTagDisplayName, (this.tagDisplayName!= null)); } return buffer; }
public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public Object clone() { return copyTo(createNewInstance()); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof TagIndexSearchResponseDto) { final TagIndexSearchResponseDto copy = ((TagIndexSearchResponseDto) draftCopy); if (tagCodeShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTagCode; sourceTagCode = this.getTagCode(); String copyTagCode = ((String) strategy.copy(LocatorUtils.property(locator, "tagCode", sourceTagCode), sourceTagCode, (this.tagCode!= null))); copy.setTagCode(copyTagCode); } else { if (tagCodeShouldBeCopiedAndSet == Boolean.FALSE) { if (countShouldBeCopiedAndSet == Boolean.TRUE) { long sourceCount; sourceCount = this.getCount(); long copyCount = strategy.copy(LocatorUtils.property(locator, "count", sourceCount), sourceCount, true); copy.setCount(copyCount); } else { if (countShouldBeCopiedAndSet == Boolean.FALSE) { if (tagDisplayNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTagDisplayName; sourceTagDisplayName = this.getTagDisplayName(); String copyTagDisplayName = ((String) strategy.copy(LocatorUtils.property(locator, "tagDisplayName", sourceTagDisplayName), sourceTagDisplayName, (this.tagDisplayName!= null))); copy.setTagDisplayName(copyTagDisplayName); } else { if (tagDisplayNameShouldBeCopiedAndSet == Boolean.FALSE) {
TagIndexSearchResponseDto tagIndexSearchResponseDto = new TagIndexSearchResponseDto(entryL3.getKeyAsString(), entryL3.getCount(), null); tagIndexSearchResponseDtos.add(tagIndexSearchResponseDto); TermsAggregation entryEntryTermsAggregation = entryL3.getTermsAggregation(TAG_NAME_AGGREGATION); tagIndexSearchResponseDto.setTagDisplayName(entryL4.getKeyAsString());
public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public static TagIndexSearchResponseDto.Builder<Void> copyExcept(final TagIndexSearchResponseDto _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); }
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; }
TagIndexSearchResponseDto tagIndexSearchResponseDto = new TagIndexSearchResponseDto(entryL3.getKeyAsString(), entryL3.getCount(), null); tagIndexSearchResponseDtos.add(tagIndexSearchResponseDto); TermsAggregation entryEntryTermsAggregation = entryL3.getTermsAggregation(TAG_NAME_AGGREGATION); tagIndexSearchResponseDto.setTagDisplayName(entryL4.getKeyAsString());
public static<_B >TagIndexSearchResponseDto.Builder<_B> copyOf(final TagIndexSearchResponseDto _other) { final TagIndexSearchResponseDto.Builder<_B> _newBuilder = new TagIndexSearchResponseDto.Builder<_B>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; }
public static TagIndexSearchResponseDto.Builder<Void> copyOnly(final TagIndexSearchResponseDto _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theTagCode; theTagCode = this.getTagCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagCode", theTagCode), currentHashCode, theTagCode, (this.tagCode!= null)); } { long theCount; theCount = this.getCount(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "count", theCount), currentHashCode, theCount, true); } { String theTagDisplayName; theTagDisplayName = this.getTagDisplayName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagDisplayName", theTagDisplayName), currentHashCode, theTagDisplayName, (this.tagDisplayName!= null)); } return currentHashCode; }
tagIndexSearchResponseDto = new TagIndexSearchResponseDto(tagCodeEntry.getKeyAsString(), tagCodeEntry.getDocCount(), null); tagIndexSearchResponseDtos.add(tagIndexSearchResponseDto); for (Terms.Bucket tagNameEntry : tagNameAggs.getBuckets()) tagIndexSearchResponseDto.setTagDisplayName(tagNameEntry.getKeyAsString());
public Object createNewInstance() { return new TagIndexSearchResponseDto(); }
public static<_B >TagIndexSearchResponseDto.Builder<_B> copyOf(final TagIndexSearchResponseDto _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final TagIndexSearchResponseDto.Builder<_B> _newBuilder = new TagIndexSearchResponseDto.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; }
lhsTagCode = this.getTagCode(); String rhsTagCode; rhsTagCode = that.getTagCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tagCode", lhsTagCode), LocatorUtils.property(thatLocator, "tagCode", rhsTagCode), lhsTagCode, rhsTagCode, (this.tagCode!= null), (that.tagCode!= null))) { return false; lhsCount = this.getCount(); long rhsCount; rhsCount = that.getCount(); if (!strategy.equals(LocatorUtils.property(thisLocator, "count", lhsCount), LocatorUtils.property(thatLocator, "count", rhsCount), lhsCount, rhsCount, true, true)) { return false; lhsTagDisplayName = this.getTagDisplayName(); String rhsTagDisplayName; rhsTagDisplayName = that.getTagDisplayName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tagDisplayName", lhsTagDisplayName), LocatorUtils.property(thatLocator, "tagDisplayName", rhsTagDisplayName), lhsTagDisplayName, rhsTagDisplayName, (this.tagDisplayName!= null), (that.tagDisplayName!= null))) { return false;
tagIndexSearchResponseDto = new TagIndexSearchResponseDto(tagCodeEntry.getKeyAsString(), tagCodeEntry.getDocCount(), null); tagIndexSearchResponseDtos.add(tagIndexSearchResponseDto); for (Terms.Bucket tagNameEntry : tagNameAggs.getBuckets()) tagIndexSearchResponseDto.setTagDisplayName(tagNameEntry.getKeyAsString());
@Override public TagIndexSearchResponseDto build() { if (_storedValue == null) { return this.init(new TagIndexSearchResponseDto()); } else { return ((TagIndexSearchResponseDto) _storedValue); } }
/** * create tag index search response facet * * @param tagTypeIndexSearchResponseDto response dto * * @return tag type facet */ private Facet createTagTypeFacet(TagTypeIndexSearchResponseDto tagTypeIndexSearchResponseDto) { List<Facet> tagFacets = new ArrayList<>(); if (tagTypeIndexSearchResponseDto.getTagIndexSearchResponseDtos() != null) { for (TagIndexSearchResponseDto tagIndexSearchResponseDto : tagTypeIndexSearchResponseDto.getTagIndexSearchResponseDtos()) { long facetCount = tagIndexSearchResponseDto.getCount(); Facet tagFacet = new Facet(tagIndexSearchResponseDto.getTagDisplayName(), facetCount, FacetTypeEnum.TAG.value(), tagIndexSearchResponseDto.getTagCode(), null); tagFacets.add(tagFacet); } } return new Facet(tagTypeIndexSearchResponseDto.getDisplayName(), null, FacetTypeEnum.TAG_TYPE.value(), tagTypeIndexSearchResponseDto.getCode(), tagFacets); }