Java Doc for SimpleNamespaceContext.java in  » XML » stax-utils » javanet » staxutils » 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 » stax utils » javanet.staxutils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javanet.staxutils.SimpleNamespaceContext

All known Subclasses:   javanet.staxutils.helpers.ElementContext,
SimpleNamespaceContext
public class SimpleNamespaceContext implements ExtendedNamespaceContext,StaticNamespaceContext(Code)
Simple NamespaceContext implementation backed by a HashMap.
author:
   Christian Niles
version:
   $Revision: 1.7 $


Field Summary
protected  Mapnamespaces
     map containing bound namespaces, keyed by their prefix.
protected  NamespaceContextparent
    

Constructor Summary
public  SimpleNamespaceContext()
     Constructs a SimpleNamespaceContext with no parent context or namespace declarations.
public  SimpleNamespaceContext(Map namespaces)
     Constructs a SimpleNamespaceContext with no parent context that contains the specified prefixes.
public  SimpleNamespaceContext(NamespaceContext parent)
     Constructs an empty SimpleNamespaceContext with the given parent.
public  SimpleNamespaceContext(NamespaceContext parent, Map namespaces)
     Constructs an empty SimpleNamespaceContext with the given parent.

Method Summary
public  intgetDeclaredPrefixCount()
     Returns the number of namespace prefixes declared in this context.
public  IteratorgetDeclaredPrefixes()
    
public  StringgetNamespaceURI(String prefix)
    
public  NamespaceContextgetParent()
     Returns a reference to the parent of this context.
public  StringgetPrefix(String nsURI)
    
public  IteratorgetPrefixes()
    
public  IteratorgetPrefixes(String nsURI)
    
public  booleanisPrefixDeclared(String prefix)
     Determines if the specified prefix is declared within this context, irrespective of any ancestor contexts.
Parameters:
  prefix - The prefix to check.
public  booleanisRootContext()
     Determines if this is a root context.
public  StringsetDefaultNamespace(String nsURI)
     Sets the default namespace in this context.
Parameters:
  nsURI - The default namespace URI.
public  voidsetParent(NamespaceContext parent)
     Sets the parent context used to inherit namespace bindings.
public  StringsetPrefix(String prefix, String nsURI)
     Declares a namespace binding in this context.
Parameters:
  prefix - The namespace prefix.
Parameters:
  nsURI - The namespace URI.

Field Detail
namespaces
protected Map namespaces(Code)
map containing bound namespaces, keyed by their prefix. A LinkedHashMap is used to ensure that SimpleNamespaceContext.getPrefix(String) always returns the same prefix, unless that prefix is removed.



parent
protected NamespaceContext parent(Code)
The parent context, which may be null




Constructor Detail
SimpleNamespaceContext
public SimpleNamespaceContext()(Code)
Constructs a SimpleNamespaceContext with no parent context or namespace declarations.



SimpleNamespaceContext
public SimpleNamespaceContext(Map namespaces)(Code)
Constructs a SimpleNamespaceContext with no parent context that contains the specified prefixes.
Parameters:
  namespaces - A Map of namespace URIs, keyed by their prefixes.



SimpleNamespaceContext
public SimpleNamespaceContext(NamespaceContext parent)(Code)
Constructs an empty SimpleNamespaceContext with the given parent. The parent context will be forwarded any requests for namespaces not declared in this context.
Parameters:
  parent - The parent context.



SimpleNamespaceContext
public SimpleNamespaceContext(NamespaceContext parent, Map namespaces)(Code)
Constructs an empty SimpleNamespaceContext with the given parent. The parent context will be forwarded any requests for namespaces not declared in this context.
Parameters:
  parent - The parent context.
Parameters:
  namespaces - A Map of namespace URIs, keyed by their prefixes.




Method Detail
getDeclaredPrefixCount
public int getDeclaredPrefixCount()(Code)
Returns the number of namespace prefixes declared in this context. The number of namespace prefixes declared in this context.



getDeclaredPrefixes
public Iterator getDeclaredPrefixes()(Code)



getNamespaceURI
public String getNamespaceURI(String prefix)(Code)



getParent
public NamespaceContext getParent()(Code)
Returns a reference to the parent of this context. The parent context, or null if this is a rootcontext.



getPrefix
public String getPrefix(String nsURI)(Code)



getPrefixes
public Iterator getPrefixes()(Code)



getPrefixes
public Iterator getPrefixes(String nsURI)(Code)



isPrefixDeclared
public boolean isPrefixDeclared(String prefix)(Code)
Determines if the specified prefix is declared within this context, irrespective of any ancestor contexts.
Parameters:
  prefix - The prefix to check. true if the prefix is declared in this context,false otherwise.



isRootContext
public boolean isRootContext()(Code)
Determines if this is a root context. true if this is a root context, falseotherwise.



setDefaultNamespace
public String setDefaultNamespace(String nsURI)(Code)
Sets the default namespace in this context.
Parameters:
  nsURI - The default namespace URI. The previously declared namespace uri, or null ifthe default prefix wasn't previously declared in this context.



setParent
public void setParent(NamespaceContext parent)(Code)
Sets the parent context used to inherit namespace bindings.
Parameters:
  parent - The new parent context.



setPrefix
public String setPrefix(String prefix, String nsURI)(Code)
Declares a namespace binding in this context.
Parameters:
  prefix - The namespace prefix.
Parameters:
  nsURI - The namespace URI. The previously declared namespace uri, or null ifthe prefix wasn't previously declared in this context.



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.