Java Doc for Attributes.java in  » Development » Javolution » javolution » xml » sax » 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 » Development » Javolution » javolution.xml.sax 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javolution.xml.sax.Attributes

All known Subclasses:   javolution.xml.stream.AttributesImpl,
Attributes
public interface Attributes (Code)

This interface represents a list of XML attributes.

It is a more efficient version of org.xml.sax.Attributes with CharArray CharArray / CharSequence CharSequence instead of the String to avoid forcing dynamic object allocations.


author:
   David Megginson
author:
   Jean-Marie Dautelle
version:
   4.0, June 16, 2006




Method Summary
 intgetIndex(CharSequence uri, CharSequence localName)
     Looks up the index of an attribute by namespace name (convenience method). This method returns the index of the attribute whose uri/localName have the same character content as the specified uri/localName.
Parameters:
  uri - the Namespace URI, or an empty character sequence ifthe name has no Namespace URI.
Parameters:
  localName - the attribute's local name.
 intgetIndex(CharSequence qName)
     Looks up the index of an attribute by XML 1.0 qualified name (convenience method).
 intgetLength()
     Returns the number of attributes in this list of attributes.
 CharArraygetLocalName(int index)
     Looks up an attribute's local name by index.
Parameters:
  index - the attribute index (zero-based).
 CharArraygetQName(int index)
     Looks up an attribute's XML 1.0 qualified name by index.
Parameters:
  index - the attribute index (zero-based).
 CharArraygetType(int index)
     Looks up an attribute's type by index.

The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).

If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-TextBuilder Normalization").

For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".


Parameters:
  index - the attribute index (zero-based).
 CharArraygetType(CharSequence uri, CharSequence localName)
     Looks up an attribute's type by Namespace name (convenience method). This method returns the type of the attribute whose uri/localName have the same character content as the specified uri/localName.
Parameters:
  uri - the Namespace URI, or an empty string if thename has no Namespace URI.
Parameters:
  localName - the local name of the attribute.
 CharArraygetType(CharSequence qName)
     Looks up an attribute's type by XML 1.0 qualified name. This method returns the type of the attribute whose qName has the same character content as the specified qName.
Parameters:
  qName - The XML 1.0 qualified name.
 CharArraygetURI(int index)
     Looks up an attribute's Namespace URI by index.
Parameters:
  index - the attribute index (zero-based).
 CharArraygetValue(int index)
     Looks up an attribute's value by index.

If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string with each token separated by a single space.


Parameters:
  index - the attribute index (zero-based).
 CharArraygetValue(CharSequence uri, CharSequence localName)
     Looks up an attribute's value by Namespace name (convenience method). This method returns the value of the attribute whose uri/localName have the same character content as the specified uri/localName.
Parameters:
  uri - the Namespace URI, or the empty string if the name has no Namespace URI.
Parameters:
  localName - the local name of the attribute.
 CharArraygetValue(CharSequence qName)
     Looks up an attribute's value by XML 1.0 qualified name (convenience method).



Method Detail
getIndex
int getIndex(CharSequence uri, CharSequence localName)(Code)
Looks up the index of an attribute by namespace name (convenience method). This method returns the index of the attribute whose uri/localName have the same character content as the specified uri/localName.
Parameters:
  uri - the Namespace URI, or an empty character sequence ifthe name has no Namespace URI.
Parameters:
  localName - the attribute's local name. the index of the attribute, or -1 if it does notappear in the list.



getIndex
int getIndex(CharSequence qName)(Code)
Looks up the index of an attribute by XML 1.0 qualified name (convenience method). This method returns the index of the attribute whose name has the same character content as the specified qName.
Parameters:
  qName - the qualified (prefixed) name. the index of the attribute, or -1 if it does notappear in the list.



getLength
int getLength()(Code)
Returns the number of attributes in this list of attributes. the number of attributes.



getLocalName
CharArray getLocalName(int index)(Code)
Looks up an attribute's local name by index.
Parameters:
  index - the attribute index (zero-based). the local name, or an empty character sequence if Namespaceprocessing is not being performed, or null ifthe index is out of range.
See Also:   Attributes.getLength



getQName
CharArray getQName(int index)(Code)
Looks up an attribute's XML 1.0 qualified name by index.
Parameters:
  index - the attribute index (zero-based). the XML 1.0 qualified name, or an empty character sequence ifnone is available, or null if the index is outof range.
See Also:   Attributes.getLength



getType
CharArray getType(int index)(Code)
Looks up an attribute's type by index.

The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).

If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-TextBuilder Normalization").

For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".


Parameters:
  index - the attribute index (zero-based). the attribute's type as a string, or null if theindex is out of range.
See Also:   Attributes.getLength



getType
CharArray getType(CharSequence uri, CharSequence localName)(Code)
Looks up an attribute's type by Namespace name (convenience method). This method returns the type of the attribute whose uri/localName have the same character content as the specified uri/localName.
Parameters:
  uri - the Namespace URI, or an empty string if thename has no Namespace URI.
Parameters:
  localName - the local name of the attribute. the attribute type as a string, or null if the attribute is notin the list or if Namespace processing is not being performed.



getType
CharArray getType(CharSequence qName)(Code)
Looks up an attribute's type by XML 1.0 qualified name. This method returns the type of the attribute whose qName has the same character content as the specified qName.
Parameters:
  qName - The XML 1.0 qualified name. the attribute type as a string, or null if the attribute is notin the list or if qualified names are not available.



getURI
CharArray getURI(int index)(Code)
Looks up an attribute's Namespace URI by index.
Parameters:
  index - the attribute index (zero-based). the Namespace URI, or an empty character sequence if none isavailable, or null if the index is out of range.
See Also:   Attributes.getLength



getValue
CharArray getValue(int index)(Code)
Looks up an attribute's value by index.

If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string with each token separated by a single space.


Parameters:
  index - the attribute index (zero-based). the attribute's value as a character sequence,null if the index is out of range.
See Also:   Attributes.getLength



getValue
CharArray getValue(CharSequence uri, CharSequence localName)(Code)
Looks up an attribute's value by Namespace name (convenience method). This method returns the value of the attribute whose uri/localName have the same character content as the specified uri/localName.
Parameters:
  uri - the Namespace URI, or the empty string if the name has no Namespace URI.
Parameters:
  localName - the local name of the attribute. the attribute value as a character sequence, or nullif the attribute is not in the list.



getValue
CharArray getValue(CharSequence qName)(Code)
Looks up an attribute's value by XML 1.0 qualified name (convenience method). This method returns the value of the attribute whose qName has the same character content as the specified qName.
Parameters:
  qName - The XML 1.0 qualified name. the attribute value as a character sequence, or nullif the attribute is not in the list or if qualified namesare not available.



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