| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:57 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class QName
|
| </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/QName.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">
|
| <A HREF="../../../../org/apache/xml/utils/PrefixResolverDefault.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/apache/xml/utils/SAXSourceLocator.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="QName.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: <A HREF="#field_detail">FIELD</A> | <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.apache.xml.utils</FONT>
|
| <BR>
|
| Class QName</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<B>org.apache.xml.utils.QName</B>
|
| </PRE>
|
| <HR>
|
| <DL>
|
| <DT>public class <B>QName</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
|
|
|
| <P>
|
| Class to represent a qualified name: "The name of an internal XSLT object, |
| specifically a named template (see [7 Named Templates]), a mode (see [6.7 Modes]), |
| an attribute set (see [8.1.4 Named Attribute Sets]), a key (see [14.2 Keys]), |
| a locale (see [14.3 Number Formatting]), a variable or a parameter (see |
| [12 Variables and Parameters]) is specified as a QName. If it has a prefix, |
| then the prefix is expanded into a URI reference using the namespace declarations |
| in effect on the attribute in which the name occurs. The expanded name |
| consisting of the local part of the name and the possibly null URI reference |
| is used as the name of the object. The default namespace is not used for |
| unprefixed names."
|
| <P>
|
| <DL>
|
| <DT><B>See Also: </B><DD><A HREF="../../../../serialized-form.html#org.apache.xml.utils.QName">Serialized Form</A><DT><B>Usage:</B><DD></DD>
|
| </DL>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Field Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#S_XMLNAMESPACEURI">S_XMLNAMESPACEURI</A></B></CODE>
|
|
|
| <BR>
|
| The XML namespace.</TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- ======== 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/apache/xml/utils/QName.html#QName()">QName</A></B>()</CODE>
|
|
|
| <BR>
|
| Constructs an empty QName.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String)">QName</A></B>(java.lang.String localName)</CODE>
|
|
|
| <BR>
|
| Construct a QName from a string, without namespace resolution.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, boolean)">QName</A></B>(java.lang.String localName, |
| boolean validate)</CODE>
|
|
|
| <BR>
|
| Construct a QName from a string, without namespace resolution.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, org.w3c.dom.Element, org.apache.xml.utils.PrefixResolver)">QName</A></B>(java.lang.String qname, |
| <A HREF="../../../../org/w3c/dom/Element.html">Element</A> namespaceContext, |
| <A HREF="../../../../org/apache/xml/utils/PrefixResolver.html">PrefixResolver</A> resolver)</CODE>
|
|
|
| <BR>
|
| Construct a QName from a string, resolving the prefix |
| using the given namespace context and prefix resolver.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, org.w3c.dom.Element, org.apache.xml.utils.PrefixResolver, boolean)">QName</A></B>(java.lang.String qname, |
| <A HREF="../../../../org/w3c/dom/Element.html">Element</A> namespaceContext, |
| <A HREF="../../../../org/apache/xml/utils/PrefixResolver.html">PrefixResolver</A> resolver, |
| boolean validate)</CODE>
|
|
|
| <BR>
|
| Construct a QName from a string, resolving the prefix |
| using the given namespace context and prefix resolver.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, org.apache.xml.utils.PrefixResolver)">QName</A></B>(java.lang.String qname, |
| <A HREF="../../../../org/apache/xml/utils/PrefixResolver.html">PrefixResolver</A> resolver)</CODE>
|
|
|
| <BR>
|
| Construct a QName from a string, resolving the prefix |
| using the given namespace stack.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, org.apache.xml.utils.PrefixResolver, boolean)">QName</A></B>(java.lang.String qname, |
| <A HREF="../../../../org/apache/xml/utils/PrefixResolver.html">PrefixResolver</A> resolver, |
| boolean validate)</CODE>
|
|
|
| <BR>
|
| Construct a QName from a string, resolving the prefix |
| using the given namespace stack.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, java.util.Stack)">QName</A></B>(java.lang.String qname, |
| java.util.Stack namespaces)</CODE>
|
|
|
| <BR>
|
| Construct a QName from a string, resolving the prefix |
| using the given namespace stack.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, java.util.Stack, boolean)">QName</A></B>(java.lang.String qname, |
| java.util.Stack namespaces, |
| boolean validate)</CODE>
|
|
|
| <BR>
|
| Construct a QName from a string, resolving the prefix |
| using the given namespace stack.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, java.lang.String)">QName</A></B>(java.lang.String namespaceURI, |
| java.lang.String localName)</CODE>
|
|
|
| <BR>
|
| Constructs a new QName with the specified namespace URI and |
| local name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, java.lang.String, boolean)">QName</A></B>(java.lang.String namespaceURI, |
| java.lang.String localName, |
| boolean validate)</CODE>
|
|
|
| <BR>
|
| Constructs a new QName with the specified namespace URI and |
| local name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, java.lang.String, java.lang.String)">QName</A></B>(java.lang.String namespaceURI, |
| java.lang.String prefix, |
| java.lang.String localName)</CODE>
|
|
|
| <BR>
|
| Constructs a new QName with the specified namespace URI, prefix |
| and local name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#QName(java.lang.String, java.lang.String, java.lang.String, boolean)">QName</A></B>(java.lang.String namespaceURI, |
| java.lang.String prefix, |
| java.lang.String localName, |
| boolean validate)</CODE>
|
|
|
| <BR>
|
| Constructs a new QName with the specified namespace URI, prefix |
| and local name.</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> boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object object)</CODE>
|
|
|
| <BR>
|
| Override equals and agree that we're equal if |
| the passed object is a QName and it matches |
| the name of the arg.</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/apache/xml/utils/QName.html#equals(java.lang.String, java.lang.String)">equals</A></B>(java.lang.String ns, |
| java.lang.String localPart)</CODE>
|
|
|
| <BR>
|
| Override equals and agree that we're equal if |
| the passed object is a string and it matches |
| the name of the arg.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getLocalName()">getLocalName</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns the local part of the qualified name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getLocalPart()">getLocalPart</A></B>()</CODE>
|
|
|
| <BR>
|
| Get the local part of the qualified name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getLocalPart(java.lang.String)">getLocalPart</A></B>(java.lang.String qname)</CODE>
|
|
|
| <BR>
|
| Returns the local name of the given node.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getNamespace()">getNamespace</A></B>()</CODE>
|
|
|
| <BR>
|
| Get the namespace of the qualified name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getNamespaceURI()">getNamespaceURI</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns the namespace URI.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getPrefix()">getPrefix</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns the namespace prefix.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getPrefixFromXMLNSDecl(java.lang.String)">getPrefixFromXMLNSDecl</A></B>(java.lang.String attRawName)</CODE>
|
|
|
| <BR>
|
| This function tells if a raw attribute name is a |
| xmlns attribute.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getPrefixPart(java.lang.String)">getPrefixPart</A></B>(java.lang.String qname)</CODE>
|
|
|
| <BR>
|
| Returns the local name of the given node.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static <A HREF="../../../../org/apache/xml/utils/QName.html">QName</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#getQNameFromString(java.lang.String)">getQNameFromString</A></B>(java.lang.String name)</CODE>
|
|
|
| <BR>
|
| Given a string, create and return a QName object</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#hashCode()">hashCode</A></B>()</CODE>
|
|
|
| <BR>
|
| Return the cached hashcode of the qualified name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>static boolean</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#isXMLNSDecl(java.lang.String)">isXMLNSDecl</A></B>(java.lang.String attRawName)</CODE>
|
|
|
| <BR>
|
| This function tells if a raw attribute name is a |
| xmlns attribute.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#toNamespacedString()">toNamespacedString</A></B>()</CODE>
|
|
|
| <BR>
|
| Return the string representation of the qualified name using the |
| the '{ns}foo' notation.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/QName.html#toString()">toString</A></B>()</CODE>
|
|
|
| <BR>
|
| Return the string representation of the qualified name, using the |
| prefix if available, or the '{ns}foo' notation if not.</TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE>getClass,
|
| notify,
|
| notifyAll,
|
| wait,
|
| wait,
|
| wait</CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Field Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="S_XMLNAMESPACEURI"><!-- --></A><H3>
|
| S_XMLNAMESPACEURI</H3>
|
| <PRE>
|
| public static final java.lang.String <B>S_XMLNAMESPACEURI</B></PRE>
|
| <DL>
|
| <DD>The XML namespace.</DL>
|
|
|
| <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Constructor Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="QName()"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>()</PRE>
|
| <DL>
|
| <DD>Constructs an empty QName. |
| 20001019: Try making this public, to support Serializable? -- JKESS</DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String namespaceURI, |
| java.lang.String localName)</PRE>
|
| <DL>
|
| <DD>Constructs a new QName with the specified namespace URI and |
| local name.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI if known, or null<DD><CODE>localName</CODE> - The local name</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String namespaceURI, |
| java.lang.String localName, |
| boolean validate)</PRE>
|
| <DL>
|
| <DD>Constructs a new QName with the specified namespace URI and |
| local name.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI if known, or null<DD><CODE>localName</CODE> - The local name<DD><CODE>validate</CODE> - If true the new QName will be validated and an IllegalArgumentException will |
| be thrown if it is invalid.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String namespaceURI, |
| java.lang.String prefix, |
| java.lang.String localName)</PRE>
|
| <DL>
|
| <DD>Constructs a new QName with the specified namespace URI, prefix |
| and local name.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI if known, or null<DD><CODE>prefix</CODE> - The namespace prefix is known, or null<DD><CODE>localName</CODE> - The local name</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String namespaceURI, |
| java.lang.String prefix, |
| java.lang.String localName, |
| boolean validate)</PRE>
|
| <DL>
|
| <DD>Constructs a new QName with the specified namespace URI, prefix |
| and local name.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI if known, or null<DD><CODE>prefix</CODE> - The namespace prefix is known, or null<DD><CODE>localName</CODE> - The local name<DD><CODE>validate</CODE> - If true the new QName will be validated and an IllegalArgumentException will |
| be thrown if it is invalid.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String localName)</PRE>
|
| <DL>
|
| <DD>Construct a QName from a string, without namespace resolution. Good |
| for a few odd cases.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>localName</CODE> - Local part of qualified name</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, boolean)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String localName, |
| boolean validate)</PRE>
|
| <DL>
|
| <DD>Construct a QName from a string, without namespace resolution. Good |
| for a few odd cases.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>localName</CODE> - Local part of qualified name<DD><CODE>validate</CODE> - If true the new QName will be validated and an IllegalArgumentException will |
| be thrown if it is invalid.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, java.util.Stack)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String qname, |
| java.util.Stack namespaces)</PRE>
|
| <DL>
|
| <DD>Construct a QName from a string, resolving the prefix |
| using the given namespace stack. The default namespace is |
| not resolved.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qname</CODE> - Qualified name to resolve<DD><CODE>namespaces</CODE> - Namespace stack to use to resolve namespace</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, java.util.Stack, boolean)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String qname, |
| java.util.Stack namespaces, |
| boolean validate)</PRE>
|
| <DL>
|
| <DD>Construct a QName from a string, resolving the prefix |
| using the given namespace stack. The default namespace is |
| not resolved.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qname</CODE> - Qualified name to resolve<DD><CODE>namespaces</CODE> - Namespace stack to use to resolve namespace<DD><CODE>validate</CODE> - If true the new QName will be validated and an IllegalArgumentException will |
| be thrown if it is invalid.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, org.w3c.dom.Element, org.apache.xml.utils.PrefixResolver)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String qname, |
| <A HREF="../../../../org/w3c/dom/Element.html">Element</A> namespaceContext, |
| <A HREF="../../../../org/apache/xml/utils/PrefixResolver.html">PrefixResolver</A> resolver)</PRE>
|
| <DL>
|
| <DD>Construct a QName from a string, resolving the prefix |
| using the given namespace context and prefix resolver. |
| The default namespace is not resolved.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qname</CODE> - Qualified name to resolve<DD><CODE>namespaceContext</CODE> - Namespace Context to use<DD><CODE>resolver</CODE> - Prefix resolver for this context</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, org.w3c.dom.Element, org.apache.xml.utils.PrefixResolver, boolean)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String qname, |
| <A HREF="../../../../org/w3c/dom/Element.html">Element</A> namespaceContext, |
| <A HREF="../../../../org/apache/xml/utils/PrefixResolver.html">PrefixResolver</A> resolver, |
| boolean validate)</PRE>
|
| <DL>
|
| <DD>Construct a QName from a string, resolving the prefix |
| using the given namespace context and prefix resolver. |
| The default namespace is not resolved.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qname</CODE> - Qualified name to resolve<DD><CODE>namespaceContext</CODE> - Namespace Context to use<DD><CODE>resolver</CODE> - Prefix resolver for this context<DD><CODE>validate</CODE> - If true the new QName will be validated and an IllegalArgumentException will |
| be thrown if it is invalid.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, org.apache.xml.utils.PrefixResolver)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String qname, |
| <A HREF="../../../../org/apache/xml/utils/PrefixResolver.html">PrefixResolver</A> resolver)</PRE>
|
| <DL>
|
| <DD>Construct a QName from a string, resolving the prefix |
| using the given namespace stack. The default namespace is |
| not resolved.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qname</CODE> - Qualified name to resolve<DD><CODE>resolver</CODE> - Prefix resolver for this context</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="QName(java.lang.String, org.apache.xml.utils.PrefixResolver, boolean)"><!-- --></A><H3>
|
| QName</H3>
|
| <PRE>
|
| public <B>QName</B>(java.lang.String qname, |
| <A HREF="../../../../org/apache/xml/utils/PrefixResolver.html">PrefixResolver</A> resolver, |
| boolean validate)</PRE>
|
| <DL>
|
| <DD>Construct a QName from a string, resolving the prefix |
| using the given namespace stack. The default namespace is |
| not resolved.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qname</CODE> - Qualified name to resolve<DD><CODE>resolver</CODE> - Prefix resolver for this context<DD><CODE>validate</CODE> - If true the new QName will be validated and an IllegalArgumentException will |
| be thrown if it is invalid.</DL>
|
| </DD>
|
| </DL>
|
|
|
| <!-- ============ 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="getNamespaceURI()"><!-- --></A><H3>
|
| getNamespaceURI</H3>
|
| <PRE>
|
| public java.lang.String <B>getNamespaceURI</B>()</PRE>
|
| <DL>
|
| <DD>Returns the namespace URI. Returns null if the namespace URI |
| is not known.<DD><DL>
|
| <DT><B>Returns:</B><DD>The namespace URI, or null</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getPrefix()"><!-- --></A><H3>
|
| getPrefix</H3>
|
| <PRE>
|
| public java.lang.String <B>getPrefix</B>()</PRE>
|
| <DL>
|
| <DD>Returns the namespace prefix. Returns null if the namespace |
| prefix is not known.<DD><DL>
|
| <DT><B>Returns:</B><DD>The namespace prefix, or null</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getLocalName()"><!-- --></A><H3>
|
| getLocalName</H3>
|
| <PRE>
|
| public java.lang.String <B>getLocalName</B>()</PRE>
|
| <DL>
|
| <DD>Returns the local part of the qualified name.<DD><DL>
|
| <DT><B>Returns:</B><DD>The local part of the qualified name</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="toString()"><!-- --></A><H3>
|
| toString</H3>
|
| <PRE>
|
| public java.lang.String <B>toString</B>()</PRE>
|
| <DL>
|
| <DD>Return the string representation of the qualified name, using the |
| prefix if available, or the '{ns}foo' notation if not. Performs |
| string concatenation, so beware of performance issues.<DD><DL>
|
| <DT><B>Returns:</B><DD>the string representation of the namespace<DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="toNamespacedString()"><!-- --></A><H3>
|
| toNamespacedString</H3>
|
| <PRE>
|
| public java.lang.String <B>toNamespacedString</B>()</PRE>
|
| <DL>
|
| <DD>Return the string representation of the qualified name using the |
| the '{ns}foo' notation. Performs |
| string concatenation, so beware of performance issues.<DD><DL>
|
| <DT><B>Returns:</B><DD>the string representation of the namespace</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getNamespace()"><!-- --></A><H3>
|
| getNamespace</H3>
|
| <PRE>
|
| public java.lang.String <B>getNamespace</B>()</PRE>
|
| <DL>
|
| <DD>Get the namespace of the qualified name.<DD><DL>
|
| <DT><B>Returns:</B><DD>the namespace URI of the qualified name</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getLocalPart()"><!-- --></A><H3>
|
| getLocalPart</H3>
|
| <PRE>
|
| public java.lang.String <B>getLocalPart</B>()</PRE>
|
| <DL>
|
| <DD>Get the local part of the qualified name.<DD><DL>
|
| <DT><B>Returns:</B><DD>the local part of the qualified name</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="hashCode()"><!-- --></A><H3>
|
| hashCode</H3>
|
| <PRE>
|
| public int <B>hashCode</B>()</PRE>
|
| <DL>
|
| <DD>Return the cached hashcode of the qualified name.<DD><DL>
|
| <DT><B>Returns:</B><DD>the cached hashcode of the qualified name<DT><B>Overrides:</B><DD>hashCode in class java.lang.Object</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="equals(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| equals</H3>
|
| <PRE>
|
| public boolean <B>equals</B>(java.lang.String ns, |
| java.lang.String localPart)</PRE>
|
| <DL>
|
| <DD>Override equals and agree that we're equal if |
| the passed object is a string and it matches |
| the name of the arg.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>ns</CODE> - Namespace URI to compare to<DD><CODE>localPart</CODE> - Local part of qualified name to compare to<DT><B>Returns:</B><DD>True if the local name and uri match</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="equals(java.lang.Object)"><!-- --></A><H3>
|
| equals</H3>
|
| <PRE>
|
| public boolean <B>equals</B>(java.lang.Object object)</PRE>
|
| <DL>
|
| <DD>Override equals and agree that we're equal if |
| the passed object is a QName and it matches |
| the name of the arg.<DD><DL>
|
| <DT><B>Returns:</B><DD>True if the qualified names are equal<DT><B>Overrides:</B><DD>equals in class java.lang.Object</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getQNameFromString(java.lang.String)"><!-- --></A><H3>
|
| getQNameFromString</H3>
|
| <PRE>
|
| public static <A HREF="../../../../org/apache/xml/utils/QName.html">QName</A> <B>getQNameFromString</B>(java.lang.String name)</PRE>
|
| <DL>
|
| <DD>Given a string, create and return a QName object<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - String to use to create QName<DT><B>Returns:</B><DD>a QName object</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isXMLNSDecl(java.lang.String)"><!-- --></A><H3>
|
| isXMLNSDecl</H3>
|
| <PRE>
|
| public static boolean <B>isXMLNSDecl</B>(java.lang.String attRawName)</PRE>
|
| <DL>
|
| <DD>This function tells if a raw attribute name is a |
| xmlns attribute.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>attRawName</CODE> - Raw name of attribute<DT><B>Returns:</B><DD>True if the attribute starts with or is equal to xmlns</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getPrefixFromXMLNSDecl(java.lang.String)"><!-- --></A><H3>
|
| getPrefixFromXMLNSDecl</H3>
|
| <PRE>
|
| public static java.lang.String <B>getPrefixFromXMLNSDecl</B>(java.lang.String attRawName)</PRE>
|
| <DL>
|
| <DD>This function tells if a raw attribute name is a |
| xmlns attribute.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>attRawName</CODE> - Raw name of attribute<DT><B>Returns:</B><DD>Prefix of attribute</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getLocalPart(java.lang.String)"><!-- --></A><H3>
|
| getLocalPart</H3>
|
| <PRE>
|
| public static java.lang.String <B>getLocalPart</B>(java.lang.String qname)</PRE>
|
| <DL>
|
| <DD>Returns the local name of the given node.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qname</CODE> - Input name<DT><B>Returns:</B><DD>Local part of the name if prefixed, or the given name if not</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getPrefixPart(java.lang.String)"><!-- --></A><H3>
|
| getPrefixPart</H3>
|
| <PRE>
|
| public static java.lang.String <B>getPrefixPart</B>(java.lang.String qname)</PRE>
|
| <DL>
|
| <DD>Returns the local name of the given node.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>qname</CODE> - Input name<DT><B>Returns:</B><DD>Prefix of name or empty string if none there</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/QName.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">
|
| <A HREF="../../../../org/apache/xml/utils/PrefixResolverDefault.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/apache/xml/utils/SAXSourceLocator.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="QName.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|