Java Doc for Namespaces.java in  » Database-ORM » castor » org » exolab » castor » xml » 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 » Database ORM » castor » org.exolab.castor.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.exolab.castor.xml.Namespaces

Namespaces
final public class Namespaces (Code)
A class for handling Namespace declaration and scoping
author:
   Keith Visco
version:
   $Revision: 5951 $ $Date: 2004-09-09 23:04:08 -0600 (Thu, 09 Sep 2004) $

Inner Class :class Namespace
Inner Class :static class NamespaceEnumerator implements java.util.Enumeration

Field Summary
final public static  StringXML_NAMESPACE
    
final public static  StringXML_NAMESPACE_PREFIX
    

Constructor Summary
public  Namespaces()
    
public  Namespaces(Namespaces parent)
    

Method Summary
public synchronized  voidaddNamespace(String prefix, String uri)
    
public  NamespacescreateNamespaces()
    
public  voiddeclareAsAttributes(AttributeListImpl atts, boolean localOnly)
     Declare the namespaces of this stack in as attributes.
public  EnumerationgetLocalNamespacePrefixes()
    
public  EnumerationgetLocalNamespaces()
     Returns an Enumeration of local namespace URIs for this Namespaces.
public  StringgetNamespacePrefix(String nsURI)
     Returns the Namespace prefix associated with the given URI. If multiple namespace prefixes have been declared, then the first one found is returned.
public  String[]getNamespacePrefixes(String nsURI)
     Returns all namespace prefixes associated with the given URI, including those from parent scopes.
public  String[]getNamespacePrefixes(String nsURI, boolean local)
     Returns the Namespace prefixes associated with the given URI.
Parameters:
  nsURI - the namespace URI to lookup
Parameters:
  local - a boolean that when true indicates only the localscope is searched.
public  StringgetNamespaceURI(String prefix)
    
public  StringgetNonDefaultNamespacePrefix(String nsURI)
     Returns the Namespace prefix associated with the given URI. Or null if no prefix has been declared.
public  NamespacesgetParent()
     Returns the parent Namespaces for this Namespaces instance.
public synchronized  booleanremoveNamespace(String prefix)
     Removes the namespace declaration for the given prefix.
public  voidsendEndEvents(ContentHandler handler)
    
public  voidsendStartEvents(ContentHandler handler)
    
public  voidsetParent(Namespaces namespaces)
     Sets the parent Namespaces for this Namespaces instance.

Field Detail
XML_NAMESPACE
final public static String XML_NAMESPACE(Code)
The reserved XML 1.0 Namespace URI



XML_NAMESPACE_PREFIX
final public static String XML_NAMESPACE_PREFIX(Code)
The reserved XML Namespace Prefix




Constructor Detail
Namespaces
public Namespaces()(Code)
Creates a new Namespaces instance



Namespaces
public Namespaces(Namespaces parent)(Code)
Creates a new Namespaces instance




Method Detail
addNamespace
public synchronized void addNamespace(String prefix, String uri)(Code)
Adds the given namespace declaration to this Namespaces
Parameters:
  prefix - the namespace prefix
Parameters:
  uri - the namespace URI to be associated with the given prefix



createNamespaces
public Namespaces createNamespaces()(Code)
Creates a new Namespaces instance with this Namespaces as the parent



declareAsAttributes
public void declareAsAttributes(AttributeListImpl atts, boolean localOnly)(Code)
Declare the namespaces of this stack in as attributes.
Parameters:
  atts - the Attribute List to fill in.



getLocalNamespacePrefixes
public Enumeration getLocalNamespacePrefixes()(Code)
Returns all namespace prefixes declared locally an Enumeration of locally declared namespace prefixes



getLocalNamespaces
public Enumeration getLocalNamespaces()(Code)
Returns an Enumeration of local namespace URIs for this Namespaces. an Enumeration of local namespace URIs.



getNamespacePrefix
public String getNamespacePrefix(String nsURI)(Code)
Returns the Namespace prefix associated with the given URI. If multiple namespace prefixes have been declared, then the first one found is returned. To obtain all prefixes see #getNamespacePrefixes.
Parameters:
  nsURI - the namespace URI to lookup the namespace prefix associated with the given URI



getNamespacePrefixes
public String[] getNamespacePrefixes(String nsURI)(Code)
Returns all namespace prefixes associated with the given URI, including those from parent scopes.
Parameters:
  nsURI - the namespace URI to lookup the namespace prefixes associated with the given URI



getNamespacePrefixes
public String[] getNamespacePrefixes(String nsURI, boolean local)(Code)
Returns the Namespace prefixes associated with the given URI.
Parameters:
  nsURI - the namespace URI to lookup
Parameters:
  local - a boolean that when true indicates only the localscope is searched. the namespace prefixes associated with the given URI



getNamespaceURI
public String getNamespaceURI(String prefix)(Code)
Returns the Namespace URI associated with the given prefix
Parameters:
  prefix - the namespace prefix to lookup the namespace URI associated with the given prefix



getNonDefaultNamespacePrefix
public String getNonDefaultNamespacePrefix(String nsURI)(Code)
Returns the Namespace prefix associated with the given URI. Or null if no prefix has been declared. This method will ignore the default namespace. This is useful when dealing with attributes that do not use the default namespace.
Parameters:
  nsURI - the namespace URI to lookup the namespace prefix associated with the given URI



getParent
public Namespaces getParent()(Code)
Returns the parent Namespaces for this Namespaces instance. the parent Namespaces for this Namespaces instance.



removeNamespace
public synchronized boolean removeNamespace(String prefix)(Code)
Removes the namespace declaration for the given prefix. This is a local action only, the namespace declaration will not be removed from any parent Namespaces object.
Parameters:
  prefix - the namespace prefix to remove the binding of true if the namespace declaration was removed, otherwise false.



sendEndEvents
public void sendEndEvents(ContentHandler handler) throws SAXException(Code)
Calls the given ContentHandler's endPrefixMapping method for each locally declared namespace
Parameters:
  handler - the ContentHandler



sendStartEvents
public void sendStartEvents(ContentHandler handler) throws SAXException(Code)
Calls the given ContentHandler's startPrefixMapping method for each locally declared namespace
Parameters:
  handler - the ContentHandler



setParent
public void setParent(Namespaces namespaces)(Code)
Sets the parent Namespaces for this Namespaces instance.
Parameters:
  namespaces - the parent Namespaces



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.