Java Doc for AbstractMetaDataHandler.java in  » Database-ORM » JPOX » org » jpox » metadata » 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 » JPOX » org.jpox.metadata.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.xml.sax.helpers.DefaultHandler
      org.jpox.metadata.xml.AbstractMetaDataHandler

All known Subclasses:   org.jpox.jdo.metadata.JDOMetaDataHandler,  org.jpox.metadata.xml.PersistenceFileMetaDataHandler,
AbstractMetaDataHandler
public class AbstractMetaDataHandler extends DefaultHandler (Code)


Field Summary
protected static  LocaliserLOCALISER
     Localiser for messages.
protected  StringBuffercharactersBuffer
    
final protected  EntityResolverentityResolver
    
final protected  Stringfilename
     Filename for the parsed file.
protected  MetaDatametadata
     The MetaData for this file (the end result of the parse process.
final protected  MetaDataManagermgr
     Manager for the MetaData.
protected  Stackstack
     Stack of meta-data elements.

Constructor Summary
public  AbstractMetaDataHandler(MetaDataManager mgr, String filename, EntityResolver resolver)
     Constructor.

Method Summary
public  voidcharacters(char[] ch, int start, int length)
     Notification handler for the "body" data inside an element.
public  voiderror(SAXParseException e)
     Parser error method.
protected  StringgetAttr(Attributes attrs, String key, String defaultValue)
     Accessor for an attribute out of the attributes for an element.
protected  StringgetAttr(Attributes attrs, String key)
     Accessor for an attribute out of the attributes for an element.
public  MetaDatagetMetaData()
     Accessor for the MetaData for this file.
protected  MetaDatagetStack()
     Accessor for the current MetaData component.
public  StringgetString()
     Accessor for the "body" text metadata.
protected  MetaDatapopStack()
     Method to remove the current MetaData component from the Stack.
protected  voidpushStack(MetaData md)
     Method to add a MetaData component to the Stack.
public  InputSourceresolveEntity(String publicId, String systemId)
     Method to resolve XML entities.

Field Detail
LOCALISER
protected static Localiser LOCALISER(Code)
Localiser for messages.



charactersBuffer
protected StringBuffer charactersBuffer(Code)
parser buffer



entityResolver
final protected EntityResolver entityResolver(Code)
Entity Resolver to use (if required)



filename
final protected String filename(Code)
Filename for the parsed file.



metadata
protected MetaData metadata(Code)
The MetaData for this file (the end result of the parse process.



mgr
final protected MetaDataManager mgr(Code)
Manager for the MetaData.



stack
protected Stack stack(Code)
Stack of meta-data elements. The top of the stack is always the element being process at the moment. The elements are not the XML Element type but are things like ClassMetaData, PackageMetaData etc.




Constructor Detail
AbstractMetaDataHandler
public AbstractMetaDataHandler(MetaDataManager mgr, String filename, EntityResolver resolver)(Code)
Constructor.
Parameters:
  mgr - Manager for the MetaData
Parameters:
  filename - The filename
Parameters:
  resolver - Entity Resolver to use (null if not available)




Method Detail
characters
public void characters(char[] ch, int start, int length) throws SAXException(Code)
Notification handler for the "body" data inside an element.
Parameters:
  ch - The characters
Parameters:
  start - The start position in the character array.
Parameters:
  length - The length of the string.
throws:
  SAXException - in parsing errors



error
public void error(SAXParseException e) throws SAXException(Code)
Parser error method. If any syntactical errors are encountered on validation they will appear here and be logged as warnings. Just points the user to the line/column of their Meta-Data file for now.
Parameters:
  e - Parse Exception
See Also:   org.xml.sax.ErrorHandler.error(org.xml.sax.SAXParseException)



getAttr
protected String getAttr(Attributes attrs, String key, String defaultValue)(Code)
Accessor for an attribute out of the attributes for an element. Allows the specification of a default if no value is provided.
Parameters:
  attrs - The attributes
Parameters:
  key - Key for the attribute to return
Parameters:
  defaultValue - A default to impose if no value. Value for the attribute with the specified key.



getAttr
protected String getAttr(Attributes attrs, String key)(Code)
Accessor for an attribute out of the attributes for an element.
Parameters:
  attrs - The attributes
Parameters:
  key - Key for the attribute to return Value for the attribute with the specified key.



getMetaData
public MetaData getMetaData()(Code)
Accessor for the MetaData for this file. The MetaData.



getStack
protected MetaData getStack()(Code)
Accessor for the current MetaData component. The current MetaData component.



getString
public String getString()(Code)
Accessor for the "body" text metadata. Resets the body text after access. the string form of this metadata



popStack
protected MetaData popStack()(Code)
Method to remove the current MetaData component from the Stack. Latest MetaData component.



pushStack
protected void pushStack(MetaData md)(Code)
Method to add a MetaData component to the Stack.
Parameters:
  md - The component to add.



resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException(Code)
Method to resolve XML entities. Uses the entity resolver (if provided) to check for local variants.
Parameters:
  publicId - The public id.
Parameters:
  systemId - The system id. Input Source for the URI.
See Also:   org.xml.sax.EntityResolver.resolveEntity(java.lang.Stringjava.lang.String)



Methods inherited from org.xml.sax.helpers.DefaultHandler
public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc)
public void endDocument() throws SAXException(Code)(Java Doc)
public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc)
public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc)
public void error(SAXParseException e) throws SAXException(Code)(Java Doc)
public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc)
public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc)
public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc)
public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc)
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc)
public void setDocumentLocator(Locator locator)(Code)(Java Doc)
public void skippedEntity(String name) throws SAXException(Code)(Java Doc)
public void startDocument() throws SAXException(Code)(Java Doc)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc)
public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc)
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc)
public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)

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.