com.thaiopensource.datatype.xsd
Class RegexDatatype
java.lang.Object
com.thaiopensource.datatype.xsd.DatatypeBase
com.thaiopensource.datatype.xsd.TokenDatatype
com.thaiopensource.datatype.xsd.RegexDatatype
- All Implemented Interfaces:
- Datatype2, Measure, Datatype
- Direct Known Subclasses:
- DateTimeDatatype, DurationDatatype
class RegexDatatype
- extends TokenDatatype
Methods inherited from class com.thaiopensource.datatype.xsd.DatatypeBase |
allowsValue, checkValid, createStreamingValidator, createValue, getIdType, getOrderRelation, getPrimitive, getWhiteSpace, isContextDependent, isValid, normalizeWhiteSpace, sameValue, valueHashCode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pattern
private final String pattern
regex
private Regex regex
RegexDatatype
RegexDatatype(String pattern)
compile
void compile(RegexEngine engine)
throws RegexSyntaxException
- Throws:
RegexSyntaxException
lexicallyAllows
public boolean lexicallyAllows(String str)
- Overrides:
lexicallyAllows
in class TokenDatatype
alwaysValid
public boolean alwaysValid()
- Specified by:
alwaysValid
in interface Datatype2
- Overrides:
alwaysValid
in class TokenDatatype