/** * Creates a new {@code ScriptExpressionEvaluatorType} instance by deeply copying a given {@code ScriptExpressionEvaluatorType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public ScriptExpressionEvaluatorType(final ScriptExpressionEvaluatorType 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 'ScriptExpressionEvaluatorType' from 'null'."); } // CBuiltinLeafInfo: java.lang.String this.language = ((o.language == null)?null:o.getLanguage()); // CEnumLeafInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ScriptExpressionReturnTypeType this.returnType = ((o.returnType == null)?null:o.getReturnType()); // CBuiltinLeafInfo: java.lang.String this.code = ((o.code == null)?null:o.getCode()); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public ScriptExpressionEvaluatorType clone() { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final ScriptExpressionEvaluatorType clone = ((ScriptExpressionEvaluatorType) super.clone()); // CBuiltinLeafInfo: java.lang.String clone.language = ((this.language == null)?null:this.getLanguage()); // CEnumLeafInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ScriptExpressionReturnTypeType clone.returnType = ((this.returnType == null)?null:this.getReturnType()); // CBuiltinLeafInfo: java.lang.String clone.code = ((this.code == null)?null:this.getCode()); return clone; } }
@Override protected List<V> transformSingleValue(ExpressionVariables variables, PlusMinusZero valueDestination, boolean useNew, ExpressionEvaluationContext context, String contextDescription, Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException { ScriptExpressionReturnTypeType returnType = getExpressionEvaluatorType().getReturnType(); if (returnType == null && isRelative()) { returnType = ScriptExpressionReturnTypeType.SCALAR; } scriptExpression.setAdditionalConvertor(context.getAdditionalConvertor()); return (List<V>) scriptExpression.evaluate(variables, returnType, useNew, contextDescription, task, result); }
lhsReturnType = this.getReturnType(); ScriptExpressionReturnTypeType rhsReturnType; rhsReturnType = that.getReturnType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "returnType", lhsReturnType), LocatorUtils.property(thatLocator, "returnType", rhsReturnType), lhsReturnType, rhsReturnType)) { return false;
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { String theLanguage; theLanguage = this.getLanguage(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "language", theLanguage), currentHashCode, theLanguage); } { ScriptExpressionReturnTypeType theReturnType; theReturnType = this.getReturnType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "returnType", theReturnType), currentHashCode, theReturnType); } { String theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode); } return currentHashCode; }