1 package com.thaiopensource.datatype.xsd; 2 3 import org.relaxng.datatype.ValidationContext; 4 5 class RestrictDatatype extends DatatypeBase { 6 protected final DatatypeBase base; 7 8 RestrictDatatype(DatatypeBase base) { 9 this(base, base.getWhiteSpace()); 10 } 11 12 RestrictDatatype(DatatypeBase base, int whiteSpace) { 13 super(whiteSpace); 14 this.base = base; 15 } 16 17 boolean lexicallyAllows(String str) { 18 return base.lexicallyAllows(str); 19 } 20 21 boolean allowsValue(String str, ValidationContext vc) { 22 return base.allowsValue(str, vc); 23 } 24 25 OrderRelation getOrderRelation() { 26 return base.getOrderRelation(); 27 } 28 29 Measure getMeasure() { 30 return base.getMeasure(); 31 } 32 33 Object getValue(String str, ValidationContext vc) { 34 return base.getValue(str, vc); 35 } 36 37 DatatypeBase getPrimitive() { 38 return base.getPrimitive(); 39 } 40 41 public int getIdType() { 42 return base.getIdType(); 43 } 44 45 public boolean sameValue(Object value1, Object value2) { 46 return base.sameValue(value1, value2); 47 } 48 49 public int valueHashCode(Object value) { 50 return base.valueHashCode(value); 51 } 52 } 53 | Popular Tags |