Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > b3bdfe6d859a3d6920ff2c44b38e9a6f > files > 2171

saxon-manual-9.4.0.9-2.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_18) on Fri Dec 09 20:48:19 GMT 2011 -->
<TITLE>
JDK15RegexTranslator
</TITLE>

<META NAME="date" CONTENT="2011-12-09">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="JDK15RegexTranslator";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../net/sf/saxon/functions/regex/Categories.html" title="class in net.sf.saxon.functions.regex"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.CharClass.html" title="class in net.sf.saxon.functions.regex"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../index.html?net/sf/saxon/functions/regex/JDK15RegexTranslator.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="JDK15RegexTranslator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
net.sf.saxon.functions.regex</FONT>
<BR>
Class JDK15RegexTranslator</H2>
<PRE>
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html" title="class in net.sf.saxon.functions.regex">net.sf.saxon.functions.regex.RegexTranslator</A>
      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.saxon.functions.regex.JDK15RegexTranslator</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>JDK15RegexTranslator</B><DT>extends <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html" title="class in net.sf.saxon.functions.regex">RegexTranslator</A></DL>
</PRE>

<P>
This class translates XML Schema regex syntax into JDK 1.5 regex syntax. This differs from the JDK 1.4
 translator because JDK 1.5 handles non-BMP characters (wide characters) in places where JDK 1.4 does not,
 for example in a range such as [X-Y]. This enables much of the code from the 1.4 translator to be
 removed.
 Author: James Clark, Thai Open Source Software Center Ltd. See statement at end of file.
 Modified by Michael Kay (a) to integrate the code into Saxon, and (b) to support XPath additions
 to the XML Schema regex syntax. This version also removes most of the complexities of handling non-BMP
 characters, since JDK 1.5 handles these natively.
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.CharClass.html" title="class in net.sf.saxon.functions.regex">JDK15RegexTranslator.CharClass</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.CharRange.html" title="class in net.sf.saxon.functions.regex">JDK15RegexTranslator.CharRange</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_net.sf.saxon.functions.regex.RegexTranslator"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class net.sf.saxon.functions.regex.<A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html" title="class in net.sf.saxon.functions.regex">RegexTranslator</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.Range.html" title="class in net.sf.saxon.functions.regex">RegexTranslator.Range</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.CharClass.html" title="class in net.sf.saxon.functions.regex">JDK15RegexTranslator.CharClass</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.html#categoryCharClasses">categoryCharClasses</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Translates XML Schema and XPath regexes into <code>java.util.regex</code> regexes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.CharClass.html" title="class in net.sf.saxon.functions.regex">JDK15RegexTranslator.CharClass</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.html#subCategoryCharClasses">subCategoryCharClasses</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_net.sf.saxon.functions.regex.RegexTranslator"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class net.sf.saxon.functions.regex.<A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html" title="class in net.sf.saxon.functions.regex">RegexTranslator</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#ALL">ALL</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#captures">captures</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#caseBlind">caseBlind</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#curChar">curChar</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#currentCapture">currentCapture</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#eos">eos</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#expandComplementBlockNames">expandComplementBlockNames</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#ignoreWhitespace">ignoreWhitespace</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#inCharClassExpr">inCharClassExpr</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#isXPath">isXPath</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#isXPath30">isXPath30</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#length">length</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#NONE">NONE</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#NOT_ALLOWED_CLASS">NOT_ALLOWED_CLASS</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#pos">pos</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#regExp">regExp</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#result">result</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#SOME">SOME</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#SURROGATES1_CLASS">SURROGATES1_CLASS</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#SURROGATES2_CLASS">SURROGATES2_CLASS</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#warnings">warnings</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#xmlVersion">xmlVersion</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#xsdVersion">xsdVersion</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.html#main(java.lang.String[])">main</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Main method for testing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.html#translate(java.lang.CharSequence, int, int, java.util.List)">translate</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</A>&nbsp;regExp,
          int&nbsp;options,
          int&nbsp;flagbits,
          <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../../net/sf/saxon/functions/regex/RegexSyntaxException.html" title="class in net.sf.saxon.functions.regex">RegexSyntaxException</A>&gt;&nbsp;warnings)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Translates a regular expression in the syntax of XML Schemas Part 2 into a regular
 expression in the syntax of <code>java.util.regex.Pattern</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.html#translateAtom()">translateAtom</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If what follows is an Atom, translate it and return true; otherwise return false</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_net.sf.saxon.functions.regex.RegexTranslator"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class net.sf.saxon.functions.regex.<A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html" title="class in net.sf.saxon.functions.regex">RegexTranslator</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#absorbSurrogatePair()">absorbSurrogatePair</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#advance()">advance</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#copyCurChar()">copyCurChar</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#expect(char)">expect</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#highSurrogateRanges(java.util.List)">highSurrogateRanges</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#isAsciiAlnum(char)">isAsciiAlnum</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#isJavaMetaChar(int)">isJavaMetaChar</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#lowSurrogateRanges(java.util.List)">lowSurrogateRanges</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#makeException(java.lang.String)">makeException</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#makeException(java.lang.String, java.lang.String)">makeException</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#parseQuantExact()">parseQuantExact</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#recede()">recede</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#translateBranch()">translateBranch</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#translateQuantifier()">translateQuantifier</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#translateQuantity()">translateQuantity</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#translateRegExp()">translateRegExp</A>, <A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#translateTop()">translateTop</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="categoryCharClasses"><!-- --></A><H3>
categoryCharClasses</H3>
<PRE>
public static final <A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.CharClass.html" title="class in net.sf.saxon.functions.regex">JDK15RegexTranslator.CharClass</A>[] <B>categoryCharClasses</B></PRE>
<DL>
<DD>Translates XML Schema and XPath regexes into <code>java.util.regex</code> regexes.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex"><CODE>Pattern</CODE></A>, 
<a href="http://www.w3.org/TR/xmlschema-2/#regexs">XML Schema Part 2</a></DL>
</DL>
<HR>

<A NAME="subCategoryCharClasses"><!-- --></A><H3>
subCategoryCharClasses</H3>
<PRE>
public static final <A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.CharClass.html" title="class in net.sf.saxon.functions.regex">JDK15RegexTranslator.CharClass</A>[] <B>subCategoryCharClasses</B></PRE>
<DL>
<DL>
</DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="translate(java.lang.CharSequence, int, int, java.util.List)"><!-- --></A><H3>
translate</H3>
<PRE>
public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>translate</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</A>&nbsp;regExp,
                               int&nbsp;options,
                               int&nbsp;flagbits,
                               <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../../net/sf/saxon/functions/regex/RegexSyntaxException.html" title="class in net.sf.saxon.functions.regex">RegexSyntaxException</A>&gt;&nbsp;warnings)
                        throws <A HREF="../../../../../net/sf/saxon/functions/regex/RegexSyntaxException.html" title="class in net.sf.saxon.functions.regex">RegexSyntaxException</A></PRE>
<DL>
<DD>Translates a regular expression in the syntax of XML Schemas Part 2 into a regular
 expression in the syntax of <code>java.util.regex.Pattern</code>.  The translation
 assumes that the string to be matched against the regex uses surrogate pairs correctly.
 If the string comes from XML content, a conforming XML parser will automatically
 check this; if the string comes from elsewhere, it may be necessary to check
 surrogate usage before matching.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>regExp</CODE> - a String containing a regular expression in the syntax of XML Schemas Part 2<DD><CODE>options</CODE> - bit-wise option settings<DD><CODE>flagbits</CODE> - Java bit-wise options settings based on supplied flags<DD><CODE>warnings</CODE> - a list to contain any warnings generated. If no list is supplied, this indicates
 that the caller is not interested in knowing about any warnings.
<DT><B>Returns:</B><DD>a JDK 1.5 regular expression
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexSyntaxException.html" title="class in net.sf.saxon.functions.regex">RegexSyntaxException</A></CODE> - if <code>regexp</code> is not a regular expression in the
                              syntax of XML Schemas Part 2, or XPath 2.0, as appropriate<DT><B>See Also:</B><DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex"><CODE>Pattern</CODE></A>, 
<a href="http://www.w3.org/TR/xmlschema-2/#regexs">XML Schema Part 2</a></DL>
</DD>
</DL>
<HR>

<A NAME="translateAtom()"><!-- --></A><H3>
translateAtom</H3>
<PRE>
protected boolean <B>translateAtom</B>()
                         throws <A HREF="../../../../../net/sf/saxon/functions/regex/RegexSyntaxException.html" title="class in net.sf.saxon.functions.regex">RegexSyntaxException</A></PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#translateAtom()">RegexTranslator</A></CODE></B></DD>
<DD>If what follows is an Atom, translate it and return true; otherwise return false
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html#translateAtom()">translateAtom</A></CODE> in class <CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexTranslator.html" title="class in net.sf.saxon.functions.regex">RegexTranslator</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>true if we found an atom
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexSyntaxException.html" title="class in net.sf.saxon.functions.regex">RegexSyntaxException</A></CODE> - if the regex syntax is incorrect</DL>
</DD>
</DL>
<HR>

<A NAME="main(java.lang.String[])"><!-- --></A><H3>
main</H3>
<PRE>
public static void <B>main</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;args)
                 throws <A HREF="../../../../../net/sf/saxon/functions/regex/RegexSyntaxException.html" title="class in net.sf.saxon.functions.regex">RegexSyntaxException</A></PRE>
<DL>
<DD>Main method for testing. Outputs to System.err the Java translation of a supplied
 regular expression
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>args</CODE> - command line arguments
        arg[0] a regular expression
        arg[1] = xpath to invoke the XPath rules
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../net/sf/saxon/functions/regex/RegexSyntaxException.html" title="class in net.sf.saxon.functions.regex">RegexSyntaxException</A></CODE> - if the regex is invalid</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../net/sf/saxon/functions/regex/Categories.html" title="class in net.sf.saxon.functions.regex"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../net/sf/saxon/functions/regex/JDK15RegexTranslator.CharClass.html" title="class in net.sf.saxon.functions.regex"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../index.html?net/sf/saxon/functions/regex/JDK15RegexTranslator.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="JDK15RegexTranslator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.
</BODY>
</HTML>