KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > xml > namespace > QName

javax.xml.namespace
Class QName

java.lang.Object
  extended by javax.xml.namespace.QName
All Implemented Interfaces:
Serializable
See Also:
Top Examples, Source Code, XMLConstants.DEFAULT_NS_PREFIX, XMLConstants.NULL_NS_URI, QName.hashCode(), QName.equals(Object), XML input source

public final boolean equals(Object objectToTest)
See Also:
Hashtable, Object.hashCode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getLocalPart()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getNamespaceURI()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getPrefix()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int hashCode()
See Also:
Hashtable, Object.equals(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QName(String localPart)
See Also:
QName(String namespaceURI, String localPart, String prefix), QName(String namespaceURI, String localPart), XMLConstants.DEFAULT_NS_PREFIX, XMLConstants.NULL_NS_URI
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1760]C oncept of Qualified Names
By Sandeep Seshan on 2006/05/26 07:29:48  Rate
The QName class encapsulates the concept of "Qualified Names" in an XML NameSpace. 
 A Qualified Name looks like this :- 
  
  
 prefix : localpart 
  
  
 E.g.: 
  
  
 xmlns:test 
  
  
 The prefix makes the name of an XML Element or an XML Attribute as "Qualified" -  
 the prefix itself is just a " pointer " to the name of the NameSpace, which is a  
 URI  (  all the Geeky stuff simply translates to " declare the prefix in the beginning 
 of the XXML Document and let it point to some URI "  ) . 
  
  
 E.g: 
  
  
  < test:A 
      xmlns:test = "http://someur1.com" 
  >  
     < test:B >  200  < /test:B >  
  < /test:A >  
       
 It's easly to see that the URI may contain characters that may not be valid in an XML Document. 
 Hence, you may use a prefix.


public QName(String namespaceURI,
             String localPart)
See Also:
QName(String namespaceURI, String localPart, String prefix), XMLConstants.DEFAULT_NS_PREFIX, XMLConstants.NULL_NS_URI
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QName(String namespaceURI,
             String localPart,
             String prefix)
See Also:
XMLConstants.DEFAULT_NS_PREFIX, XMLConstants.NULL_NS_URI
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object, Transformer.setParameter(String name, Object value)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static QName valueOf(String qNameAsString)
See Also:
QName.toString(), XMLConstants.DEFAULT_NS_PREFIX, Transformer.setParameter(String name, Object value)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags