/** Constructor. */ public VCLNodeIteratorImpl() { super(); FastArrayList list = new FastArrayList(); list.setFast(true); this.coll = list; this.reset(); }
/** * @param toValidate * @param propertyValue * @param messages * @see * nl.knowlogy.validation.metadata.PropertyValidation#doValidatePropertyValue(java.lang.Object, * nl.knowlogy.validation.iMessages) */ public void doValidatePropertyValue(Object toValidate, Object propertyValue, iMessages messages) { String stringValue = (String) propertyValue; if ((stringValue != null) && (allowedValuesList != null) && (!allowedValuesList.contains(stringValue))) { messages.addPropertyMessage(MessageType.ERROR, toValidate, getPropertyName(), getErrorCode()); } }
private String getAllowedValuesStr() { String allowedValueStr = ""; Iterator allowedValuesIt = allowedValuesList.iterator(); if (allowedValuesIt.hasNext()) { allowedValueStr = (String) allowedValuesIt.next(); } while (allowedValuesIt.hasNext()) { allowedValueStr = allowedValueStr + "," + (String) allowedValuesIt.next(); } return allowedValueStr; }