Java Doc for XSAttributeChecker.java in  » XML » xerces-2_9_1 » org » apache » xerces » impl » xs » traversers » 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 » xerces 2_9_1 » org.apache.xerces.impl.xs.traversers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.impl.xs.traversers.XSAttributeChecker

XSAttributeChecker
public class XSAttributeChecker (Code)
Class XSAttributeCheck is used to check the validity of attributes appearing in the schema document. It - reports an error for invalid element (invalid namespace, invalid name) - reports an error for invalid attribute (invalid namespace, invalid name) - reports an error for invalid attribute value - return compiled values for attriute values - provide default value for missing optional attributes - provide default value for incorrect attribute values But it's the caller's responsibility to check whether a required attribute is present. Things need revisiting: - Whether to return non-schema attributes/values - Do we need to update NamespaceScope and ErrorReporter when reset()? - Should have the datatype validators return compiled value - use symbol table instead of many hashtables
author:
   Sandy Gao, IBM
version:
   $Id: XSAttributeChecker.java 471890 2006-11-06 22:00:18Z mrglavas $


Field Summary
final public static  intATTIDX_ABSTRACT
    
final public static  intATTIDX_AFORMDEFAULT
    
final public static  intATTIDX_BASE
    
final public static  intATTIDX_BLOCK
    
final public static  intATTIDX_BLOCKDEFAULT
    
final public static  intATTIDX_DEFAULT
    
final public static  intATTIDX_EFORMDEFAULT
    
final public static  intATTIDX_ENUMNSDECLS
    
final public static  intATTIDX_FINAL
    
final public static  intATTIDX_FINALDEFAULT
    
final public static  intATTIDX_FIXED
    
final public static  intATTIDX_FORM
    
final public static  intATTIDX_FROMDEFAULT
    
final public static  intATTIDX_ID
    
final public static  intATTIDX_ISRETURNED
    
final public static  intATTIDX_ITEMTYPE
    
final public static  intATTIDX_MAXOCCURS
    
final public static  intATTIDX_MEMBERTYPES
    
final public static  intATTIDX_MINOCCURS
    
final public static  intATTIDX_MIXED
    
final public static  intATTIDX_NAME
    
final public static  intATTIDX_NAMESPACE
    
final public static  intATTIDX_NAMESPACE_LIST
    
final public static  intATTIDX_NILLABLE
    
final public static  intATTIDX_NONSCHEMA
    
final public static  intATTIDX_PROCESSCONTENTS
    
final public static  intATTIDX_PUBLIC
    
final public static  intATTIDX_REF
    
final public static  intATTIDX_REFER
    
final public static  intATTIDX_SCHEMALOCATION
    
final public static  intATTIDX_SOURCE
    
final public static  intATTIDX_SUBSGROUP
    
final public static  intATTIDX_SYSTEM
    
final public static  intATTIDX_TARGETNAMESPACE
    
final public static  intATTIDX_TYPE
    
final public static  intATTIDX_USE
    
final public static  intATTIDX_VALUE
    
final public static  intATTIDX_VERSION
    
final public static  intATTIDX_XML_LANG
    
final public static  intATTIDX_XPATH
    
final protected static  intDT_ANYURI
    
final protected static  intDT_BLOCK
    
final protected static  intDT_BLOCK1
    
final protected static  intDT_BOOLEAN
    
final protected static  intDT_COUNT
    
final protected static  intDT_FINAL
    
final protected static  intDT_FINAL1
    
final protected static  intDT_FINAL2
    
final protected static  intDT_FORM
    
final protected static  intDT_ID
    
final protected static  intDT_LANGUAGE
    
final protected static  intDT_MAXOCCURS
    
final protected static  intDT_MAXOCCURS1
    
final protected static  intDT_MEMBERTYPES
    
final protected static  intDT_MINOCCURS1
    
final protected static  intDT_NAMESPACE
    
final protected static  intDT_NCNAME
    
final protected static  intDT_NONNEGINT
    
final protected static  intDT_POSINT
    
final protected static  intDT_PROCESSCONTENTS
    
final protected static  intDT_QNAME
    
final protected static  intDT_STRING
    
final protected static  intDT_TOKEN
    
final protected static  intDT_USE
    
final protected static  intDT_WHITESPACE
    
final protected static  intDT_XPATH
    
final protected static  intDT_XPATH1
    
final static  intINC_POOL_SIZE
    
final static  intINIT_POOL_SIZE
    
 Object[][]fArrayPool
    
protected  VectorfNamespaceList
    
protected  HashtablefNonSchemaAttrs
    
 intfPoolPos
    
protected  XSDHandlerfSchemaHandler
    
protected  boolean[]fSeen
    
protected  SymbolTablefSymbolTable
    

Constructor Summary
public  XSAttributeChecker(XSDHandler schemaHandler)
    

Method Summary
public  Object[]checkAttributes(Element element, boolean isGlobal, XSDocumentInfo schemaDoc)
     Check whether the specified element conforms to the attributes restriction an array of attribute values is returned.
public  Object[]checkAttributes(Element element, boolean isGlobal, XSDocumentInfo schemaDoc, boolean enumAsQName)
     Check whether the specified element conforms to the attributes restriction an array of attribute values is returned.
public  voidcheckNonSchemaAttributes(XSGrammarBucket grammarBucket)
    
protected  Object[]getAvailableArray()
    
public static  Stringnormalize(String content, short ws)
    
 voidreportSchemaError(String key, Object[] args, Element ele)
    
public  voidreset(SymbolTable symbolTable)
    
public  voidresolveNamespace(Element element, Attr[] attrs, SchemaNamespaceSupport nsSupport)
    
public  voidreturnAttrArray(Object[] attrArray, XSDocumentInfo schemaDoc)
    

Field Detail
ATTIDX_ABSTRACT
final public static int ATTIDX_ABSTRACT(Code)



ATTIDX_AFORMDEFAULT
final public static int ATTIDX_AFORMDEFAULT(Code)



ATTIDX_BASE
final public static int ATTIDX_BASE(Code)



ATTIDX_BLOCK
final public static int ATTIDX_BLOCK(Code)



ATTIDX_BLOCKDEFAULT
final public static int ATTIDX_BLOCKDEFAULT(Code)



ATTIDX_DEFAULT
final public static int ATTIDX_DEFAULT(Code)



ATTIDX_EFORMDEFAULT
final public static int ATTIDX_EFORMDEFAULT(Code)



ATTIDX_ENUMNSDECLS
final public static int ATTIDX_ENUMNSDECLS(Code)



ATTIDX_FINAL
final public static int ATTIDX_FINAL(Code)



ATTIDX_FINALDEFAULT
final public static int ATTIDX_FINALDEFAULT(Code)



ATTIDX_FIXED
final public static int ATTIDX_FIXED(Code)



ATTIDX_FORM
final public static int ATTIDX_FORM(Code)



ATTIDX_FROMDEFAULT
final public static int ATTIDX_FROMDEFAULT(Code)



ATTIDX_ID
final public static int ATTIDX_ID(Code)



ATTIDX_ISRETURNED
final public static int ATTIDX_ISRETURNED(Code)



ATTIDX_ITEMTYPE
final public static int ATTIDX_ITEMTYPE(Code)



ATTIDX_MAXOCCURS
final public static int ATTIDX_MAXOCCURS(Code)



ATTIDX_MEMBERTYPES
final public static int ATTIDX_MEMBERTYPES(Code)



ATTIDX_MINOCCURS
final public static int ATTIDX_MINOCCURS(Code)



ATTIDX_MIXED
final public static int ATTIDX_MIXED(Code)



ATTIDX_NAME
final public static int ATTIDX_NAME(Code)



ATTIDX_NAMESPACE
final public static int ATTIDX_NAMESPACE(Code)



ATTIDX_NAMESPACE_LIST
final public static int ATTIDX_NAMESPACE_LIST(Code)



ATTIDX_NILLABLE
final public static int ATTIDX_NILLABLE(Code)



ATTIDX_NONSCHEMA
final public static int ATTIDX_NONSCHEMA(Code)



ATTIDX_PROCESSCONTENTS
final public static int ATTIDX_PROCESSCONTENTS(Code)



ATTIDX_PUBLIC
final public static int ATTIDX_PUBLIC(Code)



ATTIDX_REF
final public static int ATTIDX_REF(Code)



ATTIDX_REFER
final public static int ATTIDX_REFER(Code)



ATTIDX_SCHEMALOCATION
final public static int ATTIDX_SCHEMALOCATION(Code)



ATTIDX_SOURCE
final public static int ATTIDX_SOURCE(Code)



ATTIDX_SUBSGROUP
final public static int ATTIDX_SUBSGROUP(Code)



ATTIDX_SYSTEM
final public static int ATTIDX_SYSTEM(Code)



ATTIDX_TARGETNAMESPACE
final public static int ATTIDX_TARGETNAMESPACE(Code)



ATTIDX_TYPE
final public static int ATTIDX_TYPE(Code)



ATTIDX_USE
final public static int ATTIDX_USE(Code)



ATTIDX_VALUE
final public static int ATTIDX_VALUE(Code)



ATTIDX_VERSION
final public static int ATTIDX_VERSION(Code)



ATTIDX_XML_LANG
final public static int ATTIDX_XML_LANG(Code)



ATTIDX_XPATH
final public static int ATTIDX_XPATH(Code)



DT_ANYURI
final protected static int DT_ANYURI(Code)



DT_BLOCK
final protected static int DT_BLOCK(Code)



DT_BLOCK1
final protected static int DT_BLOCK1(Code)



DT_BOOLEAN
final protected static int DT_BOOLEAN(Code)



DT_COUNT
final protected static int DT_COUNT(Code)



DT_FINAL
final protected static int DT_FINAL(Code)



DT_FINAL1
final protected static int DT_FINAL1(Code)



DT_FINAL2
final protected static int DT_FINAL2(Code)



DT_FORM
final protected static int DT_FORM(Code)



DT_ID
final protected static int DT_ID(Code)



DT_LANGUAGE
final protected static int DT_LANGUAGE(Code)



DT_MAXOCCURS
final protected static int DT_MAXOCCURS(Code)



DT_MAXOCCURS1
final protected static int DT_MAXOCCURS1(Code)



DT_MEMBERTYPES
final protected static int DT_MEMBERTYPES(Code)



DT_MINOCCURS1
final protected static int DT_MINOCCURS1(Code)



DT_NAMESPACE
final protected static int DT_NAMESPACE(Code)



DT_NCNAME
final protected static int DT_NCNAME(Code)



DT_NONNEGINT
final protected static int DT_NONNEGINT(Code)



DT_POSINT
final protected static int DT_POSINT(Code)



DT_PROCESSCONTENTS
final protected static int DT_PROCESSCONTENTS(Code)



DT_QNAME
final protected static int DT_QNAME(Code)



DT_STRING
final protected static int DT_STRING(Code)



DT_TOKEN
final protected static int DT_TOKEN(Code)



DT_USE
final protected static int DT_USE(Code)



DT_WHITESPACE
final protected static int DT_WHITESPACE(Code)



DT_XPATH
final protected static int DT_XPATH(Code)



DT_XPATH1
final protected static int DT_XPATH1(Code)



INC_POOL_SIZE
final static int INC_POOL_SIZE(Code)



INIT_POOL_SIZE
final static int INIT_POOL_SIZE(Code)



fArrayPool
Object[][] fArrayPool(Code)



fNamespaceList
protected Vector fNamespaceList(Code)



fNonSchemaAttrs
protected Hashtable fNonSchemaAttrs(Code)



fPoolPos
int fPoolPos(Code)



fSchemaHandler
protected XSDHandler fSchemaHandler(Code)



fSeen
protected boolean[] fSeen(Code)



fSymbolTable
protected SymbolTable fSymbolTable(Code)




Constructor Detail
XSAttributeChecker
public XSAttributeChecker(XSDHandler schemaHandler)(Code)




Method Detail
checkAttributes
public Object[] checkAttributes(Element element, boolean isGlobal, XSDocumentInfo schemaDoc)(Code)
Check whether the specified element conforms to the attributes restriction an array of attribute values is returned. the caller must call returnAttrArray to return that array.
Parameters:
  element - which element to check
Parameters:
  isGlobal - whether a child of <schema> or <redefine>
Parameters:
  schemaDoc - the document where the element lives in an array containing attribute values



checkAttributes
public Object[] checkAttributes(Element element, boolean isGlobal, XSDocumentInfo schemaDoc, boolean enumAsQName)(Code)
Check whether the specified element conforms to the attributes restriction an array of attribute values is returned. the caller must call returnAttrArray to return that array. This method also takes an extra parameter: if the element is "enumeration", whether to make a copy of the namespace context, so that the value can be resolved as a QName later.
Parameters:
  element - which element to check
Parameters:
  isGlobal - whether a child of <schema> or <redefine>
Parameters:
  schemaDoc - the document where the element lives in
Parameters:
  enumAsQName - whether to tread enumeration value as QName an array containing attribute values



checkNonSchemaAttributes
public void checkNonSchemaAttributes(XSGrammarBucket grammarBucket)(Code)



getAvailableArray
protected Object[] getAvailableArray()(Code)



normalize
public static String normalize(String content, short ws)(Code)



reportSchemaError
void reportSchemaError(String key, Object[] args, Element ele)(Code)



reset
public void reset(SymbolTable symbolTable)(Code)



resolveNamespace
public void resolveNamespace(Element element, Attr[] attrs, SchemaNamespaceSupport nsSupport)(Code)



returnAttrArray
public void returnAttrArray(Object[] attrArray, XSDocumentInfo schemaDoc)(Code)



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.