/** * Create an instance of {@link PolicyItemTargetType } * */ public PolicyItemTargetType createPolicyItemTargetType() { return new PolicyItemTargetType(); }
/** * Creates a new {@code PolicyItemTargetType} instance by deeply copying a given {@code PolicyItemTargetType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public PolicyItemTargetType(final PolicyItemTargetType 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 'PolicyItemTargetType' from 'null'."); } // CClassInfo: com.evolveum.prism.xml.ns._public.types_3.ItemPathType this.path = ((o.path == null)?null:((o.getPath() == null)?null:o.getPath().clone())); }
public boolean equals(Object object) { final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
itemsDefinition = new PolicyItemsDefinitionType().policyItemDefinition( new PolicyItemDefinitionType() .target(new PolicyItemTargetType().path(new ItemPathType(PATH_CREDENTIALS_PASSWORD_VALUE))) .execute(false));
public ItemPathType beginPath() { ItemPathType value = new ItemPathType(); path(value); return value; }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public PolicyItemDefinitionType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final PolicyItemDefinitionType clone = ((PolicyItemDefinitionType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.api_types_3.PolicyItemTargetType clone.target = ((this.target == null)?null:((this.getTarget() == null)?null:this.getTarget().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType clone.valuePolicyRef = ((this.valuePolicyRef == null)?null:((this.getValuePolicyRef() == null)?null:this.getValuePolicyRef().clone())); // CBuiltinLeafInfo: java.lang.Object clone.value = ((this.value == null)?null:copyOf(this.getValue())); // CBuiltinLeafInfo: java.lang.Boolean clone.execute = ((this.execute == null)?null:this.isExecute()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.OperationResultType clone.result = ((this.result == null)?null:((this.getResult() == null)?null:this.getResult().clone())); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
public PolicyItemTargetType path(ItemPathType value) { setPath(value); return this; }
public int hashCode() { final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
/** * Creates a new {@code PolicyItemDefinitionType} instance by deeply copying a given {@code PolicyItemDefinitionType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public PolicyItemDefinitionType(final PolicyItemDefinitionType 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 'PolicyItemDefinitionType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.api_types_3.PolicyItemTargetType this.target = ((o.target == null)?null:((o.getTarget() == null)?null:o.getTarget().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType this.valuePolicyRef = ((o.valuePolicyRef == null)?null:((o.getValuePolicyRef() == null)?null:o.getValuePolicyRef().clone())); // CBuiltinLeafInfo: java.lang.Object this.value = ((o.value == null)?null:copyOf(o.getValue())); // CBuiltinLeafInfo: java.lang.Boolean this.execute = ((o.execute == null)?null:o.isExecute()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.OperationResultType this.result = ((o.result == null)?null:((o.getResult() == null)?null:o.getResult().clone())); }
/** * Create an instance of {@link PolicyItemTargetType } * */ public PolicyItemTargetType createPolicyItemTargetType() { return new PolicyItemTargetType(); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public PolicyItemTargetType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final PolicyItemTargetType clone = ((PolicyItemTargetType) super.clone()); // CClassInfo: com.evolveum.prism.xml.ns._public.types_3.ItemPathType clone.path = ((this.path == null)?null:((this.getPath() == null)?null:this.getPath().clone())); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
/** * Create an instance of {@link PolicyItemTargetType } * */ public PolicyItemTargetType createPolicyItemTargetType() { return new PolicyItemTargetType(); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { ItemPathType thePath; thePath = this.getPath(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "path", thePath), currentHashCode, thePath); } return currentHashCode; }
public PolicyItemTargetType beginTarget() { PolicyItemTargetType value = new PolicyItemTargetType(); target(value); return value; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof PolicyItemTargetType)) { return false; } if (this == object) { return true; } final PolicyItemTargetType that = ((PolicyItemTargetType) object); { ItemPathType lhsPath; lhsPath = this.getPath(); ItemPathType rhsPath; rhsPath = that.getPath(); if (!strategy.equals(LocatorUtils.property(thisLocator, "path", lhsPath), LocatorUtils.property(thatLocator, "path", rhsPath), lhsPath, rhsPath)) { return false; } } return true; }
private ItemPath getPath(PolicyItemDefinitionType policyItemDefinition) { PolicyItemTargetType target = policyItemDefinition.getTarget(); if (target == null) { return null; } ItemPathType itemPathType = target.getPath(); return itemPathType != null ? itemPathType.getItemPath() : null; }
ItemPath path = target != null ? target.getPath().getItemPath() : null; if (StringUtils.isNotEmpty(valueToValidate)) { valuesToValidate.add(valueToValidate); } else { if (target == null || target.getPath() == null) { LOGGER.error("Target item path must be defined"); parentResult.recordFatalError("Target item path must be defined");