Java Doc for QName.java in  » XML » xalan » org » apache » xml » utils » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xalan » org.apache.xml.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xml.utils.QName

QName
public class QName implements java.io.Serializable(Code)
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."


Field Summary
final public static  StringS_XMLNAMESPACEURI
     The XML namespace.
protected  String_localName
     The local name.
protected  String_namespaceURI
     The namespace URI.
protected  String_prefix
     The namespace prefix.
final static  longserialVersionUID
    

Constructor Summary
public  QName()
     Constructs an empty QName.
public  QName(String namespaceURI, String localName)
     Constructs a new QName with the specified namespace URI and local name.
public  QName(String namespaceURI, String localName, boolean validate)
     Constructs a new QName with the specified namespace URI and local name.
public  QName(String namespaceURI, String prefix, String localName)
     Constructs a new QName with the specified namespace URI, prefix and local name.
public  QName(String namespaceURI, String prefix, String localName, boolean validate)
     Constructs a new QName with the specified namespace URI, prefix and local name.
public  QName(String localName)
     Construct a QName from a string, without namespace resolution.
public  QName(String localName, boolean validate)
     Construct a QName from a string, without namespace resolution.
public  QName(String qname, Stack namespaces)
     Construct a QName from a string, resolving the prefix using the given namespace stack.
public  QName(String qname, Stack namespaces, boolean validate)
     Construct a QName from a string, resolving the prefix using the given namespace stack.
public  QName(String qname, Element namespaceContext, PrefixResolver resolver)
     Construct a QName from a string, resolving the prefix using the given namespace context and prefix resolver.
public  QName(String qname, Element namespaceContext, PrefixResolver resolver, boolean validate)
     Construct a QName from a string, resolving the prefix using the given namespace context and prefix resolver.
public  QName(String qname, PrefixResolver resolver)
     Construct a QName from a string, resolving the prefix using the given namespace stack.
public  QName(String qname, PrefixResolver resolver, boolean validate)
     Construct a QName from a string, resolving the prefix using the given namespace stack.

Method Summary
public  booleanequals(String ns, String localPart)
     Override equals and agree that we're equal if the passed object is a string and it matches the name of the arg.
public  booleanequals(Object object)
     Override equals and agree that we're equal if the passed object is a QName and it matches the name of the arg.
public  StringgetLocalName()
     Returns the local part of the qualified name.
public  StringgetLocalPart()
     Get the local part of the qualified name.
public static  StringgetLocalPart(String qname)
     Returns the local name of the given node.
public  StringgetNamespace()
     Get the namespace of the qualified name.
public  StringgetNamespaceURI()
     Returns the namespace URI.
public  StringgetPrefix()
     Returns the namespace prefix.
public static  StringgetPrefixFromXMLNSDecl(String attRawName)
     This function tells if a raw attribute name is a xmlns attribute.
public static  StringgetPrefixPart(String qname)
     Returns the local name of the given node.
public static  QNamegetQNameFromString(String name)
    
public  inthashCode()
     Return the cached hashcode of the qualified name.
public static  booleanisXMLNSDecl(String attRawName)
     This function tells if a raw attribute name is a xmlns attribute.
public  StringtoNamespacedString()
     Return the string representation of the qualified name using the the '{ns}foo' notation.
public  StringtoString()
     Return the string representation of the qualified name, using the prefix if available, or the '{ns}foo' notation if not.

Field Detail
S_XMLNAMESPACEURI
final public static String S_XMLNAMESPACEURI(Code)
The XML namespace.



_localName
protected String _localName(Code)
The local name.



_namespaceURI
protected String _namespaceURI(Code)
The namespace URI.



_prefix
protected String _prefix(Code)
The namespace prefix.



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
QName
public QName()(Code)
Constructs an empty QName. 20001019: Try making this public, to support Serializable? -- JKESS



QName
public QName(String namespaceURI, String localName)(Code)
Constructs a new QName with the specified namespace URI and local name.
Parameters:
  namespaceURI - The namespace URI if known, or null
Parameters:
  localName - The local name



QName
public QName(String namespaceURI, String localName, boolean validate)(Code)
Constructs a new QName with the specified namespace URI and local name.
Parameters:
  namespaceURI - The namespace URI if known, or null
Parameters:
  localName - The local name
Parameters:
  validate - If true the new QName will be validated and an IllegalArgumentException willbe thrown if it is invalid.



QName
public QName(String namespaceURI, String prefix, String localName)(Code)
Constructs a new QName with the specified namespace URI, prefix and local name.
Parameters:
  namespaceURI - The namespace URI if known, or null
Parameters:
  prefix - The namespace prefix is known, or null
Parameters:
  localName - The local name



QName
public QName(String namespaceURI, String prefix, String localName, boolean validate)(Code)
Constructs a new QName with the specified namespace URI, prefix and local name.
Parameters:
  namespaceURI - The namespace URI if known, or null
Parameters:
  prefix - The namespace prefix is known, or null
Parameters:
  localName - The local name
Parameters:
  validate - If true the new QName will be validated and an IllegalArgumentException willbe thrown if it is invalid.



QName
public QName(String localName)(Code)
Construct a QName from a string, without namespace resolution. Good for a few odd cases.
Parameters:
  localName - Local part of qualified name



QName
public QName(String localName, boolean validate)(Code)
Construct a QName from a string, without namespace resolution. Good for a few odd cases.
Parameters:
  localName - Local part of qualified name
Parameters:
  validate - If true the new QName will be validated and an IllegalArgumentException willbe thrown if it is invalid.



QName
public QName(String qname, Stack namespaces)(Code)
Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved.
Parameters:
  qname - Qualified name to resolve
Parameters:
  namespaces - Namespace stack to use to resolve namespace



QName
public QName(String qname, Stack namespaces, boolean validate)(Code)
Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved.
Parameters:
  qname - Qualified name to resolve
Parameters:
  namespaces - Namespace stack to use to resolve namespace
Parameters:
  validate - If true the new QName will be validated and an IllegalArgumentException willbe thrown if it is invalid.



QName
public QName(String qname, Element namespaceContext, PrefixResolver resolver)(Code)
Construct a QName from a string, resolving the prefix using the given namespace context and prefix resolver. The default namespace is not resolved.
Parameters:
  qname - Qualified name to resolve
Parameters:
  namespaceContext - Namespace Context to use
Parameters:
  resolver - Prefix resolver for this context



QName
public QName(String qname, Element namespaceContext, PrefixResolver resolver, boolean validate)(Code)
Construct a QName from a string, resolving the prefix using the given namespace context and prefix resolver. The default namespace is not resolved.
Parameters:
  qname - Qualified name to resolve
Parameters:
  namespaceContext - Namespace Context to use
Parameters:
  resolver - Prefix resolver for this context
Parameters:
  validate - If true the new QName will be validated and an IllegalArgumentException willbe thrown if it is invalid.



QName
public QName(String qname, PrefixResolver resolver)(Code)
Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved.
Parameters:
  qname - Qualified name to resolve
Parameters:
  resolver - Prefix resolver for this context



QName
public QName(String qname, PrefixResolver resolver, boolean validate)(Code)
Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved.
Parameters:
  qname - Qualified name to resolve
Parameters:
  resolver - Prefix resolver for this context
Parameters:
  validate - If true the new QName will be validated and an IllegalArgumentException willbe thrown if it is invalid.




Method Detail
equals
public boolean equals(String ns, String localPart)(Code)
Override equals and agree that we're equal if the passed object is a string and it matches the name of the arg.
Parameters:
  ns - Namespace URI to compare to
Parameters:
  localPart - Local part of qualified name to compare to True if the local name and uri match



equals
public boolean equals(Object object)(Code)
Override equals and agree that we're equal if the passed object is a QName and it matches the name of the arg. True if the qualified names are equal



getLocalName
public String getLocalName()(Code)
Returns the local part of the qualified name. The local part of the qualified name



getLocalPart
public String getLocalPart()(Code)
Get the local part of the qualified name. the local part of the qualified name



getLocalPart
public static String getLocalPart(String qname)(Code)
Returns the local name of the given node.
Parameters:
  qname - Input name Local part of the name if prefixed, or the given name if not



getNamespace
public String getNamespace()(Code)
Get the namespace of the qualified name. the namespace URI of the qualified name



getNamespaceURI
public String getNamespaceURI()(Code)
Returns the namespace URI. Returns null if the namespace URI is not known. The namespace URI, or null



getPrefix
public String getPrefix()(Code)
Returns the namespace prefix. Returns null if the namespace prefix is not known. The namespace prefix, or null



getPrefixFromXMLNSDecl
public static String getPrefixFromXMLNSDecl(String attRawName)(Code)
This function tells if a raw attribute name is a xmlns attribute.
Parameters:
  attRawName - Raw name of attribute Prefix of attribute



getPrefixPart
public static String getPrefixPart(String qname)(Code)
Returns the local name of the given node.
Parameters:
  qname - Input name Prefix of name or empty string if none there



getQNameFromString
public static QName getQNameFromString(String name)(Code)
Given a string, create and return a QName object
Parameters:
  name - String to use to create QName a QName object



hashCode
public int hashCode()(Code)
Return the cached hashcode of the qualified name. the cached hashcode of the qualified name



isXMLNSDecl
public static boolean isXMLNSDecl(String attRawName)(Code)
This function tells if a raw attribute name is a xmlns attribute.
Parameters:
  attRawName - Raw name of attribute True if the attribute starts with or is equal to xmlns



toNamespacedString
public String toNamespacedString()(Code)
Return the string representation of the qualified name using the the '{ns}foo' notation. Performs string concatenation, so beware of performance issues. the string representation of the namespace



toString
public String toString()(Code)
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. the string representation of the namespace



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.