/** * Create an instance of {@link AssignmentPathType } * */ public AssignmentPathType createAssignmentPathType() { return new AssignmentPathType(); }
@Override public AssignmentPathType toAssignmentPathType(boolean includeAssignmentsContent) { AssignmentPathType rv = new AssignmentPathType(); segments.forEach(seg -> rv.getSegment().add(seg.toAssignmentPathSegmentType(includeAssignmentsContent))); return rv; }
/** * Creates a new {@code AssignmentPathType} instance by deeply copying a given {@code AssignmentPathType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public AssignmentPathType(final AssignmentPathType 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 'AssignmentPathType' from 'null'."); } // 'Segment' collection. if (o.segment!= null) { copySegment(o.getSegment(), this.getSegment()); } }
public AssignmentPathType segment(AssignmentPathSegmentType value) { getSegment().add(value); return this; }
/** * Creates a new {@code EvaluatedExclusionTriggerType} instance by deeply copying a given {@code EvaluatedExclusionTriggerType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public EvaluatedExclusionTriggerType(final EvaluatedExclusionTriggerType 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 'EvaluatedExclusionTriggerType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType this.conflictingObjectRef = ((o.conflictingObjectRef == null)?null:((o.getConflictingObjectRef() == null)?null:o.getConflictingObjectRef().clone())); // CClassInfo: com.evolveum.prism.xml.ns._public.types_3.PolyStringType this.conflictingObjectDisplayName = ((o.conflictingObjectDisplayName == null)?null:((o.getConflictingObjectDisplayName() == null)?null:o.getConflictingObjectDisplayName().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPathType this.conflictingObjectPath = ((o.conflictingObjectPath == null)?null:((o.getConflictingObjectPath() == null)?null:o.getConflictingObjectPath().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType this.conflictingAssignment = ((o.conflictingAssignment == null)?null:((o.getConflictingAssignment() == null)?null:o.getConflictingAssignment().clone())); }
public int hashCode() { final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public boolean equals(Object object) { final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public AssignmentPathSegmentType beginSegment() { AssignmentPathSegmentType value = new AssignmentPathSegmentType(); segment(value); return value; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List<AssignmentPathSegmentType> theSegment; theSegment = (((this.segment!= null)&&(!this.segment.isEmpty()))?this.getSegment():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "segment", theSegment), currentHashCode, theSegment); } return currentHashCode; }
clone.assignmentPath = ((this.assignmentPath == null)?null:((this.getAssignmentPath() == null)?null:this.getAssignmentPath().clone()));
/** * Create an instance of {@link AssignmentPathType } * */ public AssignmentPathType createAssignmentPathType() { return new AssignmentPathType(); }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof AssignmentPathType)) { return false; } if (this == object) { return true; } final AssignmentPathType that = ((AssignmentPathType) object); { List<AssignmentPathSegmentType> lhsSegment; lhsSegment = (((this.segment!= null)&&(!this.segment.isEmpty()))?this.getSegment():null); List<AssignmentPathSegmentType> rhsSegment; rhsSegment = (((that.segment!= null)&&(!that.segment.isEmpty()))?that.getSegment():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "segment", lhsSegment), LocatorUtils.property(thatLocator, "segment", rhsSegment), lhsSegment, rhsSegment)) { return false; } } return true; }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public AssignmentPathType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final AssignmentPathType clone = ((AssignmentPathType) super.clone()); // 'Segment' collection. if (this.segment!= null) { clone.segment = null; copySegment(this.getSegment(), clone.getSegment()); } return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
/** * Creates a new {@code EvaluatedPolicyRuleType} instance by deeply copying a given {@code EvaluatedPolicyRuleType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public EvaluatedPolicyRuleType(final EvaluatedPolicyRuleType 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 'EvaluatedPolicyRuleType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.PolicyRuleType this.policyRule = ((o.policyRule == null)?null:((o.getPolicyRule() == null)?null:o.getPolicyRule().clone())); // CBuiltinLeafInfo: java.lang.String this.ruleName = ((o.ruleName == null)?null:o.getRuleName()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPathType this.assignmentPath = ((o.assignmentPath == null)?null:((o.getAssignmentPath() == null)?null:o.getAssignmentPath().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType this.directOwnerRef = ((o.directOwnerRef == null)?null:((o.getDirectOwnerRef() == null)?null:o.getDirectOwnerRef().clone())); // CClassInfo: com.evolveum.prism.xml.ns._public.types_3.PolyStringType this.directOwnerDisplayName = ((o.directOwnerDisplayName == null)?null:((o.getDirectOwnerDisplayName() == null)?null:o.getDirectOwnerDisplayName().clone())); // 'Trigger' collection. if (o.trigger!= null) { copyTrigger(o.getTrigger(), this.getTrigger()); } }
/** * Create an instance of {@link AssignmentPathType } * */ public AssignmentPathType createAssignmentPathType() { return new AssignmentPathType(); }
public static ExtensionType collectExtensions(AssignmentPathType path, int startAt, ModelService modelService, Task task, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException, SecurityViolationException, ExpressionEvaluationException { ExtensionType rv = new ExtensionType(modelService.getPrismContext()); PrismContainerValue<?> pcv = rv.asPrismContainerValue(); PrismObject<? extends ObjectType> lastTarget = null; // used for caching for (int i = startAt; i < path.getSegment().size(); i++) { AssignmentPathSegmentType segment = path.getSegment().get(i); AssignmentType assignment = getAssignment(segment, lastTarget, modelService, task, result); if (assignment != null && assignment.getExtension() != null) { ObjectTypeUtil.mergeExtension(pcv, assignment.getExtension().asPrismContainerValue()); } PrismObject<? extends ObjectType> target = getAssignmentTarget(segment, modelService, task, result); if (target != null && target.getExtension() != null) { ObjectTypeUtil.mergeExtension(pcv, target.getExtensionContainerValue()); } lastTarget = target; } return rv; }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public EvaluatedExclusionTriggerType clone() { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final EvaluatedExclusionTriggerType clone = ((EvaluatedExclusionTriggerType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType clone.conflictingObjectRef = ((this.conflictingObjectRef == null)?null:((this.getConflictingObjectRef() == null)?null:this.getConflictingObjectRef().clone())); // CClassInfo: com.evolveum.prism.xml.ns._public.types_3.PolyStringType clone.conflictingObjectDisplayName = ((this.conflictingObjectDisplayName == null)?null:((this.getConflictingObjectDisplayName() == null)?null:this.getConflictingObjectDisplayName().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPathType clone.conflictingObjectPath = ((this.conflictingObjectPath == null)?null:((this.getConflictingObjectPath() == null)?null:this.getConflictingObjectPath().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType clone.conflictingAssignment = ((this.conflictingAssignment == null)?null:((this.getConflictingAssignment() == null)?null:this.getConflictingAssignment().clone())); return clone; } }
public AssignmentPathType beginAssignmentPath() { AssignmentPathType value = new AssignmentPathType(); assignmentPath(value); return value; }
clone.assignmentPath = ((this.assignmentPath == null)?null:((this.getAssignmentPath() == null)?null:this.getAssignmentPath().clone()));
public AssignmentPathType beginAssignmentPath() { AssignmentPathType value = new AssignmentPathType(); assignmentPath(value); return value; }