com.thaiopensource.datatype.xsd
Class PatternRestrictDatatype

java.lang.Object
  extended by com.thaiopensource.datatype.xsd.DatatypeBase
      extended by com.thaiopensource.datatype.xsd.RestrictDatatype
          extended by com.thaiopensource.datatype.xsd.PatternRestrictDatatype
All Implemented Interfaces:
Datatype2, Datatype

 class PatternRestrictDatatype
extends RestrictDatatype


Field Summary
private  Regex pattern
           
 
Fields inherited from class com.thaiopensource.datatype.xsd.RestrictDatatype
base
 
Fields inherited from class com.thaiopensource.datatype.xsd.DatatypeBase
WHITE_SPACE_COLLAPSE, WHITE_SPACE_PRESERVE, WHITE_SPACE_REPLACE
 
Fields inherited from interface org.relaxng.datatype.Datatype
ID_TYPE_ID, ID_TYPE_IDREF, ID_TYPE_IDREFS, ID_TYPE_NULL
 
Constructor Summary
PatternRestrictDatatype(DatatypeBase base, Regex pattern)
           
 
Method Summary
(package private)  boolean lexicallyAllows(String str)
           
 
Methods inherited from class com.thaiopensource.datatype.xsd.RestrictDatatype
allowsValue, getIdType, getMeasure, getOrderRelation, getPrimitive, getValue, sameValue, valueHashCode
 
Methods inherited from class com.thaiopensource.datatype.xsd.DatatypeBase
alwaysValid, checkValid, createStreamingValidator, createValue, getWhiteSpace, isContextDependent, isValid, normalizeWhiteSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

private final Regex pattern
Constructor Detail

PatternRestrictDatatype

PatternRestrictDatatype(DatatypeBase base,
                        Regex pattern)
Method Detail

lexicallyAllows

boolean lexicallyAllows(String str)
Overrides:
lexicallyAllows in class RestrictDatatype