/** * Create an instance of {@link BuildingNameType } * */ public BuildingNameType createBuildingNameType() { return new BuildingNameType(); }
public BuildingName unmarshalBuildingName(BuildingNameType src) { BuildingName dest = new BuildingName(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); if (src.isSetType()) dest.setType(src.getType()); if (src.isSetTypeOccurrence()) dest.setTypeOccurrence(src.getTypeOccurrence()); return dest; }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof BuildingNameType) { final BuildingNameType copy = ((BuildingNameType) 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; sourceTypeOccurrence = this.getTypeOccurrence(); String copyTypeOccurrence = ((String) strategy.copy(LocatorUtils.property(locator, "typeOccurrence", sourceTypeOccurrence), sourceTypeOccurrence)); copy.setTypeOccurrence(copyTypeOccurrence); } else { copy.typeOccurrence = null; sourceCode = this.getCode(); String copyCode = ((String) strategy.copy(LocatorUtils.property(locator, "code", sourceCode), sourceCode)); copy.setCode(copyCode); } else { copy.code = null;
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 theTypeOccurrence; theTypeOccurrence = this.getTypeOccurrence(); strategy.appendField(locator, this, "typeOccurrence", buffer, theTypeOccurrence); } { String theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode); } return buffer; }
public BuildingNameType marshalBuildingName(BuildingName src) { BuildingNameType dest = xal.createBuildingNameType(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); if (src.isSetType()) dest.setType(src.getType()); if (src.isSetTypeOccurrence()) dest.setTypeOccurrence(src.getTypeOccurrence()); return dest; }
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))); 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))); lhsTypeOccurrence = leftObject.getTypeOccurrence(); String rhsTypeOccurrence; rhsTypeOccurrence = rightObject.getTypeOccurrence(); target.setTypeOccurrence(((String) strategy.merge(LocatorUtils.property(leftLocator, "typeOccurrence", lhsTypeOccurrence), LocatorUtils.property(rightLocator, "typeOccurrence", rhsTypeOccurrence), lhsTypeOccurrence, rhsTypeOccurrence))); 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)));
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; lhsTypeOccurrence = this.getTypeOccurrence(); String rhsTypeOccurrence; rhsTypeOccurrence = that.getTypeOccurrence(); if (!strategy.equals(LocatorUtils.property(thisLocator, "typeOccurrence", lhsTypeOccurrence), LocatorUtils.property(thatLocator, "typeOccurrence", rhsTypeOccurrence), lhsTypeOccurrence, rhsTypeOccurrence)) { 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 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 theTypeOccurrence; theTypeOccurrence = this.getTypeOccurrence(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "typeOccurrence", theTypeOccurrence), currentHashCode, theTypeOccurrence); } { String theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode); } return currentHashCode; }
/** * Create an instance of {@link BuildingNameType } * */ public BuildingNameType createBuildingNameType() { return new BuildingNameType(); }
public Object createNewInstance() { return new BuildingNameType(); }