public PropertyReferenceListType property(ItemPathType value) { getProperty().add(value); return this; }
public static Collection<ItemPath> itemReferenceListTypeToItemPathList(PropertyReferenceListType resolve, PrismContext prismContext) { Collection<ItemPath> itemPathList = new ArrayList<>(resolve.getProperty().size()); for (ItemPathType itemXPathElement: resolve.getProperty()) { itemPathList.add(prismContext.toPath(itemXPathElement)); } return itemPathList; }
/** * Creates a new {@code PropertyReferenceListType} instance by deeply copying a given {@code PropertyReferenceListType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public PropertyReferenceListType(final PropertyReferenceListType 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 'PropertyReferenceListType' from 'null'."); } // 'Property' collection. if (o.property!= null) { copyProperty(o.getProperty(), this.getProperty()); } }
public static String prettyPrint(PropertyReferenceListType reflist) { if (reflist == null) { return "null"; } StringBuilder sb = new StringBuilder("["); Iterator<ItemPathType> iterator = reflist.getProperty().iterator(); while (iterator.hasNext()) { ItemPathType xpath = iterator.next(); sb.append(xpath.toString()); if (iterator.hasNext()) { sb.append(","); } } sb.append("]"); return sb.toString(); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public PropertyReferenceListType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final PropertyReferenceListType clone = ((PropertyReferenceListType) super.clone()); // 'Property' collection. if (this.property!= null) { clone.property = null; copyProperty(this.getProperty(), clone.getProperty()); } 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<ItemPathType> theProperty; theProperty = (((this.property!= null)&&(!this.property.isEmpty()))?this.getProperty():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "property", theProperty), currentHashCode, theProperty); } return currentHashCode; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof PropertyReferenceListType)) { return false; } if (this == object) { return true; } final PropertyReferenceListType that = ((PropertyReferenceListType) object); { List<ItemPathType> lhsProperty; lhsProperty = (((this.property!= null)&&(!this.property.isEmpty()))?this.getProperty():null); List<ItemPathType> rhsProperty; rhsProperty = (((that.property!= null)&&(!that.property.isEmpty()))?that.getProperty():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "property", lhsProperty), LocatorUtils.property(thatLocator, "property", rhsProperty), lhsProperty, rhsProperty)) { return false; } } return true; }