public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
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; lhsType = this.getType(); String rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { return false; lhsCode = this.getCode(); String rhsCode; rhsCode = that.getCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode)) { return false;
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof DependentLocalityType.DependentLocalityName) { final DependentLocalityType.DependentLocalityName copy = ((DependentLocalityType.DependentLocalityName) 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; sourceType = this.getType(); String copyType = ((String) strategy.copy(LocatorUtils.property(locator, "type", sourceType), sourceType)); copy.setType(copyType); } else { copy.type = null; sourceCode = this.getCode(); String copyCode = ((String) strategy.copy(LocatorUtils.property(locator, "code", sourceCode), sourceCode)); copy.setCode(copyCode); } else { copy.code = null;
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { if (right instanceof DependentLocalityType.DependentLocalityName) { final DependentLocalityType.DependentLocalityName target = this; final DependentLocalityType.DependentLocalityName leftObject = ((DependentLocalityType.DependentLocalityName) left); final DependentLocalityType.DependentLocalityName rightObject = ((DependentLocalityType.DependentLocalityName) right); { String lhsContent; 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))); } { String lhsType; 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))); } { String lhsCode; lhsCode = leftObject.getCode(); String rhsCode; rhsCode = rightObject.getCode(); target.setCode(((String) strategy.merge(LocatorUtils.property(leftLocator, "code", lhsCode), LocatorUtils.property(rightLocator, "code", rhsCode), lhsCode, rhsCode))); } } }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theContent; theContent = this.getContent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { String theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode); } return currentHashCode; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theContent; theContent = this.getContent(); strategy.appendField(locator, this, "content", buffer, theContent); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } { String theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode); } return buffer; }
public Object createNewInstance() { return new DependentLocalityType.DependentLocalityName(); }
public Object clone() { return copyTo(createNewInstance()); }
public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
/** * Create an instance of {@link DependentLocalityType.DependentLocalityName } * */ public DependentLocalityType.DependentLocalityName createDependentLocalityTypeDependentLocalityName() { return new DependentLocalityType.DependentLocalityName(); }
public DependentLocalityType.DependentLocalityName marshalDependentLocalityName(DependentLocalityName src) { DependentLocalityType.DependentLocalityName dest = xal.createDependentLocalityTypeDependentLocalityName(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); if (src.isSetType()) dest.setType(src.getType()); return dest; }
public DependentLocalityName unmarshalDependentLocalityName(DependentLocalityType.DependentLocalityName src) { DependentLocalityName dest = new DependentLocalityName(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); if (src.isSetType()) dest.setType(src.getType()); return dest; }
/** * Create an instance of {@link DependentLocalityType.DependentLocalityName } * */ public DependentLocalityType.DependentLocalityName createDependentLocalityTypeDependentLocalityName() { return new DependentLocalityType.DependentLocalityName(); }
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; }