/** * Create an instance of {@link ExecuteScriptResponseType } * */ public ExecuteScriptResponseType createExecuteScriptResponseType() { return new ExecuteScriptResponseType(); }
public boolean equals(Object object) { final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public int hashCode() { final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
ScriptExecutionResult executionResult = scriptingService.evaluateExpression(command, Collections.emptyMap(), false, task, result); ExecuteScriptResponseType responseData = new ExecuteScriptResponseType() .result(result.createOperationResultType()) .output(new ExecuteScriptOutputType() .consoleOutput(executionResult.getConsoleOutput()) .dataOutput(ModelWebService.prepareXmlData(executionResult.getDataOutput(), command.getOptions())));
/** * Creates a new {@code ExecuteScriptResponseType} instance by deeply copying a given {@code ExecuteScriptResponseType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public ExecuteScriptResponseType(final ExecuteScriptResponseType 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 'ExecuteScriptResponseType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.model.scripting_3.ExecuteScriptOutputType this.output = ((o.output == null)?null:((o.getOutput() == null)?null:o.getOutput().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.OperationResultType this.result = ((o.result == null)?null:((o.getResult() == null)?null:o.getResult().clone())); }
public ExecuteScriptOutputType beginOutput() { ExecuteScriptOutputType value = new ExecuteScriptOutputType(); output(value); return value; }
public OperationResultType beginResult() { OperationResultType value = new OperationResultType(); result(value); return value; }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public ExecuteScriptResponseType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final ExecuteScriptResponseType clone = ((ExecuteScriptResponseType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.model.scripting_3.ExecuteScriptOutputType clone.output = ((this.output == null)?null:((this.getOutput() == null)?null:this.getOutput().clone())); // 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); } }
/** * Create an instance of {@link ExecuteScriptResponseType } * */ public ExecuteScriptResponseType createExecuteScriptResponseType() { return new ExecuteScriptResponseType(); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { ExecuteScriptOutputType theOutput; theOutput = this.getOutput(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "output", theOutput), currentHashCode, theOutput); } { OperationResultType theResult; theResult = this.getResult(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "result", theResult), currentHashCode, theResult); } return currentHashCode; }
/** * Create an instance of {@link ExecuteScriptResponseType } * */ public ExecuteScriptResponseType createExecuteScriptResponseType() { return new ExecuteScriptResponseType(); }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ExecuteScriptResponseType)) { return false; } if (this == object) { return true; } final ExecuteScriptResponseType that = ((ExecuteScriptResponseType) object); { ExecuteScriptOutputType lhsOutput; lhsOutput = this.getOutput(); ExecuteScriptOutputType rhsOutput; rhsOutput = that.getOutput(); if (!strategy.equals(LocatorUtils.property(thisLocator, "output", lhsOutput), LocatorUtils.property(thatLocator, "output", rhsOutput), lhsOutput, rhsOutput)) { return false; } } { OperationResultType lhsResult; lhsResult = this.getResult(); OperationResultType rhsResult; rhsResult = that.getResult(); if (!strategy.equals(LocatorUtils.property(thisLocator, "result", lhsResult), LocatorUtils.property(thatLocator, "result", rhsResult), lhsResult, rhsResult)) { return false; } } return true; }