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


org.apache.xerces.impl.dv.XSSimpleType

All known Subclasses:   org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl,
XSSimpleType
public interface XSSimpleType extends XSSimpleTypeDefinition(Code)
This interface XSSimpleType represents the simple type definition of schema component and defines methods to query the information contained. Any simple type (atomic, list or union) will implement this interface. It inherits from XSTypeDecl.
author:
   Sandy Gao, IBM
version:
   $Id: XSSimpleType.java 446751 2006-09-15 21:54:06Z mrglavas $


Field Summary
final public static  shortPRIMITIVE_ANYURI
    
final public static  shortPRIMITIVE_BASE64BINARY
    
final public static  shortPRIMITIVE_BOOLEAN
    
final public static  shortPRIMITIVE_DATE
    
final public static  shortPRIMITIVE_DATETIME
    
final public static  shortPRIMITIVE_DECIMAL
    
final public static  shortPRIMITIVE_DOUBLE
    
final public static  shortPRIMITIVE_DURATION
    
final public static  shortPRIMITIVE_FLOAT
    
final public static  shortPRIMITIVE_GDAY
    
final public static  shortPRIMITIVE_GMONTH
    
final public static  shortPRIMITIVE_GMONTHDAY
    
final public static  shortPRIMITIVE_GYEAR
    
final public static  shortPRIMITIVE_GYEARMONTH
    
final public static  shortPRIMITIVE_HEXBINARY
    
final public static  shortPRIMITIVE_NOTATION
    
final public static  shortPRIMITIVE_PRECISIONDECIMAL
    
final public static  shortPRIMITIVE_QNAME
    
final public static  shortPRIMITIVE_STRING
    
final public static  shortPRIMITIVE_TIME
    
final public static  shortWS_COLLAPSE
    
final public static  shortWS_PRESERVE
    
final public static  shortWS_REPLACE
    


Method Summary
public  voidapplyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context)
     If this type is created from restriction, then some facets can be applied to the simple type.
public  shortgetPrimitiveKind()
     return an ID representing the built-in primitive base type.
public  shortgetWhitespace()
     Return the whitespace corresponding to this datatype.
public  booleanisEqual(Object value1, Object value2)
     Check whether two actual values are equal.
public  booleanisIDType()
     Check whether this type is or is derived from ID.
public  Objectvalidate(String content, ValidationContext context, ValidatedInfo validatedInfo)
     validate a given string against this simple type.
public  Objectvalidate(Object content, ValidationContext context, ValidatedInfo validatedInfo)
     validate a given string value, represented by content.toString().
public  voidvalidate(ValidationContext context, ValidatedInfo validatedInfo)
     Validate an actual value against this simple type.

Field Detail
PRIMITIVE_ANYURI
final public static short PRIMITIVE_ANYURI(Code)
"anyURI" type



PRIMITIVE_BASE64BINARY
final public static short PRIMITIVE_BASE64BINARY(Code)
"base64Binary" type



PRIMITIVE_BOOLEAN
final public static short PRIMITIVE_BOOLEAN(Code)
"boolean" type



PRIMITIVE_DATE
final public static short PRIMITIVE_DATE(Code)
"date" type



PRIMITIVE_DATETIME
final public static short PRIMITIVE_DATETIME(Code)
"dataTime" type



PRIMITIVE_DECIMAL
final public static short PRIMITIVE_DECIMAL(Code)
"decimal" type



PRIMITIVE_DOUBLE
final public static short PRIMITIVE_DOUBLE(Code)
"double" type



PRIMITIVE_DURATION
final public static short PRIMITIVE_DURATION(Code)
"duration" type



PRIMITIVE_FLOAT
final public static short PRIMITIVE_FLOAT(Code)
"float" type



PRIMITIVE_GDAY
final public static short PRIMITIVE_GDAY(Code)
"gDay" type



PRIMITIVE_GMONTH
final public static short PRIMITIVE_GMONTH(Code)
"gMonth" type



PRIMITIVE_GMONTHDAY
final public static short PRIMITIVE_GMONTHDAY(Code)
"gMonthDay" type



PRIMITIVE_GYEAR
final public static short PRIMITIVE_GYEAR(Code)
"gYear" type



PRIMITIVE_GYEARMONTH
final public static short PRIMITIVE_GYEARMONTH(Code)
"gYearMonth" type



PRIMITIVE_HEXBINARY
final public static short PRIMITIVE_HEXBINARY(Code)
"hexBinary" type



PRIMITIVE_NOTATION
final public static short PRIMITIVE_NOTATION(Code)
"NOTATION" type



PRIMITIVE_PRECISIONDECIMAL
final public static short PRIMITIVE_PRECISIONDECIMAL(Code)
"precisionDecimal" type



PRIMITIVE_QNAME
final public static short PRIMITIVE_QNAME(Code)
"QName" type



PRIMITIVE_STRING
final public static short PRIMITIVE_STRING(Code)
"string" type



PRIMITIVE_TIME
final public static short PRIMITIVE_TIME(Code)
"time" type



WS_COLLAPSE
final public static short WS_COLLAPSE(Code)
collapse the white spaces



WS_PRESERVE
final public static short WS_PRESERVE(Code)
preserve the white spaces



WS_REPLACE
final public static short WS_REPLACE(Code)
replace the white spaces





Method Detail
applyFacets
public void applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) throws InvalidDatatypeFacetException(Code)
If this type is created from restriction, then some facets can be applied to the simple type. XSFacets is used to pass the value of different facets.
Parameters:
  facets - the value of all the facets
Parameters:
  presentFacet - bit combination value of the costraining facetconstants which are present.
Parameters:
  fixedFacet - bit combination value of the costraining facetconstants which are fixed.
Parameters:
  context - the validation context
exception:
  InvalidDatatypeFacetException - exception for invalid facet values.



getPrimitiveKind
public short getPrimitiveKind()(Code)
return an ID representing the built-in primitive base type. REVISIT: This method is (currently) for internal use only. the constants returned from this method are not finalized yet. the names and values might change in the further. an ID representing the built-in primitive base type



getWhitespace
public short getWhitespace() throws DatatypeException(Code)
Return the whitespace corresponding to this datatype. valid values are WS_PRESERVE, WS_REPLACE, WS_COLLAPSE.
exception:
  DatatypeException - union datatypes don't have whitespace facet associated with them



isEqual
public boolean isEqual(Object value1, Object value2)(Code)
Check whether two actual values are equal.
Parameters:
  value1 - the first value
Parameters:
  value2 - the second value true if the two value are equal



isIDType
public boolean isIDType()(Code)
Check whether this type is or is derived from ID. REVISIT: this method makes ID special, which is not a good design. but since ID is not a primitive, there doesn't seem to be a clean way of doing it except to define special method like this. whether this simple type is or is derived from ID.



validate
public Object validate(String content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException(Code)
validate a given string against this simple type.
Parameters:
  content - the string value that needs to be validated
Parameters:
  context - the validation context
Parameters:
  validatedInfo - used to store validation result the actual value (QName, Boolean) of the string value



validate
public Object validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException(Code)
validate a given string value, represented by content.toString(). note that if content is a StringBuffer, for performance reasons, it's possible that the content of the string buffer is modified.
Parameters:
  content - the string value that needs to be validated
Parameters:
  context - the validation context
Parameters:
  validatedInfo - used to store validation result the actual value (QName, Boolean) of the string value



validate
public void validate(ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException(Code)
Validate an actual value against this simple type.
Parameters:
  context - the validation context
Parameters:
  validatedInfo - used to provide the actual value and member types
exception:
  InvalidDatatypeValueException - exception for invalid values.



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