KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > datatype > xsd > MinExclusiveRestrictDatatype


1 package com.thaiopensource.datatype.xsd;
2
3 import org.relaxng.datatype.ValidationContext;
4
5 class MinExclusiveRestrictDatatype extends ValueRestrictDatatype {
6   private final OrderRelation order;
7   private final Object JavaDoc limit;
8
9   MinExclusiveRestrictDatatype(DatatypeBase base, Object JavaDoc limit) {
10     super(base);
11     this.order = base.getOrderRelation();
12     this.limit = limit;
13   }
14
15   boolean satisfiesRestriction(Object JavaDoc value) {
16     return order.isLessThan(limit, value);
17   }
18 }
19
Popular Tags