/** * Create an instance of {@link AssignmentPropertiesSpecificationType } * */ public AssignmentPropertiesSpecificationType createAssignmentPropertiesSpecificationType() { return new AssignmentPropertiesSpecificationType(); }
public List<String> createSubtypeList() { PrismForJAXBUtil.createProperty(asPrismContainerValue(), F_SUBTYPE); return getSubtype(); }
public AssignmentPropertiesSpecificationType relation(QName value) { setRelation(value); return this; }
public AssignmentPropertiesSpecificationType clone() { AssignmentPropertiesSpecificationType object = new AssignmentPropertiesSpecificationType(); PrismContainerValue value = asPrismContainerValue().clone(); object.setupContainerValue(value); return object; }
public <V extends PrismValue, D extends ItemDefinition, AH extends AssignmentHolderType> Source<V,D> constructDefaultSource(ObjectDeltaObject<AH> focusOdo) throws SchemaException { if (objectTemplateMappingType != null) { return null; } PrismObject<AH> focus = focusOdo.getAnyObject(); assignmentDef = focus.getDefinition().findContainerDefinition(FocusType.F_ASSIGNMENT); PrismContainer<AssignmentType> assignment = assignmentDef.instantiate(); assignmentType = assignment.createNewValue().asContainerable(); QName relation = null; AssignmentPropertiesSpecificationType assignmentProperties = autoassignMappingType.getAssignmentProperties(); if (assignmentProperties != null) { relation = assignmentProperties.getRelation(); assignmentType.getSubtype().addAll(assignmentProperties.getSubtype()); } assignmentType.targetRef(role.getOid(), role.asPrismObject().getDefinition().getTypeName(), relation); Source<PrismContainerValue<AssignmentType>, PrismContainerDefinition<AssignmentType>> source = new Source<>(assignment, null, assignment, FocusType.F_ASSIGNMENT); return (Source<V, D>) source; }
public AssignmentPropertiesSpecificationType subtype(String value) { getSubtype().add(value); return this; }
@Override public boolean equals(Object object) { if (!(object instanceof AssignmentPropertiesSpecificationType)) { return false; } AssignmentPropertiesSpecificationType other = ((AssignmentPropertiesSpecificationType) object); return asPrismContainerValue().equivalent(other.asPrismContainerValue()); }
private QName getRelation() { AssignmentTargetSearchExpressionEvaluatorType expressionEvaluatorType = (AssignmentTargetSearchExpressionEvaluatorType) getExpressionEvaluatorType(); AssignmentPropertiesSpecificationType assignmentProperties = expressionEvaluatorType.getAssignmentProperties(); if (assignmentProperties != null) { return assignmentProperties.getRelation(); } else { return expressionEvaluatorType.getRelation(); } }
/** * Creates a new {@code AssignmentTargetSearchExpressionEvaluatorType} instance by deeply copying a given {@code AssignmentTargetSearchExpressionEvaluatorType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public AssignmentTargetSearchExpressionEvaluatorType(final AssignmentTargetSearchExpressionEvaluatorType 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 'AssignmentTargetSearchExpressionEvaluatorType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPropertiesSpecificationType this.assignmentProperties = ((o.assignmentProperties == null)?null:((o.getAssignmentProperties() == null)?null:o.getAssignmentProperties().clone())); // CBuiltinLeafInfo: javax.xml.namespace.QName this.relation = ((o.relation == null)?null:o.getRelation()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType this.activation = ((o.activation == null)?null:((o.getActivation() == null)?null:o.getActivation().clone())); }
public AssignmentPropertiesSpecificationType(PrismContext prismContext) { setupContainerValue(new PrismContainerValueImpl<>(this, prismContext)); }
private List<String> getSubtypes() { AssignmentTargetSearchExpressionEvaluatorType evaluator = (AssignmentTargetSearchExpressionEvaluatorType) getExpressionEvaluatorType(); return evaluator.getAssignmentProperties() != null ? evaluator.getAssignmentProperties().getSubtype() : emptyList(); }
@Override public String toString() { return asPrismContainerValue().toString(); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public AssignmentTargetSearchExpressionEvaluatorType clone() { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final AssignmentTargetSearchExpressionEvaluatorType clone = ((AssignmentTargetSearchExpressionEvaluatorType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPropertiesSpecificationType clone.assignmentProperties = ((this.assignmentProperties == null)?null:((this.getAssignmentProperties() == null)?null:this.getAssignmentProperties().clone())); // CBuiltinLeafInfo: javax.xml.namespace.QName clone.relation = ((this.relation == null)?null:this.getRelation()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType clone.activation = ((this.activation == null)?null:((this.getActivation() == null)?null:this.getActivation().clone())); return clone; } }
/** * Create an instance of {@link AssignmentPropertiesSpecificationType } * */ public AssignmentPropertiesSpecificationType createAssignmentPropertiesSpecificationType() { return new AssignmentPropertiesSpecificationType(); }
@XmlElement(name = "relation") public QName getRelation() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_RELATION, QName.class); }
/** * Create an instance of {@link AssignmentPropertiesSpecificationType } * */ public AssignmentPropertiesSpecificationType createAssignmentPropertiesSpecificationType() { return new AssignmentPropertiesSpecificationType(); }
@Override public int hashCode() { return asPrismContainerValue().hashCode(); }
public AssignmentPropertiesSpecificationType beginAssignmentProperties() { AssignmentPropertiesSpecificationType value = new AssignmentPropertiesSpecificationType(); assignmentProperties(value); return value; }
@XmlElement(name = "subtype") public List<String> getSubtype() { return PrismForJAXBUtil.getPropertyValues(asPrismContainerValue(), F_SUBTYPE, String.class); }
public AssignmentPropertiesSpecificationType beginAssignmentProperties() { AssignmentPropertiesSpecificationType value = new AssignmentPropertiesSpecificationType(); assignmentProperties(value); return value; }