コード例 #1
0
  /** Constructor. */
  public VCLNodeIteratorImpl() {
    super();

    FastArrayList list = new FastArrayList();
    list.setFast(true);

    this.coll = list;
    this.reset();
  }
コード例 #2
0
 /**
  * @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());
   }
 }
コード例 #3
0
 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;
 }