📄 xmlfinder.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Fri Jun 06 19:58:39 CEST 2003 -->
<TITLE>
XmlFinder (Amic utility classes)
</TITLE>
<META NAME="keywords" CONTENT="org.amic.xml.XmlFinder,XmlFinder class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="XmlFinder (Amic utility classes)";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Amic utility<br> classes</b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../org/amic/xml/XmlDynTreeModel.html"><B>PREV CLASS</B></A>
<A HREF="../../../org/amic/xml/XmlListCellRenderer.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="XmlFinder.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.amic.xml</FONT>
<BR>
Class XmlFinder</H2>
<PRE>
java.lang.Object
|
+--<B>org.amic.xml.XmlFinder</B>
</PRE>
<HR>
<DL>
<DT>public class <B>XmlFinder</B><DT>extends java.lang.Object</DL>
<P>
XmlFinder class fills a NodeSet or NodeSortedSet with the results of a find operation. It performs complex searches over the DOM tree. <ul> <li>'/' acts as a element separator. When it occupies the first position converts the expression to absolute, otherwise is relative to the node given to the constructor. <li>'@' prefixes attribute names. <li>'=' separates names from values. <li>'#' before node names, node-values, attribute-values will use regular expressions to test equality. <li>'&' allows node repetition. Useful when the number of nested elements is unknown. </ul> Examples: The adress element of the user node with the attribute 'id-user' equal to 12. The search is performed from the root element. <pre> /root/user@id-user=12/adress </pre> The adress element of the user node with the attribute 'name' that matches the regular expression '^A'. The search is performed from the node given to the constructor. <pre> user@name=#^A/adress </pre> The third expression equals to the other two expressions: <pre> /root/group/group/user /root/group/group/group/user /root/&group/user </pre> Todo: Attribute-name doesn't support regular expressions.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/amic/xml/XmlFinder.html#XmlFinder(org.amic.xml.XmlReader)">XmlFinder</A></B>(<A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> reader)</CODE>
<BR>
Creates new XmlFinder. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/amic/xml/XmlFinder.html#XmlFinder(org.amic.xml.XmlReader, org.amic.xml.NodeSet)">XmlFinder</A></B>(<A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> reader, <A HREF="../../../org/amic/xml/NodeSet.html">NodeSet</A> set)</CODE>
<BR>
Creates new XmlFinder. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/amic/xml/XmlFinder.html#XmlFinder(org.amic.xml.XmlReader, org.amic.xml.NodeSet, org.amic.xml.XmlMapper)">XmlFinder</A></B>(<A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> reader, <A HREF="../../../org/amic/xml/NodeSet.html">NodeSet</A> set, <A HREF="../../../org/amic/xml/XmlMapper.html">XmlMapper</A> mapper)</CODE>
<BR>
Creates new XmlFinder.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/amic/xml/XmlFinder.html#XmlFinder(org.amic.xml.XmlReader, org.amic.xml.XmlMapper)">XmlFinder</A></B>(<A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> reader, <A HREF="../../../org/amic/xml/XmlMapper.html">XmlMapper</A> mapper)</CODE>
<BR>
Creates new XmlFinder. </TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/amic/xml/XmlFinder.html#findNode(java.lang.String)">findNode</A></B>(java.lang.String expression)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/amic/xml/NodeSet.html">NodeSet</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/amic/xml/XmlFinder.html#findNodes(java.lang.String)">findNodes</A></B>(java.lang.String expression)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -