Package net.sf.saxon.regex
Class REFlags
java.lang.Object
net.sf.saxon.regex.REFlags
Class representing a set of regular expression flags (some combination of i, m, s, x, q).
Also contains options affecting the regular expression dialect: whether or not XPath 2.0
and XPath 3.0 extensions to XSD regex syntax are accepted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
isDebug()
boolean
boolean
boolean
void
setAllowUnknownBlockNames
(boolean allow) void
setDebug
(boolean debug)
-
Constructor Details
-
REFlags
Create the regular expression flags- Parameters:
flags
- a string containing zero or more of 'i', 'x', 'm', 's'language
- one of "XSD10", "XSD11", "XP20", or "XP30" indicating the regular expression dialect. Also allow combinations, e.g. "XP20/XSD11".
-
-
Method Details
-
isCaseIndependent
public boolean isCaseIndependent() -
isMultiLine
public boolean isMultiLine() -
isSingleLine
public boolean isSingleLine() -
isAllowWhitespace
public boolean isAllowWhitespace() -
isLiteral
public boolean isLiteral() -
isAllowsXPath20Extensions
public boolean isAllowsXPath20Extensions() -
isAllowsXPath30Extensions
public boolean isAllowsXPath30Extensions() -
isAllowsXSD11Syntax
public boolean isAllowsXSD11Syntax() -
setDebug
public void setDebug(boolean debug) -
isDebug
public boolean isDebug() -
setAllowUnknownBlockNames
public void setAllowUnknownBlockNames(boolean allow) -
isAllowUnknownBlockNames
public boolean isAllowUnknownBlockNames()
-