Java Doc for ExpandedNameTable.java in  » XML » xalan » org » apache » xml » dtm » ref » 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.dtm.ref 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xml.dtm.ref.ExpandedNameTable

ExpandedNameTable
public class ExpandedNameTable (Code)
This is a default implementation of a table that manages mappings from expanded names to expandedNameIDs. %OPT% The performance of the getExpandedTypeID() method is very important to DTM building. To get the best performance out of this class, we implement a simple hash algorithm directly into this class, instead of using the inefficient java.util.Hashtable. The code for the get and put operations are combined in getExpandedTypeID() method to share the same hash calculation code. We only need to implement the rehash() interface which is used to expand the hash table.


Field Summary
final public static  intATTRIBUTE
    
final public static  intCDATA_SECTION
    
final public static  intCOMMENT
    
final public static  intDOCUMENT
    
final public static  intDOCUMENT_FRAGMENT
    
final public static  intDOCUMENT_TYPE
    
final public static  intELEMENT
    
final public static  intENTITY
    
final public static  intENTITY_REFERENCE
    
final public static  intNAMESPACE
    
final public static  intNOTATION
    
final public static  intPROCESSING_INSTRUCTION
    
final public static  intTEXT
    
 ExtendedTypehashET
     Workspace for lookup.

Constructor Summary
public  ExpandedNameTable()
     Create an expanded name table.

Method Summary
public  intgetExpandedTypeID(String namespace, String localName, int type)
     Given an expanded name represented by namespace, local name and node type, return an ID.
public  intgetExpandedTypeID(String namespace, String localName, int type, boolean searchOnly)
     Given an expanded name represented by namespace, local name and node type, return an ID.
public  intgetExpandedTypeID(int type)
     Given a type, return an expanded name ID.Any additional nodes that are created that have this expanded name will use this ID.
public  ExtendedType[]getExtendedTypes()
    
public  StringgetLocalName(int ExpandedNameID)
     Given an expanded-name ID, return the local name part.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name.
final public  intgetLocalNameID(int ExpandedNameID)
     Given an expanded-name ID, return the local name ID.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name.
public  StringgetNamespace(int ExpandedNameID)
     Given an expanded-name ID, return the namespace URI part.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name.
final public  intgetNamespaceID(int ExpandedNameID)
     Given an expanded-name ID, return the namespace URI ID.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name.
public  intgetSize()
    
final public  shortgetType(int ExpandedNameID)
     Given an expanded-name ID, return the local name ID.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name.

Field Detail
ATTRIBUTE
final public static int ATTRIBUTE(Code)



CDATA_SECTION
final public static int CDATA_SECTION(Code)



COMMENT
final public static int COMMENT(Code)



DOCUMENT
final public static int DOCUMENT(Code)



DOCUMENT_FRAGMENT
final public static int DOCUMENT_FRAGMENT(Code)



DOCUMENT_TYPE
final public static int DOCUMENT_TYPE(Code)



ELEMENT
final public static int ELEMENT(Code)



ENTITY
final public static int ENTITY(Code)



ENTITY_REFERENCE
final public static int ENTITY_REFERENCE(Code)



NAMESPACE
final public static int NAMESPACE(Code)



NOTATION
final public static int NOTATION(Code)



PROCESSING_INSTRUCTION
final public static int PROCESSING_INSTRUCTION(Code)



TEXT
final public static int TEXT(Code)



hashET
ExtendedType hashET(Code)
Workspace for lookup. NOT THREAD SAFE!




Constructor Detail
ExpandedNameTable
public ExpandedNameTable()(Code)
Create an expanded name table.




Method Detail
getExpandedTypeID
public int getExpandedTypeID(String namespace, String localName, int type)(Code)
Given an expanded name represented by namespace, local name and node type, return an ID. If the expanded-name does not exist in the internal tables, the entry will be created, and the ID will be returned. Any additional nodes that are created that have this expanded name will use this ID.
Parameters:
  namespace - The namespace
Parameters:
  localName - The local name
Parameters:
  type - The node type the expanded-name id of the node.



getExpandedTypeID
public int getExpandedTypeID(String namespace, String localName, int type, boolean searchOnly)(Code)
Given an expanded name represented by namespace, local name and node type, return an ID. If the expanded-name does not exist in the internal tables, the entry will be created, and the ID will be returned. Any additional nodes that are created that have this expanded name will use this ID.

If searchOnly is true, we will return -1 if the name is not found in the table, otherwise the name is added to the table and the expanded name id of the new entry is returned.
Parameters:
  namespace - The namespace
Parameters:
  localName - The local name
Parameters:
  type - The node type
Parameters:
  searchOnly - If it is true, we will only search for the expanded name.-1 is return is the name is not found. the expanded-name id of the node.




getExpandedTypeID
public int getExpandedTypeID(int type)(Code)
Given a type, return an expanded name ID.Any additional nodes that are created that have this expanded name will use this ID. the expanded-name id of the node.



getExtendedTypes
public ExtendedType[] getExtendedTypes()(Code)
Return the array of extended types The array of extended types



getLocalName
public String getLocalName(int ExpandedNameID)(Code)
Given an expanded-name ID, return the local name part.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name. String Local name of this node, or null if the node has no name.



getLocalNameID
final public int getLocalNameID(int ExpandedNameID)(Code)
Given an expanded-name ID, return the local name ID.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name. The id of this local name.



getNamespace
public String getNamespace(int ExpandedNameID)(Code)
Given an expanded-name ID, return the namespace URI part.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name. String URI value of this node's namespace, or null if nonamespace was resolved.



getNamespaceID
final public int getNamespaceID(int ExpandedNameID)(Code)
Given an expanded-name ID, return the namespace URI ID.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name. The id of this namespace.



getSize
public int getSize()(Code)
Return the size of the ExpandedNameTable The size of the ExpandedNameTable



getType
final public short getType(int ExpandedNameID)(Code)
Given an expanded-name ID, return the local name ID.
Parameters:
  ExpandedNameID - an ID that represents an expanded-name. The id of this local name.



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.