public Object createNewInstance() { return new SubPremiseType.SubPremiseNumber(); }
lhsContent = this.getContent(); String rhsContent; rhsContent = that.getContent(); if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent)) { return false; lhsIndicator = this.getIndicator(); String rhsIndicator; rhsIndicator = that.getIndicator(); if (!strategy.equals(LocatorUtils.property(thisLocator, "indicator", lhsIndicator), LocatorUtils.property(thatLocator, "indicator", rhsIndicator), lhsIndicator, rhsIndicator)) { return false; lhsIndicatorOccurrence = this.getIndicatorOccurrence(); String rhsIndicatorOccurrence; rhsIndicatorOccurrence = that.getIndicatorOccurrence(); if (!strategy.equals(LocatorUtils.property(thisLocator, "indicatorOccurrence", lhsIndicatorOccurrence), LocatorUtils.property(thatLocator, "indicatorOccurrence", rhsIndicatorOccurrence), lhsIndicatorOccurrence, rhsIndicatorOccurrence)) { return false; lhsNumberTypeOccurrence = this.getNumberTypeOccurrence(); String rhsNumberTypeOccurrence; rhsNumberTypeOccurrence = that.getNumberTypeOccurrence(); if (!strategy.equals(LocatorUtils.property(thisLocator, "numberTypeOccurrence", lhsNumberTypeOccurrence), LocatorUtils.property(thatLocator, "numberTypeOccurrence", rhsNumberTypeOccurrence), lhsNumberTypeOccurrence, rhsNumberTypeOccurrence)) { return false; lhsPremiseNumberSeparator = this.getPremiseNumberSeparator(); String rhsPremiseNumberSeparator; rhsPremiseNumberSeparator = that.getPremiseNumberSeparator(); if (!strategy.equals(LocatorUtils.property(thisLocator, "premiseNumberSeparator", lhsPremiseNumberSeparator), LocatorUtils.property(thatLocator, "premiseNumberSeparator", rhsPremiseNumberSeparator), lhsPremiseNumberSeparator, rhsPremiseNumberSeparator)) { return false;
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof SubPremiseType.SubPremiseNumber) { final SubPremiseType.SubPremiseNumber copy = ((SubPremiseType.SubPremiseNumber) draftCopy); if (this.content!= null) { String sourceContent; sourceContent = this.getContent(); String copyContent = ((String) strategy.copy(LocatorUtils.property(locator, "content", sourceContent), sourceContent)); copy.setContent(copyContent); } else { copy.content = null; sourceIndicator = this.getIndicator(); String copyIndicator = ((String) strategy.copy(LocatorUtils.property(locator, "indicator", sourceIndicator), sourceIndicator)); copy.setIndicator(copyIndicator); } else { copy.indicator = null; sourceIndicatorOccurrence = this.getIndicatorOccurrence(); String copyIndicatorOccurrence = ((String) strategy.copy(LocatorUtils.property(locator, "indicatorOccurrence", sourceIndicatorOccurrence), sourceIndicatorOccurrence)); copy.setIndicatorOccurrence(copyIndicatorOccurrence); } else { copy.indicatorOccurrence = null; sourceNumberTypeOccurrence = this.getNumberTypeOccurrence(); String copyNumberTypeOccurrence = ((String) strategy.copy(LocatorUtils.property(locator, "numberTypeOccurrence", sourceNumberTypeOccurrence), sourceNumberTypeOccurrence)); copy.setNumberTypeOccurrence(copyNumberTypeOccurrence); } else { copy.numberTypeOccurrence = null;
lhsContent = leftObject.getContent(); String rhsContent; rhsContent = rightObject.getContent(); target.setContent(((String) strategy.merge(LocatorUtils.property(leftLocator, "content", lhsContent), LocatorUtils.property(rightLocator, "content", rhsContent), lhsContent, rhsContent))); lhsIndicator = leftObject.getIndicator(); String rhsIndicator; rhsIndicator = rightObject.getIndicator(); target.setIndicator(((String) strategy.merge(LocatorUtils.property(leftLocator, "indicator", lhsIndicator), LocatorUtils.property(rightLocator, "indicator", rhsIndicator), lhsIndicator, rhsIndicator))); lhsIndicatorOccurrence = leftObject.getIndicatorOccurrence(); String rhsIndicatorOccurrence; rhsIndicatorOccurrence = rightObject.getIndicatorOccurrence(); target.setIndicatorOccurrence(((String) strategy.merge(LocatorUtils.property(leftLocator, "indicatorOccurrence", lhsIndicatorOccurrence), LocatorUtils.property(rightLocator, "indicatorOccurrence", rhsIndicatorOccurrence), lhsIndicatorOccurrence, rhsIndicatorOccurrence))); lhsNumberTypeOccurrence = leftObject.getNumberTypeOccurrence(); String rhsNumberTypeOccurrence; rhsNumberTypeOccurrence = rightObject.getNumberTypeOccurrence(); target.setNumberTypeOccurrence(((String) strategy.merge(LocatorUtils.property(leftLocator, "numberTypeOccurrence", lhsNumberTypeOccurrence), LocatorUtils.property(rightLocator, "numberTypeOccurrence", rhsNumberTypeOccurrence), lhsNumberTypeOccurrence, rhsNumberTypeOccurrence))); lhsPremiseNumberSeparator = leftObject.getPremiseNumberSeparator(); String rhsPremiseNumberSeparator; rhsPremiseNumberSeparator = rightObject.getPremiseNumberSeparator(); target.setPremiseNumberSeparator(((String) strategy.merge(LocatorUtils.property(leftLocator, "premiseNumberSeparator", lhsPremiseNumberSeparator), LocatorUtils.property(rightLocator, "premiseNumberSeparator", rhsPremiseNumberSeparator), lhsPremiseNumberSeparator, rhsPremiseNumberSeparator))); lhsType = leftObject.getType(); String rhsType; rhsType = rightObject.getType(); target.setType(((String) strategy.merge(LocatorUtils.property(leftLocator, "type", lhsType), LocatorUtils.property(rightLocator, "type", rhsType), lhsType, rhsType)));
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { theContent = this.getContent(); strategy.appendField(locator, this, "content", buffer, theContent); theIndicator = this.getIndicator(); strategy.appendField(locator, this, "indicator", buffer, theIndicator); theIndicatorOccurrence = this.getIndicatorOccurrence(); strategy.appendField(locator, this, "indicatorOccurrence", buffer, theIndicatorOccurrence); theNumberTypeOccurrence = this.getNumberTypeOccurrence(); strategy.appendField(locator, this, "numberTypeOccurrence", buffer, theNumberTypeOccurrence); thePremiseNumberSeparator = this.getPremiseNumberSeparator(); strategy.appendField(locator, this, "premiseNumberSeparator", buffer, thePremiseNumberSeparator); theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode);
theContent = this.getContent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent); theIndicator = this.getIndicator(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indicator", theIndicator), currentHashCode, theIndicator); theIndicatorOccurrence = this.getIndicatorOccurrence(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indicatorOccurrence", theIndicatorOccurrence), currentHashCode, theIndicatorOccurrence); theNumberTypeOccurrence = this.getNumberTypeOccurrence(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "numberTypeOccurrence", theNumberTypeOccurrence), currentHashCode, theNumberTypeOccurrence); thePremiseNumberSeparator = this.getPremiseNumberSeparator(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "premiseNumberSeparator", thePremiseNumberSeparator), currentHashCode, thePremiseNumberSeparator); theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode);
public SubPremiseType.SubPremiseNumber marshalSubPremiseNumber(SubPremiseNumber src) { SubPremiseType.SubPremiseNumber dest = xal.createSubPremiseTypeSubPremiseNumber(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); if (src.isSetType()) dest.setType(src.getType()); if (src.isSetIndicator()) dest.setIndicator(src.getIndicator()); if (src.isSetIndicatorOccurrence()) dest.setIndicatorOccurrence(src.getIndicatorOccurrence()); if (src.isSetNumberTypeOccurrence()) dest.setNumberTypeOccurrence(src.getNumberTypeOccurrence()); if (src.isSetPremiseNumberSeparator()) dest.setPremiseNumberSeparator(src.getPremiseNumberSeparator()); return dest; }
public SubPremiseNumber unmarshalSubPremiseNumber(SubPremiseType.SubPremiseNumber src) { SubPremiseNumber dest = new SubPremiseNumber(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); if (src.isSetType()) dest.setType(src.getType()); if (src.isSetIndicator()) dest.setIndicator(src.getIndicator()); if (src.isSetIndicatorOccurrence()) dest.setIndicatorOccurrence(src.getIndicatorOccurrence()); if (src.isSetNumberTypeOccurrence()) dest.setNumberTypeOccurrence(src.getNumberTypeOccurrence()); if (src.isSetPremiseNumberSeparator()) dest.setPremiseNumberSeparator(src.getPremiseNumberSeparator()); return dest; }
/** * Create an instance of {@link SubPremiseType.SubPremiseNumber } * */ public SubPremiseType.SubPremiseNumber createSubPremiseTypeSubPremiseNumber() { return new SubPremiseType.SubPremiseNumber(); }
/** * Create an instance of {@link SubPremiseType.SubPremiseNumber } * */ public SubPremiseType.SubPremiseNumber createSubPremiseTypeSubPremiseNumber() { return new SubPremiseType.SubPremiseNumber(); }