public static boolean isActivationLockoutStatusReturnedByDefault(ActivationCapabilityType capability) { if (capability == null) { return false; } ActivationLockoutStatusCapabilityType statusCap = capability.getLockoutStatus(); if (statusCap == null) { return false; } if (statusCap.isReturnedByDefault() == null) { return true; } return statusCap.isReturnedByDefault(); }
/** * Creates a new {@code ActivationLockoutStatusCapabilityType} instance by deeply copying a given {@code ActivationLockoutStatusCapabilityType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public ActivationLockoutStatusCapabilityType(final ActivationLockoutStatusCapabilityType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(o); if (o == null) { throw new NullPointerException("Cannot create a copy of 'ActivationLockoutStatusCapabilityType' from 'null'."); } // CBuiltinLeafInfo: java.lang.Boolean this.returnedByDefault = ((o.returnedByDefault == null)?null:o.isReturnedByDefault()); // CBuiltinLeafInfo: javax.xml.namespace.QName this.attribute = ((o.attribute == null)?null:o.getAttribute()); // 'NormalValue' collection. if (o.normalValue!= null) { copyNormalValue(o.getNormalValue(), this.getNormalValue()); } // 'LockedValue' collection. if (o.lockedValue!= null) { copyLockedValue(o.getLockedValue(), this.getLockedValue()); } // CBuiltinLeafInfo: java.lang.Boolean this.ignoreAttribute = ((o.ignoreAttribute == null)?null:o.isIgnoreAttribute()); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { Boolean theReturnedByDefault; theReturnedByDefault = this.isReturnedByDefault(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "returnedByDefault", theReturnedByDefault), currentHashCode, theReturnedByDefault); } { QName theAttribute; theAttribute = this.getAttribute(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attribute", theAttribute), currentHashCode, theAttribute); } { List<String> theNormalValue; theNormalValue = (((this.normalValue!= null)&&(!this.normalValue.isEmpty()))?this.getNormalValue():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "normalValue", theNormalValue), currentHashCode, theNormalValue); } { List<String> theLockedValue; theLockedValue = (((this.lockedValue!= null)&&(!this.lockedValue.isEmpty()))?this.getLockedValue():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lockedValue", theLockedValue), currentHashCode, theLockedValue); } { Boolean theIgnoreAttribute; theIgnoreAttribute = this.isIgnoreAttribute(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ignoreAttribute", theIgnoreAttribute), currentHashCode, theIgnoreAttribute); } return currentHashCode; }
lhsReturnedByDefault = this.isReturnedByDefault(); Boolean rhsReturnedByDefault; rhsReturnedByDefault = that.isReturnedByDefault(); if (!strategy.equals(LocatorUtils.property(thisLocator, "returnedByDefault", lhsReturnedByDefault), LocatorUtils.property(thatLocator, "returnedByDefault", rhsReturnedByDefault), lhsReturnedByDefault, rhsReturnedByDefault)) { return false;
clone.returnedByDefault = ((this.returnedByDefault == null)?null:this.isReturnedByDefault());
ActivationLockoutStatusCapabilityType st = act.getLockoutStatus(); st.setEnabled(def(st.isEnabled(), true)); st.setReturnedByDefault(def(st.isReturnedByDefault(), true)); st.setIgnoreAttribute(def(st.isIgnoreAttribute(), true));