Java Doc for IXMLReader.java in  » XML » jibx-1.1.5 » org » jibx » runtime » 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 » jibx 1.1.5 » org.jibx.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jibx.runtime.IXMLReader

All known Subclasses:   org.jibx.runtime.impl.StAXReaderWrapper,
IXMLReader
public interface IXMLReader (Code)
XML reader interface used for input of unmarshalled document. This interface allows easy substitution of different parsers or other input sources.
author:
   Dennis M. Sosnoski
version:
   1.0


Field Summary
final public static  intCDSECT
    
final public static  intCOMMENT
    
final public static  intDOCDECL
    
final public static  intEND_DOCUMENT
    
final public static  intEND_TAG
    
final public static  intENTITY_REF
    
final public static  intIGNORABLE_WHITESPACE
    
final public static  intPROCESSING_INSTRUCTION
    
final public static  intSTART_DOCUMENT
    
final public static  intSTART_TAG
    
final public static  intTEXT
    


Method Summary
public  StringbuildPositionString()
     Build current parse input position description.
public  intgetAttributeCount()
     Get the number of attributes of the current start tag.
public  StringgetAttributeName(int index)
     Get an attribute name from the current start tag.
public  StringgetAttributeNamespace(int index)
     Get an attribute namespace from the current start tag.
public  StringgetAttributePrefix(int index)
     Get an attribute prefix from the current start tag.
public  StringgetAttributeValue(int index)
     Get an attribute value from the current start tag.
public  StringgetAttributeValue(String ns, String name)
     Get an attribute value from the current start tag.
public  intgetColumnNumber()
     Get current source column number.
public  StringgetDocumentName()
     Get document name.
public  intgetEventType()
     Gets the current parse event type, without changing the current parse state.
public  StringgetInputEncoding()
     Return the input encoding, if known.
public  intgetLineNumber()
     Get current source line number.
public  StringgetName()
     Get element name from the current start or end tag.
public  StringgetNamespace()
     Get element namespace from the current start or end tag.
public  StringgetNamespace(String prefix)
     Get namespace URI associated with prefix.
public  intgetNamespaceCount(int depth)
     Get number of namespace declarations active at depth.
public  StringgetNamespacePrefix(int index)
     Get namespace prefix.
public  StringgetNamespaceUri(int index)
     Get namespace URI.
public  intgetNestingDepth()
     Get current element nesting depth.
public  StringgetPrefix()
     Get element prefix from the current start or end tag.
public  StringgetText()
     Get current text.
public  booleanisNamespaceAware()
     Return namespace processing flag.
public  intnext()
     Advance to next binding component of input document.
public  intnextToken()
     Advance to next parse event of input document.

Field Detail
CDSECT
final public static int CDSECT(Code)



COMMENT
final public static int COMMENT(Code)



DOCDECL
final public static int DOCDECL(Code)



END_DOCUMENT
final public static int END_DOCUMENT(Code)



END_TAG
final public static int END_TAG(Code)



ENTITY_REF
final public static int ENTITY_REF(Code)



IGNORABLE_WHITESPACE
final public static int IGNORABLE_WHITESPACE(Code)



PROCESSING_INSTRUCTION
final public static int PROCESSING_INSTRUCTION(Code)



START_DOCUMENT
final public static int START_DOCUMENT(Code)



START_TAG
final public static int START_TAG(Code)



TEXT
final public static int TEXT(Code)





Method Detail
buildPositionString
public String buildPositionString()(Code)
Build current parse input position description. text description of current parse position



getAttributeCount
public int getAttributeCount()(Code)
Get the number of attributes of the current start tag. number of attributes
throws:
  IllegalStateException - if not at a start tag (optional)



getAttributeName
public String getAttributeName(int index)(Code)
Get an attribute name from the current start tag.
Parameters:
  index - attribute index local name if namespace handling enabled, full name if namespacehandling disabled
throws:
  IllegalStateException - if not at a start tag or invalid index



getAttributeNamespace
public String getAttributeNamespace(int index)(Code)
Get an attribute namespace from the current start tag.
Parameters:
  index - attribute index namespace URI if namespace handling enabled and attribute is in anamespace, empty string otherwise
throws:
  IllegalStateException - if not at a start tag or invalid index



getAttributePrefix
public String getAttributePrefix(int index)(Code)
Get an attribute prefix from the current start tag.
Parameters:
  index - attribute index prefix for attribute (null if no prefix present)
throws:
  IllegalStateException - if not at a start tag or invalid index



getAttributeValue
public String getAttributeValue(int index)(Code)
Get an attribute value from the current start tag.
Parameters:
  index - attribute index value text
throws:
  IllegalStateException - if not at a start tag or invalid index



getAttributeValue
public String getAttributeValue(String ns, String name)(Code)
Get an attribute value from the current start tag.
Parameters:
  ns - namespace URI for expected attribute (may be nullor the empty string for the empty namespace)
Parameters:
  name - attribute name expected attribute value text, or null if missing
throws:
  IllegalStateException - if not at a start tag



getColumnNumber
public int getColumnNumber()(Code)
Get current source column number. column number from source document, -1 if columnnumber information not available



getDocumentName
public String getDocumentName()(Code)
Get document name. document name, null if not known



getEventType
public int getEventType() throws JiBXException(Code)
Gets the current parse event type, without changing the current parse state. parse event type code
throws:
  JiBXException - if error parsing document



getInputEncoding
public String getInputEncoding()(Code)
Return the input encoding, if known. This is only valid after parsing of a document has been started. input encoding (null if unknown)



getLineNumber
public int getLineNumber()(Code)
Get current source line number. line number from source document, -1 if line numberinformation not available



getName
public String getName()(Code)
Get element name from the current start or end tag. local name if namespace handling enabled, full name if namespacehandling disabled
throws:
  IllegalStateException - if not at a start or end tag (optional)



getNamespace
public String getNamespace()(Code)
Get element namespace from the current start or end tag. namespace URI if namespace handling enabled and element is in anamespace, empty string otherwise
throws:
  IllegalStateException - if not at a start or end tag (optional)



getNamespace
public String getNamespace(String prefix)(Code)
Get namespace URI associated with prefix.
Parameters:
  prefix - to be found associated URI (null if prefix not defined)



getNamespaceCount
public int getNamespaceCount(int depth)(Code)
Get number of namespace declarations active at depth.
Parameters:
  depth - element nesting depth number of namespaces active at depth
throws:
  IllegalArgumentException - if invalid depth



getNamespacePrefix
public String getNamespacePrefix(int index)(Code)
Get namespace prefix.
Parameters:
  index - declaration index namespace prefix, null if a default namespace
throws:
  IllegalArgumentException - if invalid index



getNamespaceUri
public String getNamespaceUri(int index)(Code)
Get namespace URI.
Parameters:
  index - declaration index namespace URI
throws:
  IllegalArgumentException - if invalid index



getNestingDepth
public int getNestingDepth()(Code)
Get current element nesting depth. The returned depth always includes the current start or end tag (if positioned on a start or end tag). element nesting depth



getPrefix
public String getPrefix()(Code)
Get element prefix from the current start or end tag. prefix text (null if no prefix)
throws:
  IllegalStateException - if not at a start or end tag



getText
public String getText()(Code)
Get current text. When positioned on a TEXT event this returns the actual text; for CDSECT it returns the text inside the CDATA section; for COMMENT, DOCDECL, or PROCESSING_INSTRUCTION it returns the text inside the structure. text for current event



isNamespaceAware
public boolean isNamespaceAware()(Code)
Return namespace processing flag. namespace processing flag (true if namespaces areprocessed by reader, false if not)



next
public int next() throws JiBXException(Code)
Advance to next binding component of input document. This is a higher-level operation than IXMLReader.nextToken() , which consolidates text content and ignores parse events for components such as comments and PIs. parse event type code
throws:
  JiBXException - if error reading or parsing document



nextToken
public int nextToken() throws JiBXException(Code)
Advance to next parse event of input document. parse event type code
throws:
  JiBXException - if error reading or parsing document



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.