/** * Creates a new {@code PropertyLimitationsType} instance by deeply copying a given {@code PropertyLimitationsType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public PropertyLimitationsType(final PropertyLimitationsType 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 'PropertyLimitationsType' from 'null'."); } // 'Layer' collection. if (o.layer!= null) { copyLayer(o.getLayer(), this.getLayer()); } // CBuiltinLeafInfo: java.lang.String this.minOccurs = ((o.minOccurs == null)?null:o.getMinOccurs()); // CBuiltinLeafInfo: java.lang.String this.maxOccurs = ((o.maxOccurs == null)?null:o.getMaxOccurs()); // CBuiltinLeafInfo: java.lang.Boolean this.ignore = ((o.ignore == null)?null:o.isIgnore()); // CEnumLeafInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ItemProcessingType this.processing = ((o.processing == null)?null:o.getProcessing()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.PropertyAccessType this.access = ((o.access == null)?null:((o.getAccess() == null)?null:o.getAccess().clone())); }
theAccess = this.getAccess(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "access", theAccess), currentHashCode, theAccess);
private static void applyLimitationsType(PropertyLimitations limitations, PropertyLimitationsType layerLimitationsType) { if (layerLimitationsType.getMinOccurs() != null) { limitations.setMinOccurs(DefinitionUtil.parseMultiplicity(layerLimitationsType.getMinOccurs())); } if (layerLimitationsType.getMaxOccurs() != null) { limitations.setMaxOccurs(DefinitionUtil.parseMultiplicity(layerLimitationsType.getMaxOccurs())); } if (layerLimitationsType.isIgnore() != null) { limitations.setProcessing(ItemProcessing.IGNORE); } if (layerLimitationsType.getProcessing() != null) { limitations.setProcessing(MiscSchemaUtil.toItemProcessing(layerLimitationsType.getProcessing())); } if (layerLimitationsType.getAccess() != null) { PropertyAccessType accessType = layerLimitationsType.getAccess(); if (accessType.isAdd() != null) { limitations.getAccess().setAdd(accessType.isAdd()); } if (accessType.isRead() != null) { limitations.getAccess().setRead(accessType.isRead()); } if (accessType.isModify() != null) { limitations.getAccess().setModify(accessType.isModify()); } } }
mutableDef.setProcessing(MiscSchemaUtil.toItemProcessing(limitationsType.getProcessing())); PropertyAccessType accessType = limitationsType.getAccess(); if (accessType != null) { if (accessType.isAdd() != null) {