001 package com.thaiopensource.datatype.xsd; 002 003 import org.relaxng.datatype.ValidationContext; 004 005 class RestrictDatatype extends DatatypeBase { 006 protected final DatatypeBase base; 007 008 RestrictDatatype(DatatypeBase base) { 009 this(base, base.getWhiteSpace()); 010 } 011 012 RestrictDatatype(DatatypeBase base, int whiteSpace) { 013 super(whiteSpace); 014 this.base = base; 015 } 016 017 boolean lexicallyAllows(String str) { 018 return base.lexicallyAllows(str); 019 } 020 021 boolean allowsValue(String str, ValidationContext vc) { 022 return base.allowsValue(str, vc); 023 } 024 025 OrderRelation getOrderRelation() { 026 return base.getOrderRelation(); 027 } 028 029 Measure getMeasure() { 030 return base.getMeasure(); 031 } 032 033 Object getValue(String str, ValidationContext vc) { 034 return base.getValue(str, vc); 035 } 036 037 DatatypeBase getPrimitive() { 038 return base.getPrimitive(); 039 } 040 041 public int getIdType() { 042 return base.getIdType(); 043 } 044 045 public boolean sameValue(Object value1, Object value2) { 046 return base.sameValue(value1, value2); 047 } 048 049 public int valueHashCode(Object value) { 050 return base.valueHashCode(value); 051 } 052 }