@Override protected void fillJDOMConfigElement(Element configElement) { super.fillJDOMConfigElement(configElement); String toStringEqualValue = this.toStringValue(this.getValue()); this.insertJDOMConfigElement("value", this.getValueAttribute(), toStringEqualValue, configElement); String toStringStartValue = this.toStringValue(this.getRangeStart()); this.insertJDOMConfigElement("rangestart", this.getRangeStartAttribute(), toStringStartValue, configElement); String toStringEndValue = this.toStringValue(this.getRangeEnd()); this.insertJDOMConfigElement("rangeend", this.getRangeEndAttribute(), toStringEndValue, configElement); }
@Override public IAttributeValidationRules clone() { AbstractAttributeValidationRules clone = (AbstractAttributeValidationRules) super.clone(); clone.setRangeEnd(this.getRangeEnd()); clone.setRangeEndAttribute(this.getRangeEndAttribute()); clone.setRangeStart(this.getRangeStart()); clone.setRangeStartAttribute(this.getRangeStartAttribute()); clone.setValue(this.getValue()); clone.setValueAttribute(this.getValueAttribute()); return clone; }
@Override public IAttributeValidationRules clone() { TextAttributeValidationRules clone = (TextAttributeValidationRules) super.clone(); clone.setMaxLength(this.getMaxLength()); clone.setMinLength(this.getMinLength()); clone.setRegexp(this.getRegexp()); return clone; }
@Override protected OgnlValidationRule clone() { OgnlValidationRule clone = new OgnlValidationRule(); clone.setErrorMessage(this.getErrorMessage()); clone.setErrorMessageKey(this.getErrorMessageKey()); clone.setEvalExpressionOnValuedAttribute(this.isEvalExpressionOnValuedAttribute()); clone.setExpression(this.getExpression()); clone.setHelpMessage(this.getHelpMessage()); clone.setHelpMessageKey(this.getHelpMessageKey()); return clone; }
@Override protected void fillJDOMConfigElement(Element configElement) { super.fillJDOMConfigElement(configElement); String toStringEqualValue = (this.getValue() != null) ? String.valueOf(this.getValue()) : null; this.insertJDOMConfigElement("value", this.getValueAttribute(), toStringEqualValue, configElement); String toStringStartValue = (this.getRangeStart() != null) ? String.valueOf(this.getRangeStart()) : null; this.insertJDOMConfigElement("rangestart", this.getRangeStartAttribute(), toStringStartValue, configElement); String toStringEndValue = (this.getRangeEnd() != null) ? String.valueOf(this.getRangeEnd()) : null; this.insertJDOMConfigElement("rangeend", this.getRangeEndAttribute(), toStringEndValue, configElement); }
@Override public boolean isEmpty() { return (super.isEmpty() && (null == this.getRangeStart()) && (null == this.getRangeEnd()) && (null == this.getValue()) && (null == this.getRangeStartAttribute() || this.getRangeStartAttribute().trim().length() == 0) && (null == this.getRangeEndAttribute() || this.getRangeEndAttribute().trim().length() == 0) && (null == this.getValueAttribute() || this.getValueAttribute().trim().length() == 0) ); }
@Override public boolean isEmpty() { return (super.isEmpty() && (null == this.getMaxLength() || this.getMaxLength() < 0) && (null == this.getMinLength() || this.getMinLength() < 0) && (null == this.getRegexp() || this.getRegexp().trim().length() == 0)); }
protected void fillJDOMConfigElement(Element configElement) { if (this.isRequired()) { Element element = new Element("required"); element.setText("true"); configElement.addContent(element); } if (null != this.getOgnlValidationRule()) { Element exprElement = this.getOgnlValidationRule().getConfigElement(); if (null != exprElement) { configElement.addContent(exprElement); } } }
@Override public boolean isEmpty() { return (!this.isRequired() && null == this.getOgnlValidationRule()); }
@Override protected IAttributeValidationRules getValidationRuleNewIntance() { return new DateAttributeValidationRules(); }
protected IAttributeValidationRules getValidationRuleNewIntance() { return new BaseAttributeValidationRules(); }
@Override public IAttributeValidationRules clone() { AbstractAttributeValidationRules clone = (AbstractAttributeValidationRules) super.clone(); clone.setRangeEnd(this.getRangeEnd()); clone.setRangeEndAttribute(this.getRangeEndAttribute()); clone.setRangeStart(this.getRangeStart()); clone.setRangeStartAttribute(this.getRangeStartAttribute()); clone.setValue(this.getValue()); clone.setValueAttribute(this.getValueAttribute()); return clone; }
protected OgnlValidationRule clone() { OgnlValidationRule clone = new OgnlValidationRule(); clone.setErrorMessage(this.getErrorMessage()); clone.setErrorMessageKey(this.getErrorMessageKey()); clone.setEvalExpressionOnValuedAttribute(this.isEvalExpressionOnValuedAttribute()); clone.setExpression(this.getExpression()); clone.setHelpMessage(this.getHelpMessage()); clone.setHelpMessageKey(this.getHelpMessageKey()); return clone; }
@Override protected void fillJDOMConfigElement(Element configElement) { super.fillJDOMConfigElement(configElement); String toStringEqualValue = this.toStringValue(this.getValue()); this.insertJDOMConfigElement("value", this.getValueAttribute(), toStringEqualValue, configElement); String toStringStartValue = this.toStringValue(this.getRangeStart()); this.insertJDOMConfigElement("rangestart", this.getRangeStartAttribute(), toStringStartValue, configElement); String toStringEndValue = this.toStringValue(this.getRangeEnd()); this.insertJDOMConfigElement("rangeend", this.getRangeEndAttribute(), toStringEndValue, configElement); }
@Override protected void fillJDOMConfigElement(Element configElement) { super.fillJDOMConfigElement(configElement); String toStringEqualValue = (this.getValue() != null) ? String.valueOf(this.getValue()) : null; this.insertJDOMConfigElement("value", this.getValueAttribute(), toStringEqualValue, configElement); String toStringStartValue = (this.getRangeStart() != null) ? String.valueOf(this.getRangeStart()) : null; this.insertJDOMConfigElement("rangestart", this.getRangeStartAttribute(), toStringStartValue, configElement); String toStringEndValue = (this.getRangeEnd() != null) ? String.valueOf(this.getRangeEnd()) : null; this.insertJDOMConfigElement("rangeend", this.getRangeEndAttribute(), toStringEndValue, configElement); }
@Override public IAttributeValidationRules clone() { TextAttributeValidationRules clone = (TextAttributeValidationRules) super.clone(); clone.setMaxLength(this.getMaxLength()); clone.setMinLength(this.getMinLength()); clone.setRegexp(this.getRegexp()); return clone; }
@Override public boolean isEmpty() { return (super.isEmpty() && (null == this.getRangeStart()) && (null == this.getRangeEnd()) && (null == this.getValue()) && (null == this.getRangeStartAttribute() || this.getRangeStartAttribute().trim().length() == 0) && (null == this.getRangeEndAttribute() || this.getRangeEndAttribute().trim().length() == 0) && (null == this.getValueAttribute() || this.getValueAttribute().trim().length() == 0) ); }
@Override public boolean isEmpty() { return (super.isEmpty() && (null == this.getMaxLength() || this.getMaxLength() < 0) && (null == this.getMinLength() || this.getMinLength() < 0) && (null == this.getRegexp() || this.getRegexp().trim().length() == 0)); }
@Override protected IAttributeValidationRules getValidationRuleNewIntance() { return new DateAttributeValidationRules(); }
protected IAttributeValidationRules getValidationRuleNewIntance() { return new BaseAttributeValidationRules(); }