/** * Create an instance of {@link PipelineDataType } * */ public PipelineDataType createPipelineDataType() { return new PipelineDataType(); }
/** * Creates a new {@code PipelineDataType} instance by deeply copying a given {@code PipelineDataType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public PipelineDataType(final PipelineDataType 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 'PipelineDataType' from 'null'."); } // 'Item' collection. if (o.item!= null) { copyItem(o.getItem(), this.getItem()); } }
public boolean equals(Object object) { final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public static PipelineDataType prepareXmlData(List<PipelineItem> output, ScriptingExpressionEvaluationOptionsType options) throws JAXBException, SchemaException { boolean hideResults = options != null && Boolean.TRUE.equals(options.isHideOperationResults()); PipelineDataType rv = new PipelineDataType(); if (output != null) { for (PipelineItem item: output) { PipelineItemType itemType = new PipelineItemType(); PrismValue value = item.getValue(); if (value instanceof PrismReferenceValue) { // This is a bit of hack: value.getRealValue() would return unserializable object (PRV$1 - does not have type QName) ObjectReferenceType ort = new ObjectReferenceType(); ort.setupReferenceValue((PrismReferenceValue) value); itemType.setValue(ort); } else { itemType.setValue(value.getRealValue()); // TODO - ok? } if (!hideResults) { itemType.setResult(item.getResult().createOperationResultType()); } rv.getItem().add(itemType); } } return rv; }
public PipelineDataType item(PipelineItemType value) { getItem().add(value); return this; }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public ExecuteScriptOutputType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final ExecuteScriptOutputType clone = ((ExecuteScriptOutputType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.model.scripting_3.PipelineDataType clone.dataOutput = ((this.dataOutput == null)?null:((this.getDataOutput() == null)?null:this.getDataOutput().clone())); // CBuiltinLeafInfo: java.lang.String clone.consoleOutput = ((this.consoleOutput == null)?null:this.getConsoleOutput()); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
public int hashCode() { final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public PipelineItemType beginItem() { PipelineItemType value = new PipelineItemType(); item(value); return value; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List<PipelineItemType> theItem; theItem = (((this.item!= null)&&(!this.item.isEmpty()))?this.getItem():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "item", theItem), currentHashCode, theItem); } return currentHashCode; }
/** * Creates a new {@code ExecuteScriptOutputType} instance by deeply copying a given {@code ExecuteScriptOutputType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public ExecuteScriptOutputType(final ExecuteScriptOutputType 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 'ExecuteScriptOutputType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.model.scripting_3.PipelineDataType this.dataOutput = ((o.dataOutput == null)?null:((o.getDataOutput() == null)?null:o.getDataOutput().clone())); // CBuiltinLeafInfo: java.lang.String this.consoleOutput = ((o.consoleOutput == null)?null:o.getConsoleOutput()); }
/** * Create an instance of {@link PipelineDataType } * */ public PipelineDataType createPipelineDataType() { return new PipelineDataType(); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public PipelineDataType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final PipelineDataType clone = ((PipelineDataType) super.clone()); // 'Item' collection. if (this.item!= null) { clone.item = null; copyItem(this.getItem(), clone.getItem()); } return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof PipelineDataType)) { return false; } if (this == object) { return true; } final PipelineDataType that = ((PipelineDataType) object); { List<PipelineItemType> lhsItem; lhsItem = (((this.item!= null)&&(!this.item.isEmpty()))?this.getItem():null); List<PipelineItemType> rhsItem; rhsItem = (((that.item!= null)&&(!that.item.isEmpty()))?that.getItem():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "item", lhsItem), LocatorUtils.property(thatLocator, "item", rhsItem), lhsItem, rhsItem)) { return false; } } return true; }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public SingleScriptOutputType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final SingleScriptOutputType clone = ((SingleScriptOutputType) super.clone()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.model.scripting_3.PipelineDataType clone.dataOutput = ((this.dataOutput == null)?null:((this.getDataOutput() == null)?null:this.getDataOutput().clone())); // CBuiltinLeafInfo: java.lang.String clone.mslData = ((this.mslData == null)?null:this.getMslData()); // CBuiltinLeafInfo: java.lang.String clone.textOutput = ((this.textOutput == null)?null:this.getTextOutput()); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
/** * Create an instance of {@link PipelineDataType } * */ public PipelineDataType createPipelineDataType() { return new PipelineDataType(); }
/** * Creates a new {@code SingleScriptOutputType} instance by deeply copying a given {@code SingleScriptOutputType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public SingleScriptOutputType(final SingleScriptOutputType 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 'SingleScriptOutputType' from 'null'."); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.model.scripting_3.PipelineDataType this.dataOutput = ((o.dataOutput == null)?null:((o.getDataOutput() == null)?null:o.getDataOutput().clone())); // CBuiltinLeafInfo: java.lang.String this.mslData = ((o.mslData == null)?null:o.getMslData()); // CBuiltinLeafInfo: java.lang.String this.textOutput = ((o.textOutput == null)?null:o.getTextOutput()); }
public PipelineDataType beginDataOutput() { PipelineDataType value = new PipelineDataType(); dataOutput(value); return value; }
public PipelineDataType beginDataOutput() { PipelineDataType value = new PipelineDataType(); dataOutput(value); return value; }