/** * Create an instance of {@link FormItemValidationType } * */ public FormItemValidationType createFormItemValidationType() { return new FormItemValidationType(); }
/** * Creates a new {@code FormItemValidationType} instance by deeply copying a given {@code FormItemValidationType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public FormItemValidationType(final FormItemValidationType 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 'FormItemValidationType' from 'null'."); } // 'Server' collection. if (o.server!= null) { copyServer(o.getServer(), this.getServer()); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.FormItemClientValidationType this.client = ((o.client == null)?null:((o.getClient() == null)?null:o.getClient().clone())); }
public boolean equals(Object object) { final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List<FormItemServerValidationType> theServer; theServer = (((this.server!= null)&&(!this.server.isEmpty()))?this.getServer():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "server", theServer), currentHashCode, theServer); } { FormItemClientValidationType theClient; theClient = this.getClient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "client", theClient), currentHashCode, theClient); } return currentHashCode; }
clone.validation = ((this.validation == null)?null:((this.getValidation() == null)?null:this.getValidation().clone())); return clone;
public FormItemValidationType server(FormItemServerValidationType value) { getServer().add(value); return this; }
public int hashCode() { final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public FormItemServerValidationType beginServer() { FormItemServerValidationType value = new FormItemServerValidationType(); server(value); return value; }
public FormItemClientValidationType beginClient() { FormItemClientValidationType value = new FormItemClientValidationType(); client(value); return value; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof FormItemValidationType)) { return false; } if (this == object) { return true; } final FormItemValidationType that = ((FormItemValidationType) object); { List<FormItemServerValidationType> lhsServer; lhsServer = (((this.server!= null)&&(!this.server.isEmpty()))?this.getServer():null); List<FormItemServerValidationType> rhsServer; rhsServer = (((that.server!= null)&&(!that.server.isEmpty()))?that.getServer():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "server", lhsServer), LocatorUtils.property(thatLocator, "server", rhsServer), lhsServer, rhsServer)) { return false; } } { FormItemClientValidationType lhsClient; lhsClient = this.getClient(); FormItemClientValidationType rhsClient; rhsClient = that.getClient(); if (!strategy.equals(LocatorUtils.property(thisLocator, "client", lhsClient), LocatorUtils.property(thatLocator, "client", rhsClient), lhsClient, rhsClient)) { return false; } } return true; }
/** * Creates a new {@code AbstractFormItemType} instance by deeply copying a given {@code AbstractFormItemType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public AbstractFormItemType(final AbstractFormItemType 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 'AbstractFormItemType' from 'null'."); } // CBuiltinLeafInfo: java.lang.String this.name = ((o.name == null)?null:o.getName()); // CBuiltinLeafInfo: java.lang.String this.description = ((o.description == null)?null:o.getDescription()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.VariableBindingDefinitionType this.binding = ((o.binding == null)?null:((o.getBinding() == null)?null:o.getBinding().clone())); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.FormItemDisplayType this.display = ((o.display == null)?null:((o.getDisplay() == null)?null:o.getDisplay().clone())); // CBuiltinLeafInfo: java.lang.String this.widget = ((o.widget == null)?null:o.getWidget()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.FormItemValidationType this.validation = ((o.validation == null)?null:((o.getValidation() == null)?null:o.getValidation().clone())); }
FormItemValidationType validationAnnotation = costCenterDef.getAnnotation(ItemRefinedDefinitionType.F_VALIDATION); assertNotNull("No validation annotation in costCenter", validationAnnotation); ExpressionType validationExpression = validationAnnotation.getServer().get(0).getExpression(); assertNotNull("No validation expression annotation in costCenter", validationExpression);
/** * Create an instance of {@link FormItemValidationType } * */ public FormItemValidationType createFormItemValidationType() { return new FormItemValidationType(); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public FormItemValidationType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final FormItemValidationType clone = ((FormItemValidationType) super.clone()); // 'Server' collection. if (this.server!= null) { clone.server = null; copyServer(this.getServer(), clone.getServer()); } // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.FormItemClientValidationType clone.client = ((this.client == null)?null:((this.getClient() == null)?null:this.getClient().clone())); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
itemDef.setAnnotation(ItemRefinedDefinitionType.F_VALIDATION, templateValidation.clone());
/** * Create an instance of {@link FormItemValidationType } * */ public FormItemValidationType createFormItemValidationType() { return new FormItemValidationType(); }
public FormItemValidationType beginValidation() { FormItemValidationType value = new FormItemValidationType(); validation(value); return value; }
public FormItemValidationType beginValidation() { FormItemValidationType value = new FormItemValidationType(); validation(value); return value; }
public FormItemValidationType beginValidation() { FormItemValidationType value = new FormItemValidationType(); validation(value); return value; }
public FormItemValidationType beginValidation() { FormItemValidationType value = new FormItemValidationType(); validation(value); return value; }