public SelectorQualifiedGetOptionsType option(SelectorQualifiedGetOptionType value) { getOption().add(value); return this; }
/** * Creates a new {@code SelectorQualifiedGetOptionsType} instance by deeply copying a given {@code SelectorQualifiedGetOptionsType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public SelectorQualifiedGetOptionsType(final SelectorQualifiedGetOptionsType 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 'SelectorQualifiedGetOptionsType' from 'null'."); } // 'Option' collection. if (o.option!= null) { copyOption(o.getOption(), this.getOption()); } }
public static List<SelectorOptions<GetOperationOptions>> optionsTypeToOptions( SelectorQualifiedGetOptionsType objectOptionsType, PrismContext prismContext) { if (objectOptionsType == null) { return null; } List<SelectorOptions<GetOperationOptions>> retval = new ArrayList<>(); for (SelectorQualifiedGetOptionType optionType : objectOptionsType.getOption()) { retval.add(selectorQualifiedGetOptionTypeToSelectorOption(optionType, prismContext)); } return retval; }
public static SelectorQualifiedGetOptionsType optionsToOptionsType(Collection<SelectorOptions<GetOperationOptions>> options){ SelectorQualifiedGetOptionsType optionsType = new SelectorQualifiedGetOptionsType(); List<SelectorQualifiedGetOptionType> retval = new ArrayList<>(); for (SelectorOptions<GetOperationOptions> option: options){ retval.add(selectorOptionToSelectorQualifiedGetOptionType(option)); } optionsType.getOption().addAll(retval); return optionsType; }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public SelectorQualifiedGetOptionsType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final SelectorQualifiedGetOptionsType clone = ((SelectorQualifiedGetOptionsType) super.clone()); // 'Option' collection. if (this.option!= null) { clone.option = null; copyOption(this.getOption(), clone.getOption()); } return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List<SelectorQualifiedGetOptionType> theOption; theOption = (((this.option!= null)&&(!this.option.isEmpty()))?this.getOption():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "option", theOption), currentHashCode, theOption); } return currentHashCode; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof SelectorQualifiedGetOptionsType)) { return false; } if (this == object) { return true; } final SelectorQualifiedGetOptionsType that = ((SelectorQualifiedGetOptionsType) object); { List<SelectorQualifiedGetOptionType> lhsOption; lhsOption = (((this.option!= null)&&(!this.option.isEmpty()))?this.getOption():null); List<SelectorQualifiedGetOptionType> rhsOption; rhsOption = (((that.option!= null)&&(!that.option.isEmpty()))?that.getOption():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "option", lhsOption), LocatorUtils.property(thatLocator, "option", rhsOption), lhsOption, rhsOption)) { return false; } } return true; }
public static SelectorQualifiedGetOptionsType createRootGetOptions(GetOperationOptionsType opt) { SelectorQualifiedGetOptionsType rootOpts = new SelectorQualifiedGetOptionsType(); SelectorQualifiedGetOptionType selOpt = new SelectorQualifiedGetOptionType(); selOpt.setOptions(opt); rootOpts.getOption().add(selOpt); return rootOpts; }