[15222] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
| 2 | <!--NewPage-->
|
---|
| 3 | <HTML>
|
---|
| 4 | <HEAD>
|
---|
| 5 | <!-- Generated by javadoc (build 1.5.0_10) on Sun Apr 27 20:47:19 NZST 2008 -->
|
---|
| 6 | <TITLE>
|
---|
| 7 | ParseUtil
|
---|
| 8 | </TITLE>
|
---|
| 9 |
|
---|
| 10 | <META NAME="keywords" CONTENT="org.greenstone.gs3client.data.ParseUtil class">
|
---|
| 11 |
|
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
|
---|
| 13 |
|
---|
| 14 | <SCRIPT type="text/javascript">
|
---|
| 15 | function windowTitle()
|
---|
| 16 | {
|
---|
| 17 | parent.document.title="ParseUtil";
|
---|
| 18 | }
|
---|
| 19 | </SCRIPT>
|
---|
| 20 | <NOSCRIPT>
|
---|
| 21 | </NOSCRIPT>
|
---|
| 22 |
|
---|
| 23 | </HEAD>
|
---|
| 24 |
|
---|
| 25 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
| 29 | <A NAME="navbar_top"><!-- --></A>
|
---|
| 30 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
| 31 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 32 | <TR>
|
---|
| 33 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 34 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
| 35 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 36 | <TR ALIGN="center" VALIGN="top">
|
---|
| 37 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 39 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 44 | </TR>
|
---|
| 45 | </TABLE>
|
---|
| 46 | </TD>
|
---|
| 47 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 48 | </EM>
|
---|
| 49 | </TD>
|
---|
| 50 | </TR>
|
---|
| 51 |
|
---|
| 52 | <TR>
|
---|
| 53 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 54 | <A HREF="../../../../org/greenstone/gs3client/data/Pair.html" title="class in org.greenstone.gs3client.data"><B>PREV CLASS</B></A>
|
---|
| 55 | <A HREF="../../../../org/greenstone/gs3client/data/QueryFormData.html" title="class in org.greenstone.gs3client.data"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
| 56 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 57 | <A HREF="../../../../index.html?org/greenstone/gs3client/data/ParseUtil.html" target="_top"><B>FRAMES</B></A>
|
---|
| 58 | <A HREF="ParseUtil.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 59 | <SCRIPT type="text/javascript">
|
---|
| 60 | <!--
|
---|
| 61 | if(window==top) {
|
---|
| 62 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 63 | }
|
---|
| 64 | //-->
|
---|
| 65 | </SCRIPT>
|
---|
| 66 | <NOSCRIPT>
|
---|
| 67 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 68 | </NOSCRIPT>
|
---|
| 69 |
|
---|
| 70 |
|
---|
| 71 | </FONT></TD>
|
---|
| 72 | </TR>
|
---|
| 73 | <TR>
|
---|
| 74 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 75 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 76 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 77 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 78 | </TR>
|
---|
| 79 | </TABLE>
|
---|
| 80 | <A NAME="skip-navbar_top"></A>
|
---|
| 81 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
| 82 |
|
---|
| 83 | <HR>
|
---|
| 84 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
| 85 | <H2>
|
---|
| 86 | <FONT SIZE="-1">
|
---|
| 87 | org.greenstone.gs3client.data</FONT>
|
---|
| 88 | <BR>
|
---|
| 89 | Class ParseUtil</H2>
|
---|
| 90 | <PRE>
|
---|
| 91 | java.lang.Object
|
---|
| 92 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.greenstone.gs3client.data.ParseUtil</B>
|
---|
| 93 | </PRE>
|
---|
| 94 | <HR>
|
---|
| 95 | <DL>
|
---|
| 96 | <DT><PRE>public class <B>ParseUtil</B><DT>extends java.lang.Object</DL>
|
---|
| 97 | </PRE>
|
---|
| 98 |
|
---|
| 99 | <P>
|
---|
| 100 | Some useful, general response XML message parsing functions
|
---|
| 101 | for the JavaClient's data classes.
|
---|
| 102 | <P>
|
---|
| 103 |
|
---|
| 104 | <P>
|
---|
| 105 | <DL>
|
---|
| 106 | <DT><B>Author:</B></DT>
|
---|
| 107 | <DD>ak19</DD>
|
---|
| 108 | </DL>
|
---|
| 109 | <HR>
|
---|
| 110 |
|
---|
| 111 | <P>
|
---|
| 112 |
|
---|
| 113 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
| 114 |
|
---|
| 115 | <A NAME="constructor_summary"><!-- --></A>
|
---|
| 116 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 117 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 118 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
---|
| 119 | <B>Constructor Summary</B></FONT></TH>
|
---|
| 120 | </TR>
|
---|
| 121 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 122 | <TD><CODE><B><A HREF="../../../../org/greenstone/gs3client/data/ParseUtil.html#ParseUtil()">ParseUtil</A></B>()</CODE>
|
---|
| 123 |
|
---|
| 124 | <BR>
|
---|
| 125 | </TD>
|
---|
| 126 | </TR>
|
---|
| 127 | </TABLE>
|
---|
| 128 |
|
---|
| 129 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
| 130 |
|
---|
| 131 | <A NAME="method_summary"><!-- --></A>
|
---|
| 132 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 133 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 134 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
---|
| 135 | <B>Method Summary</B></FONT></TH>
|
---|
| 136 | </TR>
|
---|
| 137 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 138 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 139 | <CODE>static java.util.Vector</CODE></FONT></TD>
|
---|
| 140 | <TD><CODE><B><A HREF="../../../../org/greenstone/gs3client/data/ParseUtil.html#getAllChildElementsCalled(org.w3c.dom.Element, java.lang.String)">getAllChildElementsCalled</A></B>(org.w3c.dom.Element el,
|
---|
| 141 | java.lang.String childrenName)</CODE>
|
---|
| 142 |
|
---|
| 143 | <BR>
|
---|
| 144 | </TD>
|
---|
| 145 | </TR>
|
---|
| 146 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 147 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 148 | <CODE>static java.lang.String</CODE></FONT></TD>
|
---|
| 149 | <TD><CODE><B><A HREF="../../../../org/greenstone/gs3client/data/ParseUtil.html#getBodyTextValue(org.w3c.dom.Element)">getBodyTextValue</A></B>(org.w3c.dom.Element tag)</CODE>
|
---|
| 150 |
|
---|
| 151 | <BR>
|
---|
| 152 | </TD>
|
---|
| 153 | </TR>
|
---|
| 154 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 155 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 156 | <CODE>static java.util.HashMap</CODE></FONT></TD>
|
---|
| 157 | <TD><CODE><B><A HREF="../../../../org/greenstone/gs3client/data/ParseUtil.html#getElementValuesForAttr(org.w3c.dom.Element, java.lang.String, java.lang.String)">getElementValuesForAttr</A></B>(org.w3c.dom.Element parentEl,
|
---|
| 158 | java.lang.String elName,
|
---|
| 159 | java.lang.String attrName)</CODE>
|
---|
| 160 |
|
---|
| 161 | <BR>
|
---|
| 162 | Given an Element <parentEl>, finds all direct child elements called
|
---|
| 163 | <elName> that have an attribute named attrName:
|
---|
| 164 | <elName attrName=value>bodytext</elName>
|
---|
| 165 | This is particularly useful for extracting info for those cases where
|
---|
| 166 | elName=<displayItem> and where the attrName is "name".</TD>
|
---|
| 167 | </TR>
|
---|
| 168 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 169 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 170 | <CODE>static org.w3c.dom.Element</CODE></FONT></TD>
|
---|
| 171 | <TD><CODE><B><A HREF="../../../../org/greenstone/gs3client/data/ParseUtil.html#getFirstChildElementCalled(org.w3c.dom.Element, java.lang.String)">getFirstChildElementCalled</A></B>(org.w3c.dom.Element parent,
|
---|
| 172 | java.lang.String childElementName)</CODE>
|
---|
| 173 |
|
---|
| 174 | <BR>
|
---|
| 175 | Method that returns the first child element of parent whose tagname is
|
---|
| 176 | childElementName.</TD>
|
---|
| 177 | </TR>
|
---|
| 178 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 179 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 180 | <CODE>static org.w3c.dom.Element</CODE></FONT></TD>
|
---|
| 181 | <TD><CODE><B><A HREF="../../../../org/greenstone/gs3client/data/ParseUtil.html#getFirstDescElementCalled(org.w3c.dom.Element, java.lang.String)">getFirstDescElementCalled</A></B>(org.w3c.dom.Element parent,
|
---|
| 182 | java.lang.String descElementName)</CODE>
|
---|
| 183 |
|
---|
| 184 | <BR>
|
---|
| 185 | Method that returns the first descendant element of parent whose tagname
|
---|
| 186 | is descElementName.</TD>
|
---|
| 187 | </TR>
|
---|
| 188 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 189 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 190 | <CODE>static java.util.Vector</CODE></FONT></TD>
|
---|
| 191 | <TD><CODE><B><A HREF="../../../../org/greenstone/gs3client/data/ParseUtil.html#getListElementsAsArray(org.w3c.dom.Element, java.lang.String, java.lang.String)">getListElementsAsArray</A></B>(org.w3c.dom.Element parent,
|
---|
| 192 | java.lang.String listElementName,
|
---|
| 193 | java.lang.String childElementName)</CODE>
|
---|
| 194 |
|
---|
| 195 | <BR>
|
---|
| 196 | Given an xml element ('parent'), it looks through its direct children
|
---|
| 197 | to find the <listElementName> tag and extracts each child called
|
---|
| 198 | <childElementName> element from it.</TD>
|
---|
| 199 | </TR>
|
---|
| 200 | </TABLE>
|
---|
| 201 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
| 202 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 203 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 204 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
---|
| 205 | </TR>
|
---|
| 206 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 207 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
| 208 | </TR>
|
---|
| 209 | </TABLE>
|
---|
| 210 |
|
---|
| 211 | <P>
|
---|
| 212 |
|
---|
| 213 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
| 214 |
|
---|
| 215 | <A NAME="constructor_detail"><!-- --></A>
|
---|
| 216 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 217 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 218 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
---|
| 219 | <B>Constructor Detail</B></FONT></TH>
|
---|
| 220 | </TR>
|
---|
| 221 | </TABLE>
|
---|
| 222 |
|
---|
| 223 | <A NAME="ParseUtil()"><!-- --></A><H3>
|
---|
| 224 | ParseUtil</H3>
|
---|
| 225 | <PRE>
|
---|
| 226 | public <B>ParseUtil</B>()</PRE>
|
---|
| 227 | <DL>
|
---|
| 228 | </DL>
|
---|
| 229 |
|
---|
| 230 | <!-- ============ METHOD DETAIL ========== -->
|
---|
| 231 |
|
---|
| 232 | <A NAME="method_detail"><!-- --></A>
|
---|
| 233 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 234 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 235 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
---|
| 236 | <B>Method Detail</B></FONT></TH>
|
---|
| 237 | </TR>
|
---|
| 238 | </TABLE>
|
---|
| 239 |
|
---|
| 240 | <A NAME="getBodyTextValue(org.w3c.dom.Element)"><!-- --></A><H3>
|
---|
| 241 | getBodyTextValue</H3>
|
---|
| 242 | <PRE>
|
---|
| 243 | public static java.lang.String <B>getBodyTextValue</B>(org.w3c.dom.Element tag)</PRE>
|
---|
| 244 | <DL>
|
---|
| 245 | <DD><DL>
|
---|
| 246 | <DT><B>Parameters:</B><DD><CODE>tag</CODE> - is the XML element from which the body text value will
|
---|
| 247 | be extracted.
|
---|
| 248 | <DT><B>Returns:</B><DD>the bodyText nested within the tag element, if any. Otherwise, this
|
---|
| 249 | method returns empty String.</DL>
|
---|
| 250 | </DD>
|
---|
| 251 | </DL>
|
---|
| 252 | <HR>
|
---|
| 253 |
|
---|
| 254 | <A NAME="getAllChildElementsCalled(org.w3c.dom.Element, java.lang.String)"><!-- --></A><H3>
|
---|
| 255 | getAllChildElementsCalled</H3>
|
---|
| 256 | <PRE>
|
---|
| 257 | public static java.util.Vector <B>getAllChildElementsCalled</B>(org.w3c.dom.Element el,
|
---|
| 258 | java.lang.String childrenName)</PRE>
|
---|
| 259 | <DL>
|
---|
| 260 | <DD><DL>
|
---|
| 261 | <DT><B>Parameters:</B><DD><CODE>el</CODE> - is the element whose child elements are returned.<DD><CODE>childrenName</CODE> - is the name of the child elements to be extracted and
|
---|
| 262 | returned.
|
---|
| 263 | <DT><B>Returns:</B><DD>a vector containing all child elements of parent that are
|
---|
| 264 | called childrenName. Returns null if there are no such child elements.</DL>
|
---|
| 265 | </DD>
|
---|
| 266 | </DL>
|
---|
| 267 | <HR>
|
---|
| 268 |
|
---|
| 269 | <A NAME="getListElementsAsArray(org.w3c.dom.Element, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
---|
| 270 | getListElementsAsArray</H3>
|
---|
| 271 | <PRE>
|
---|
| 272 | public static java.util.Vector <B>getListElementsAsArray</B>(org.w3c.dom.Element parent,
|
---|
| 273 | java.lang.String listElementName,
|
---|
| 274 | java.lang.String childElementName)</PRE>
|
---|
| 275 | <DL>
|
---|
| 276 | <DD>Given an xml element ('parent'), it looks through its direct children
|
---|
| 277 | to find the <listElementName> tag and extracts each child called
|
---|
| 278 | <childElementName> element from it. These are all added into a Vector
|
---|
| 279 | which is returned.
|
---|
| 280 | <P>
|
---|
| 281 | <DD><DL>
|
---|
| 282 | <DT><B>Parameters:</B><DD><CODE>parent</CODE> - is the XML element from which the specified descendant
|
---|
| 283 | elements are identified and returned.<DD><CODE>listElementName</CODE> - is the name of the child element of parent that we
|
---|
| 284 | are looking for, whose child elements will be returned.
|
---|
| 285 | <DT><B>Returns:</B><DD>a vector of Element items, all children <childelementName> of
|
---|
| 286 | the <b>first</b> <listElementName> child of parameter called parent.</DL>
|
---|
| 287 | </DD>
|
---|
| 288 | </DL>
|
---|
| 289 | <HR>
|
---|
| 290 |
|
---|
| 291 | <A NAME="getFirstChildElementCalled(org.w3c.dom.Element, java.lang.String)"><!-- --></A><H3>
|
---|
| 292 | getFirstChildElementCalled</H3>
|
---|
| 293 | <PRE>
|
---|
| 294 | public static org.w3c.dom.Element <B>getFirstChildElementCalled</B>(org.w3c.dom.Element parent,
|
---|
| 295 | java.lang.String childElementName)</PRE>
|
---|
| 296 | <DL>
|
---|
| 297 | <DD>Method that returns the first child element of parent whose tagname is
|
---|
| 298 | childElementName.
|
---|
| 299 | <P>
|
---|
| 300 | <DD><DL>
|
---|
| 301 | <DT><B>Parameters:</B><DD><CODE>parent</CODE> - is the element whose child element (if called
|
---|
| 302 | childElementName) is returned.<DD><CODE>childElementName</CODE> - is the name of the child element to look for in
|
---|
| 303 | parent.
|
---|
| 304 | <DT><B>Returns:</B><DD>the first *child* element of <parent> that is
|
---|
| 305 | <childElementName>. Null is returned if there are none.</DL>
|
---|
| 306 | </DD>
|
---|
| 307 | </DL>
|
---|
| 308 | <HR>
|
---|
| 309 |
|
---|
| 310 | <A NAME="getFirstDescElementCalled(org.w3c.dom.Element, java.lang.String)"><!-- --></A><H3>
|
---|
| 311 | getFirstDescElementCalled</H3>
|
---|
| 312 | <PRE>
|
---|
| 313 | public static org.w3c.dom.Element <B>getFirstDescElementCalled</B>(org.w3c.dom.Element parent,
|
---|
| 314 | java.lang.String descElementName)</PRE>
|
---|
| 315 | <DL>
|
---|
| 316 | <DD>Method that returns the first descendant element of parent whose tagname
|
---|
| 317 | is descElementName.
|
---|
| 318 | <P>
|
---|
| 319 | <DD><DL>
|
---|
| 320 | <DT><B>Parameters:</B><DD><CODE>parent</CODE> - is the element whose descendant element (if called
|
---|
| 321 | descElementName) is returned.<DD><CODE>descElementName</CODE> - is the name of the descendant element to look for
|
---|
| 322 | in parent.
|
---|
| 323 | <DT><B>Returns:</B><DD>the first <b>descendant</b> element of <parent> that is
|
---|
| 324 | <descElementName>. Null is returned if there are none.</DL>
|
---|
| 325 | </DD>
|
---|
| 326 | </DL>
|
---|
| 327 | <HR>
|
---|
| 328 |
|
---|
| 329 | <A NAME="getElementValuesForAttr(org.w3c.dom.Element, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
---|
| 330 | getElementValuesForAttr</H3>
|
---|
| 331 | <PRE>
|
---|
| 332 | public static java.util.HashMap <B>getElementValuesForAttr</B>(org.w3c.dom.Element parentEl,
|
---|
| 333 | java.lang.String elName,
|
---|
| 334 | java.lang.String attrName)</PRE>
|
---|
| 335 | <DL>
|
---|
| 336 | <DD>Given an Element <parentEl>, finds all direct child elements called
|
---|
| 337 | <elName> that have an attribute named attrName:
|
---|
| 338 | <elName attrName=value>bodytext</elName>
|
---|
| 339 | This is particularly useful for extracting info for those cases where
|
---|
| 340 | elName=<displayItem> and where the attrName is "name".
|
---|
| 341 | <P>
|
---|
| 342 | <DD><DL>
|
---|
| 343 | <DT><B>Parameters:</B><DD><CODE>parentEl</CODE> - is the parent element whose children are searched<DD><CODE>elName</CODE> - is the name to search for among the child elements of parentEl<DD><CODE>attrName</CODE> - is the name of the attribute to look for in the child
|
---|
| 344 | element (of parentEl) whose tag name is elName.
|
---|
| 345 | <DT><B>Returns:</B><DD>a Hashmap of all the (value, body) instances found.</DL>
|
---|
| 346 | </DD>
|
---|
| 347 | </DL>
|
---|
| 348 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
| 349 | <HR>
|
---|
| 350 |
|
---|
| 351 |
|
---|
| 352 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
| 353 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
| 354 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
| 355 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 356 | <TR>
|
---|
| 357 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 358 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
| 359 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 360 | <TR ALIGN="center" VALIGN="top">
|
---|
| 361 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 362 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 363 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 364 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 365 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 366 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 367 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 368 | </TR>
|
---|
| 369 | </TABLE>
|
---|
| 370 | </TD>
|
---|
| 371 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 372 | </EM>
|
---|
| 373 | </TD>
|
---|
| 374 | </TR>
|
---|
| 375 |
|
---|
| 376 | <TR>
|
---|
| 377 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 378 | <A HREF="../../../../org/greenstone/gs3client/data/Pair.html" title="class in org.greenstone.gs3client.data"><B>PREV CLASS</B></A>
|
---|
| 379 | <A HREF="../../../../org/greenstone/gs3client/data/QueryFormData.html" title="class in org.greenstone.gs3client.data"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
| 380 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 381 | <A HREF="../../../../index.html?org/greenstone/gs3client/data/ParseUtil.html" target="_top"><B>FRAMES</B></A>
|
---|
| 382 | <A HREF="ParseUtil.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 383 | <SCRIPT type="text/javascript">
|
---|
| 384 | <!--
|
---|
| 385 | if(window==top) {
|
---|
| 386 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 387 | }
|
---|
| 388 | //-->
|
---|
| 389 | </SCRIPT>
|
---|
| 390 | <NOSCRIPT>
|
---|
| 391 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 392 | </NOSCRIPT>
|
---|
| 393 |
|
---|
| 394 |
|
---|
| 395 | </FONT></TD>
|
---|
| 396 | </TR>
|
---|
| 397 | <TR>
|
---|
| 398 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 399 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 400 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 401 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 402 | </TR>
|
---|
| 403 | </TABLE>
|
---|
| 404 | <A NAME="skip-navbar_bottom"></A>
|
---|
| 405 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
| 406 |
|
---|
| 407 | <HR>
|
---|
| 408 |
|
---|
| 409 | </BODY>
|
---|
| 410 | </HTML>
|
---|