| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:13:00 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Interface Attributes2
|
| </TITLE>
|
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
|
| </HEAD>
|
| <BODY BGCOLOR="white">
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 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="class-use/Attributes2.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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>
|
| </EM>
|
| </TD>
|
| </TR>
|
|
|
| <TR>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| PREV CLASS
|
| <A HREF="../../../../org/xml/sax/ext/DeclHandler.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="Attributes2.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| <!-- ======== START OF CLASS DATA ======== -->
|
| <H2>
|
| <FONT SIZE="-1">
|
| org.xml.sax.ext</FONT>
|
| <BR>
|
| Interface Attributes2</H2>
|
| <DL>
|
| <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/xml/sax/ext/Attributes2Impl.html">Attributes2Impl</A></DD>
|
| </DL>
|
| <HR>
|
| <DL>
|
| <DT>public interface <B>Attributes2</B><DT>extends <A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></DL>
|
|
|
| <P>
|
| SAX2 extension to augment the per-attribute information |
| provided though <A HREF="../../../../org/xml/sax/Attributes.html"><CODE>Attributes</CODE></A>. |
| If an implementation supports this extension, the attributes |
| provided in <A HREF="../../../../org/xml/sax/ContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)">ContentHandler.startElement() </A> will implement this interface, |
| and the <em>http://xml.org/sax/features/use-attributes2</em> |
| feature flag will have the value <em>true</em>. |
| |
| <blockquote> |
| <em>This module, both source code and documentation, is in the |
| Public Domain, and comes with <strong>NO WARRANTY</strong>.</em> |
| </blockquote> |
| |
| <p> XMLReader implementations are not required to support this |
| information, and it is not part of core-only SAX2 distributions.</p> |
| |
| <p>Note that if an attribute was defaulted (<em>!isSpecified()</em>) |
| it will of necessity also have been declared (<em>isDeclared()</em>) |
| in the DTD. |
| Similarly if an attribute's type is anything except CDATA, then it |
| must have been declared. |
| </p>
|
| <P>
|
| <DL>
|
| <DT><B>Since: </B><DD>SAX 2.0 (extensions 1.1 alpha)</DD>
|
| </DL>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
|
| <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
|
| <!-- ========== 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> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Attributes2.html#isDeclared(int)">isDeclared</A></B>(int index)</CODE>
|
|
|
| <BR>
|
| Returns false unless the attribute was declared in the DTD.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Attributes2.html#isDeclared(java.lang.String)">isDeclared</A></B>(java.lang.String qName)</CODE>
|
|
|
| <BR>
|
| Returns false unless the attribute was declared in the DTD.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Attributes2.html#isDeclared(java.lang.String, java.lang.String)">isDeclared</A></B>(java.lang.String uri, |
| java.lang.String localName)</CODE>
|
|
|
| <BR>
|
| Returns false unless the attribute was declared in the DTD.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Attributes2.html#isSpecified(int)">isSpecified</A></B>(int index)</CODE>
|
|
|
| <BR>
|
| Returns true unless the attribute value was provided |
| by DTD defaulting.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Attributes2.html#isSpecified(java.lang.String)">isSpecified</A></B>(java.lang.String qName)</CODE>
|
|
|
| <BR>
|
| Returns true unless the attribute value was provided |
| by DTD defaulting.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/xml/sax/ext/Attributes2.html#isSpecified(java.lang.String, java.lang.String)">isSpecified</A></B>(java.lang.String uri, |
| java.lang.String localName)</CODE>
|
|
|
| <BR>
|
| Returns true unless the attribute value was provided |
| by DTD defaulting.</TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_org.xml.sax.Attributes"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from interface org.xml.sax.<A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getIndex(java.lang.String)">getIndex</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getIndex(java.lang.String, java.lang.String)">getIndex</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getLength()">getLength</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getLocalName(int)">getLocalName</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getQName(int)">getQName</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getType(int)">getType</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getType(java.lang.String)">getType</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getType(java.lang.String, java.lang.String)">getType</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getURI(int)">getURI</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getValue(int)">getValue</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getValue(java.lang.String)">getValue</A>,
|
| <A HREF="../../../../org/xml/sax/Attributes.html#getValue(java.lang.String, java.lang.String)">getValue</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
| <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
|
| <!-- ============ METHOD DETAIL ========== -->
|
|
|
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Method Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="isDeclared(int)"><!-- --></A><H3>
|
| isDeclared</H3>
|
| <PRE>
|
| public boolean <B>isDeclared</B>(int index)</PRE>
|
| <DL>
|
| <DD>Returns false unless the attribute was declared in the DTD. |
| This helps distinguish two kinds of attributes that SAX reports |
| as CDATA: ones that were declared (and hence are usually valid), |
| and those that were not (and which are never valid).<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>index</CODE> - The attribute index (zero-based).<DT><B>Returns:</B><DD>true if the attribute was declared in the DTD, |
| false otherwise.<DT><B>Throws:</B><DD>java.lang.ArrayIndexOutOfBoundsException - When the |
| supplied index does not identify an attribute.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isDeclared(java.lang.String)"><!-- --></A><H3>
|
| isDeclared</H3>
|
| <PRE>
|
| public boolean <B>isDeclared</B>(java.lang.String qName)</PRE>
|
| <DL>
|
| <DD>Returns false unless the attribute was declared in the DTD. |
| This helps distinguish two kinds of attributes that SAX reports |
| as CDATA: ones that were declared (and hence are usually valid), |
| and those that were not (and which are never valid).<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qName</CODE> - The XML qualified (prefixed) name.<DT><B>Returns:</B><DD>true if the attribute was declared in the DTD, |
| false otherwise.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - When the |
| supplied name does not identify an attribute.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isDeclared(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| isDeclared</H3>
|
| <PRE>
|
| public boolean <B>isDeclared</B>(java.lang.String uri, |
| java.lang.String localName)</PRE>
|
| <DL>
|
| <DD>Returns false unless the attribute was declared in the DTD. |
| This helps distinguish two kinds of attributes that SAX reports |
| as CDATA: ones that were declared (and hence are usually valid), |
| and those that were not (and which are never valid). |
| |
| <p>Remember that since DTDs do not "understand" namespaces, the |
| namespace URI associated with an attribute may not have come from |
| the DTD. The declaration will have applied to the attribute's |
| <em>qName</em>.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>uri</CODE> - The Namespace URI, or the empty string if |
| the name has no Namespace URI.<DD><CODE>localName</CODE> - The attribute's local name.<DT><B>Returns:</B><DD>true if the attribute was declared in the DTD, |
| false otherwise.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - When the |
| supplied names do not identify an attribute.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isSpecified(int)"><!-- --></A><H3>
|
| isSpecified</H3>
|
| <PRE>
|
| public boolean <B>isSpecified</B>(int index)</PRE>
|
| <DL>
|
| <DD>Returns true unless the attribute value was provided |
| by DTD defaulting.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>index</CODE> - The attribute index (zero-based).<DT><B>Returns:</B><DD>true if the value was found in the XML text, |
| false if the value was provided by DTD defaulting.<DT><B>Throws:</B><DD>java.lang.ArrayIndexOutOfBoundsException - When the |
| supplied index does not identify an attribute.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isSpecified(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| isSpecified</H3>
|
| <PRE>
|
| public boolean <B>isSpecified</B>(java.lang.String uri, |
| java.lang.String localName)</PRE>
|
| <DL>
|
| <DD>Returns true unless the attribute value was provided |
| by DTD defaulting. |
| |
| <p>Remember that since DTDs do not "understand" namespaces, the |
| namespace URI associated with an attribute may not have come from |
| the DTD. The declaration will have applied to the attribute's |
| <em>qName</em>.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>uri</CODE> - The Namespace URI, or the empty string if |
| the name has no Namespace URI.<DD><CODE>localName</CODE> - The attribute's local name.<DT><B>Returns:</B><DD>true if the value was found in the XML text, |
| false if the value was provided by DTD defaulting.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - When the |
| supplied names do not identify an attribute.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isSpecified(java.lang.String)"><!-- --></A><H3>
|
| isSpecified</H3>
|
| <PRE>
|
| public boolean <B>isSpecified</B>(java.lang.String qName)</PRE>
|
| <DL>
|
| <DD>Returns true unless the attribute value was provided |
| by DTD defaulting.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qName</CODE> - The XML qualified (prefixed) name.<DT><B>Returns:</B><DD>true if the value was found in the XML text, |
| false if the value was provided by DTD defaulting.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - When the |
| supplied name does not identify an attribute.</DL>
|
| </DD>
|
| </DL>
|
| <!-- ========= END OF CLASS DATA ========= -->
|
| <HR>
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_bottom"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_bottom_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="class-use/Attributes2.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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>
|
| </EM>
|
| </TD>
|
| </TR>
|
|
|
| <TR>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| PREV CLASS
|
| <A HREF="../../../../org/xml/sax/ext/DeclHandler.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="Attributes2.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|