/** * Creates a new {@code ManagerSearchType} instance by deeply copying a given {@code ManagerSearchType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public ManagerSearchType(final ManagerSearchType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(); if (o == null) { throw new NullPointerException("Cannot create a copy of 'ManagerSearchType' from 'null'."); } // CBuiltinLeafInfo: java.lang.String this.orgType = ((o.orgType == null)?null:o.getOrgType()); // CBuiltinLeafInfo: java.lang.Boolean this.allowSelf = ((o.allowSelf == null)?null:o.isAllowSelf()); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public ManagerSearchType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final ManagerSearchType clone = ((ManagerSearchType) super.clone()); // CBuiltinLeafInfo: java.lang.String clone.orgType = ((this.orgType == null)?null:this.getOrgType()); // CBuiltinLeafInfo: java.lang.Boolean clone.allowSelf = ((this.allowSelf == null)?null:this.isAllowSelf()); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
ObjectType object = resolveReference(objectRef, ObjectType.class, result); String orgType = managerSearch.getOrgType(); boolean allowSelf = Boolean.TRUE.equals(managerSearch.isAllowSelf()); Collection<UserType> managers;
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theOrgType; theOrgType = this.getOrgType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orgType", theOrgType), currentHashCode, theOrgType); } { Boolean theAllowSelf; theAllowSelf = this.isAllowSelf(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allowSelf", theAllowSelf), currentHashCode, theAllowSelf); } return currentHashCode; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ManagerSearchType)) { return false; } if (this == object) { return true; } final ManagerSearchType that = ((ManagerSearchType) object); { String lhsOrgType; lhsOrgType = this.getOrgType(); String rhsOrgType; rhsOrgType = that.getOrgType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "orgType", lhsOrgType), LocatorUtils.property(thatLocator, "orgType", rhsOrgType), lhsOrgType, rhsOrgType)) { return false; } } { Boolean lhsAllowSelf; lhsAllowSelf = this.isAllowSelf(); Boolean rhsAllowSelf; rhsAllowSelf = that.isAllowSelf(); if (!strategy.equals(LocatorUtils.property(thisLocator, "allowSelf", lhsAllowSelf), LocatorUtils.property(thatLocator, "allowSelf", rhsAllowSelf), lhsAllowSelf, rhsAllowSelf)) { return false; } } return true; }