Java Doc for XMLEntityStorage.java in  » 6.0-JDK-Modules » sjsxp » com » sun » xml » stream » 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 » 6.0 JDK Modules » sjsxp » com.sun.xml.stream 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.stream.XMLEntityStorage

XMLEntityStorage
public class XMLEntityStorage (Code)

author:
   K.Venugopal SUN Microsystems
author:
   Neeraj Bajaj SUN Microsystems
author:
   Andy Clark, IBM


Field Summary
final protected static  StringERROR_REPORTER
     Property identifier: error reporter.
final protected static  StringWARN_ON_DUPLICATE_ENTITYDEF
    
protected  Entity.ScannedEntityfCurrentEntity
    
protected  HashtablefEntities
     Entities.
protected  XMLErrorReporterfErrorReporter
     Error reporter.
protected  PropertyManagerfPropertyManager
    
protected  booleanfWarnDuplicateEntityDef
     warn on duplicate Entity declaration.

Constructor Summary
public  XMLEntityStorage(PropertyManager propertyManager)
    
public  XMLEntityStorage(XMLEntityManager entityManager)
    

Method Summary
public  voidaddExternalEntity(String name, String publicId, String literalSystemId, String baseSystemId)
     Adds an external entity declaration.

Note: This method ignores subsequent entity declarations.

Note: The name should be a unique symbol.

public  voidaddInternalEntity(String name, String text)
     Adds an internal entity declaration.

Note: This method ignores subsequent entity declarations.

Note: The name should be a unique symbol.

public  voidaddUnparsedEntity(String name, String publicId, String systemId, String baseSystemId, String notation)
     Adds an unparsed entity declaration.

Note: This method ignores subsequent entity declarations.

Note: The name should be a unique symbol.

public static  StringexpandSystemId(String systemId)
     Expands a system id and returns the system id as a URI, if it can be expanded.
public static  StringexpandSystemId(String systemId, String baseSystemId)
     Expands a system id and returns the system id as a URI, if it can be expanded.
protected static  StringfixURI(String str)
     Fixes a platform dependent filename to standard URI form.
Parameters:
  str - The string to fix.
public  HashtablegetDeclaredEntities()
     Returns the hashtable of declared entities.

REVISIT: This should be done the "right" way by designing a better way to enumerate the declared entities.

public  booleanisDeclaredEntity(String entityName)
     Checks whether an entity given by name is declared.
public  booleanisEntityDeclInExternalSubset(String entityName)
     Checks whether the declaration of an entity given by name is // in the external subset.
public  booleanisExternalEntity(String entityName)
     Checks whether an entity given by name is external.
public  booleanisUnparsedEntity(String entityName)
     Checks whether an entity given by name is unparsed.
public  voidreset(PropertyManager propertyManager)
    
public  voidreset()
    
public  voidreset(XMLComponentManager componentManager)
     Resets the component.

Field Detail
ERROR_REPORTER
final protected static String ERROR_REPORTER(Code)
Property identifier: error reporter.



WARN_ON_DUPLICATE_ENTITYDEF
final protected static String WARN_ON_DUPLICATE_ENTITYDEF(Code)
Feature identifier: warn on duplicate EntityDef



fCurrentEntity
protected Entity.ScannedEntity fCurrentEntity(Code)



fEntities
protected Hashtable fEntities(Code)
Entities.



fErrorReporter
protected XMLErrorReporter fErrorReporter(Code)
Error reporter. This property identifier is: http://apache.org/xml/properties/internal/error-reporter



fPropertyManager
protected PropertyManager fPropertyManager(Code)



fWarnDuplicateEntityDef
protected boolean fWarnDuplicateEntityDef(Code)
warn on duplicate Entity declaration. http://apache.org/xml/features/warn-on-duplicate-entitydef




Constructor Detail
XMLEntityStorage
public XMLEntityStorage(PropertyManager propertyManager)(Code)
Creates a new instance of XMLEntityStorage



XMLEntityStorage
public XMLEntityStorage(XMLEntityManager entityManager)(Code)
Creates a new instance of XMLEntityStorage




Method Detail
addExternalEntity
public void addExternalEntity(String name, String publicId, String literalSystemId, String baseSystemId)(Code)
Adds an external entity declaration.

Note: This method ignores subsequent entity declarations.

Note: The name should be a unique symbol. The SymbolTable can be used for this purpose.
Parameters:
  name - The name of the entity.
Parameters:
  publicId - The public identifier of the entity.
Parameters:
  literalSystemId - The system identifier of the entity.
Parameters:
  baseSystemId - The base system identifier of the entity.This is the system identifier of the entitywhere the entity being added andis used to expand the system identifier whenthe system identifier is a relative URI.When null the system identifier of the firstexternal entity on the stack is used instead.
See Also:   SymbolTable




addInternalEntity
public void addInternalEntity(String name, String text)(Code)
Adds an internal entity declaration.

Note: This method ignores subsequent entity declarations.

Note: The name should be a unique symbol. The SymbolTable can be used for this purpose.
Parameters:
  name - The name of the entity.
Parameters:
  text - The text of the entity.
See Also:   SymbolTable




addUnparsedEntity
public void addUnparsedEntity(String name, String publicId, String systemId, String baseSystemId, String notation)(Code)
Adds an unparsed entity declaration.

Note: This method ignores subsequent entity declarations.

Note: The name should be a unique symbol. The SymbolTable can be used for this purpose.
Parameters:
  name - The name of the entity.
Parameters:
  publicId - The public identifier of the entity.
Parameters:
  systemId - The system identifier of the entity.
Parameters:
  notation - The name of the notation.
See Also:   SymbolTable




expandSystemId
public static String expandSystemId(String systemId)(Code)
Expands a system id and returns the system id as a URI, if it can be expanded. A return value of null means that the identifier is already expanded. An exception thrown indicates a failure to expand the id.
Parameters:
  systemId - The systemId to be expanded. Returns the URI string representing the expanded systemidentifier. A null value indicates that the givensystem identifier is already expanded.



expandSystemId
public static String expandSystemId(String systemId, String baseSystemId)(Code)
Expands a system id and returns the system id as a URI, if it can be expanded. A return value of null means that the identifier is already expanded. An exception thrown indicates a failure to expand the id.
Parameters:
  systemId - The systemId to be expanded. Returns the URI string representing the expanded systemidentifier. A null value indicates that the givensystem identifier is already expanded.



fixURI
protected static String fixURI(String str)(Code)
Fixes a platform dependent filename to standard URI form.
Parameters:
  str - The string to fix. Returns the fixed URI string.



getDeclaredEntities
public Hashtable getDeclaredEntities()(Code)
Returns the hashtable of declared entities.

REVISIT: This should be done the "right" way by designing a better way to enumerate the declared entities. For now, this method is needed by the constructor that takes an XMLEntityManager parameter. XXX Making this method public, return all the declared entities. Hashtable hastable containing all the declared entities.




isDeclaredEntity
public boolean isDeclaredEntity(String entityName)(Code)
Checks whether an entity given by name is declared.
Parameters:
  entityName - The name of the entity to check.



isEntityDeclInExternalSubset
public boolean isEntityDeclInExternalSubset(String entityName)(Code)
Checks whether the declaration of an entity given by name is // in the external subset.
Parameters:
  entityName - The name of the entity to check.



isExternalEntity
public boolean isExternalEntity(String entityName)(Code)
Checks whether an entity given by name is external.
Parameters:
  entityName - The name of the entity to check.



isUnparsedEntity
public boolean isUnparsedEntity(String entityName)(Code)
Checks whether an entity given by name is unparsed.
Parameters:
  entityName - The name of the entity to check.



reset
public void reset(PropertyManager propertyManager)(Code)



reset
public void reset()(Code)



reset
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)
Resets the component. The component can query the component manager about any features and properties that affect the operation of the component.
Parameters:
  componentManager - The component manager.
throws:
  SAXException - Thrown by component on initialization error.For example, if a feature or property isrequired for the operation of the component, thecomponent manager may throw aSAXNotRecognizedException or aSAXNotSupportedException.



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.