A QName represents an XML "qualified name," such as an XML element name that has both a local name and a namespace. getLocalPart( ) returns the unqualified local part of the name. getNamespaceURI( ) returns the canonical URI that formally identifies the namespace. getPrefix( ) returns the locally declared namespace prefix. Note that a QName does not always have a prefix and that the prefix, if it exists, is ignored for the purposes of the equals( ) , hashCode( ) , and toString( ) methods . The static valueOf( ) method parses a QName from a string in the format of toString( ) : { namespaceURI } localPart javax.xml.namespace.QNamepublic class QName implements Serializable { // Public Constructors public QName (String localPart ); public QName (String namespaceURI , String localPart ); public QName (String namespaceURI , String localPart , String prefix ); // Public Class Methods public static QName valueOf (String qNameAsString ); // Public Instance Methods public String getLocalPart ( ); public String getNamespaceURI ( ); public String getPrefix ( ); // Public Methods Overriding Object public final boolean equals (Object objectToTest ); public final int hashCode ( ); public String toString ( ); } Passed Tojavax.xml.xpath.XPath.evaluate( ) , javax.xml.xpath.XPathExpression.evaluate( ) , javax.xml.xpath.XPathFunctionResolver.resolveFunction( ) , javax.xml.xpath.XPathVariableResolver.resolveVariable( ) Returned Byjavax.xml.datatype.Duration.getXMLSchemaType( ) , javax.xml.datatype.XMLGregorianCalendar.getXMLSchemaType( ) Type OfToo many fields to list. |