Java Doc for Type.java in  » XML » saxonb » net » sf » saxon » type » 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 » saxonb » net.sf.saxon.type 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.saxon.type.Type

Type
abstract public class Type implements Serializable(Code)
This class contains static information about types and methods for constructing type codes. The class is never instantiated.


Field Summary
final public static  intANY_ATOMIC
    
final public static  BuiltInAtomicTypeANY_ATOMIC_TYPE
    
final public static  intANY_SIMPLE_TYPE
    
final public static  intANY_URI
    
final public static  BuiltInAtomicTypeANY_URI_TYPE
    
final public static  shortATTRIBUTE
    
final public static  intBASE64_BINARY
    
final public static  BuiltInAtomicTypeBASE64_BINARY_TYPE
    
final public static  intBOOLEAN
    
final public static  BuiltInAtomicTypeBOOLEAN_TYPE
    
final public static  intBYTE
    
final public static  shortCOMMENT
    
final public static  intDATE
    
final public static  intDATE_TIME
    
final public static  BuiltInAtomicTypeDATE_TIME_TYPE
    
final public static  BuiltInAtomicTypeDATE_TYPE
    
final public static  intDAY_TIME_DURATION
    
final public static  BuiltInAtomicTypeDAY_TIME_DURATION_TYPE
    
final public static  intDECIMAL
    
final public static  BuiltInAtomicTypeDECIMAL_TYPE
    
final public static  shortDOCUMENT
    
final public static  intDOUBLE
    
final public static  BuiltInAtomicTypeDOUBLE_TYPE
    
final public static  intDURATION
    
final public static  BuiltInAtomicTypeDURATION_TYPE
    
final public static  shortELEMENT
    
final public static  shortEMPTY
    
final public static  intENTITY
    
final public static  intFLOAT
    
final public static  BuiltInAtomicTypeFLOAT_TYPE
    
final public static  intG_DAY
    
final public static  BuiltInAtomicTypeG_DAY_TYPE
    
final public static  intG_MONTH
    
final public static  intG_MONTH_DAY
    
final public static  BuiltInAtomicTypeG_MONTH_DAY_TYPE
    
final public static  BuiltInAtomicTypeG_MONTH_TYPE
    
final public static  intG_YEAR
    
final public static  intG_YEAR_MONTH
    
final public static  BuiltInAtomicTypeG_YEAR_MONTH_TYPE
    
final public static  BuiltInAtomicTypeG_YEAR_TYPE
    
final public static  intHEX_BINARY
    
final public static  BuiltInAtomicTypeHEX_BINARY_TYPE
    
final public static  intID
    
final public static  intIDREF
    
final public static  intIDREFS
    
final public static  BuiltInAtomicTypeID_TYPE
    
final public static  intINT
    
final public static  intINTEGER
    
final public static  BuiltInAtomicTypeINTEGER_TYPE
    
final public static  shortITEM
    
final public static  ItemTypeITEM_TYPE
    
final public static  intLANGUAGE
    
final public static  intLONG
    
final public static  shortMAX_NODE_TYPE
    
final public static  intNAME
    
final public static  shortNAMESPACE
    
final public static  intNCNAME
    
final public static  BuiltInAtomicTypeNCNAME_TYPE
    
final public static  intNEGATIVE_INTEGER
    
final public static  intNMTOKEN
    
final public static  intNMTOKENS
    
final public static  shortNODE
    
final public static  ItemTypeNODE_TYPE
    
final public static  intNON_NEGATIVE_INTEGER
    
final public static  intNON_POSITIVE_INTEGER
    
final public static  intNORMALIZED_STRING
    
final public static  intNOTATION
    
final public static  BuiltInAtomicTypeNOTATION_TYPE
    
final public static  intNUMBER
    
final public static  BuiltInAtomicTypeNUMBER_TYPE
    
final public static  intOBJECT
    
final public static  shortPARENT_POINTER
    
final public static  intPOSITIVE_INTEGER
    
final public static  shortPROCESSING_INSTRUCTION
    
final public static  intQNAME
    
final public static  BuiltInAtomicTypeQNAME_TYPE
    
final public static  intSHORT
    
final public static  shortSTOPPER
    
final public static  intSTRING
    
final public static  BuiltInAtomicTypeSTRING_TYPE
    
final public static  shortTEXT
    
final public static  intTIME
    
final public static  BuiltInAtomicTypeTIME_TYPE
    
final public static  intTOKEN
    
final public static  intUNSIGNED_BYTE
    
final public static  intUNSIGNED_INT
    
final public static  intUNSIGNED_LONG
    
final public static  intUNSIGNED_SHORT
    
final public static  intUNTYPED_ATOMIC
    
final public static  BuiltInAtomicTypeUNTYPED_ATOMIC_TYPE
    
final public static  intYEAR_MONTH_DURATION
    
final public static  BuiltInAtomicTypeYEAR_MONTH_DURATION_TYPE
    


Method Summary
final public static  StringdisplayTypeName(Item item)
     Output (for diagnostics) a representation of the type of an item.
public static  ItemTypegetBuiltInItemType(String namespace, String localName)
    
final public static  ItemTypegetCommonSuperType(ItemType t1, ItemType t2, TypeHierarchy th)
    
public static  ItemTypegetItemType(Item item)
    
public static  booleanisComparable(int t1, int t2)
    
public static  booleanisNodeType(ItemType type)
    
public static  booleanisNumericPrimitiveType(ItemType t)
    
public static  booleanisOrdered(int type)
     Determine whether a primitive type is ordered.
public static  booleanisPrimitiveType(int code)
     Determine whether this type is a primitive type.
public static  intschemaTypeRelationship(SchemaType s1, SchemaType s2)
    

Field Detail
ANY_ATOMIC
final public static int ANY_ATOMIC(Code)
Constant denoting any atomic type (the union of all primitive types and types derived from primitive types by restriction or by union)



ANY_ATOMIC_TYPE
final public static BuiltInAtomicType ANY_ATOMIC_TYPE(Code)



ANY_SIMPLE_TYPE
final public static int ANY_SIMPLE_TYPE(Code)



ANY_URI
final public static int ANY_URI(Code)
Item type representing the type xs:anyURI



ANY_URI_TYPE
final public static BuiltInAtomicType ANY_URI_TYPE(Code)



ATTRIBUTE
final public static short ATTRIBUTE(Code)
Item type representing an attribute node - attribute()



BASE64_BINARY
final public static int BASE64_BINARY(Code)
Item type representing the type xs:base64Binary



BASE64_BINARY_TYPE
final public static BuiltInAtomicType BASE64_BINARY_TYPE(Code)



BOOLEAN
final public static int BOOLEAN(Code)
Item type representing the type xs:boolean



BOOLEAN_TYPE
final public static BuiltInAtomicType BOOLEAN_TYPE(Code)



BYTE
final public static int BYTE(Code)
Item type representing the type xs:byte



COMMENT
final public static short COMMENT(Code)
Item type representing a comment node



DATE
final public static int DATE(Code)
Item type representing the type xs:date



DATE_TIME
final public static int DATE_TIME(Code)
Item type representing the type xs:dateTime



DATE_TIME_TYPE
final public static BuiltInAtomicType DATE_TIME_TYPE(Code)



DATE_TYPE
final public static BuiltInAtomicType DATE_TYPE(Code)



DAY_TIME_DURATION
final public static int DAY_TIME_DURATION(Code)
Item type representing the type xdt:dayTimeDuration



DAY_TIME_DURATION_TYPE
final public static BuiltInAtomicType DAY_TIME_DURATION_TYPE(Code)



DECIMAL
final public static int DECIMAL(Code)
Item type representing the type xs:decimal



DECIMAL_TYPE
final public static BuiltInAtomicType DECIMAL_TYPE(Code)



DOCUMENT
final public static short DOCUMENT(Code)
Item type representing a document node



DOUBLE
final public static int DOUBLE(Code)
Item type representing the type xs:double



DOUBLE_TYPE
final public static BuiltInAtomicType DOUBLE_TYPE(Code)



DURATION
final public static int DURATION(Code)
Item type representing the type xs:duration



DURATION_TYPE
final public static BuiltInAtomicType DURATION_TYPE(Code)



ELEMENT
final public static short ELEMENT(Code)
Type representing an element node - element()



EMPTY
final public static short EMPTY(Code)
Item type that matches no items (corresponds to SequenceType empty())



ENTITY
final public static int ENTITY(Code)
Item type representing the type xs:ENTITY



FLOAT
final public static int FLOAT(Code)
Item type representing the type xs:float



FLOAT_TYPE
final public static BuiltInAtomicType FLOAT_TYPE(Code)



G_DAY
final public static int G_DAY(Code)
Item type representing the type xs:gDay



G_DAY_TYPE
final public static BuiltInAtomicType G_DAY_TYPE(Code)



G_MONTH
final public static int G_MONTH(Code)
Item type representing the type xs:gMonth



G_MONTH_DAY
final public static int G_MONTH_DAY(Code)
Item type representing the type xs:monthDay



G_MONTH_DAY_TYPE
final public static BuiltInAtomicType G_MONTH_DAY_TYPE(Code)



G_MONTH_TYPE
final public static BuiltInAtomicType G_MONTH_TYPE(Code)



G_YEAR
final public static int G_YEAR(Code)
Item type representing the type xs:gYear



G_YEAR_MONTH
final public static int G_YEAR_MONTH(Code)
Item type representing the type xs:gYearMonth



G_YEAR_MONTH_TYPE
final public static BuiltInAtomicType G_YEAR_MONTH_TYPE(Code)



G_YEAR_TYPE
final public static BuiltInAtomicType G_YEAR_TYPE(Code)



HEX_BINARY
final public static int HEX_BINARY(Code)
Item type representing the type xs:hexBinary



HEX_BINARY_TYPE
final public static BuiltInAtomicType HEX_BINARY_TYPE(Code)



ID
final public static int ID(Code)
Item type representing the type xs:ID



IDREF
final public static int IDREF(Code)
Item type representing the type xs:IDREF



IDREFS
final public static int IDREFS(Code)
Content type representing the complex type xs:IDREFS



ID_TYPE
final public static BuiltInAtomicType ID_TYPE(Code)



INT
final public static int INT(Code)
Item type representing the type xs:int



INTEGER
final public static int INTEGER(Code)
Item type representing the type xs:integer



INTEGER_TYPE
final public static BuiltInAtomicType INTEGER_TYPE(Code)



ITEM
final public static short ITEM(Code)
An item type that matches any item



ITEM_TYPE
final public static ItemType ITEM_TYPE(Code)



LANGUAGE
final public static int LANGUAGE(Code)
Item type representing the type xs:language



LONG
final public static int LONG(Code)
Item type representing the type xs:long



MAX_NODE_TYPE
final public static short MAX_NODE_TYPE(Code)
A type that matches nothing



NAME
final public static int NAME(Code)
Item type representing the type xs:NAME



NAMESPACE
final public static short NAMESPACE(Code)
Item type representing a namespace node



NCNAME
final public static int NCNAME(Code)
Item type representing the type xs:NCNAME



NCNAME_TYPE
final public static BuiltInAtomicType NCNAME_TYPE(Code)



NEGATIVE_INTEGER
final public static int NEGATIVE_INTEGER(Code)
Item type representing the type xs:negativeInteger



NMTOKEN
final public static int NMTOKEN(Code)
Item type representing the type xs:NMTOKEN



NMTOKENS
final public static int NMTOKENS(Code)
Content type representing the complex type xs:NMTOKENS



NODE
final public static short NODE(Code)
An item type that matches any node



NODE_TYPE
final public static ItemType NODE_TYPE(Code)



NON_NEGATIVE_INTEGER
final public static int NON_NEGATIVE_INTEGER(Code)
Item type representing the type xs:nonNegativeInteger



NON_POSITIVE_INTEGER
final public static int NON_POSITIVE_INTEGER(Code)
Item type representing the type xs:nonPositiveInteger



NORMALIZED_STRING
final public static int NORMALIZED_STRING(Code)
Item type representing the type xs:normalizedString



NOTATION
final public static int NOTATION(Code)
Item type representing the type xs:NOTATION



NOTATION_TYPE
final public static BuiltInAtomicType NOTATION_TYPE(Code)



NUMBER
final public static int NUMBER(Code)
Constant denoting any numeric type (the union of float, double, and decimal)



NUMBER_TYPE
final public static BuiltInAtomicType NUMBER_TYPE(Code)



OBJECT
final public static int OBJECT(Code)
Constant representing the type of an external object (for use by extension functions)



PARENT_POINTER
final public static short PARENT_POINTER(Code)
Dummy node kind used in the tiny tree to contain a parent pointer



POSITIVE_INTEGER
final public static int POSITIVE_INTEGER(Code)
Item type representing the type xs:positiveInteger



PROCESSING_INSTRUCTION
final public static short PROCESSING_INSTRUCTION(Code)
Item type representing a processing-instruction node



QNAME
final public static int QNAME(Code)
Item type representing the type xs:QName



QNAME_TYPE
final public static BuiltInAtomicType QNAME_TYPE(Code)



SHORT
final public static int SHORT(Code)
Item type representing the type xs:short



STOPPER
final public static short STOPPER(Code)
Dummy node kind used in the tiny tree to mark the end of the tree



STRING
final public static int STRING(Code)
Constants representing primitive data types defined in Schema Part 2



STRING_TYPE
final public static BuiltInAtomicType STRING_TYPE(Code)



TEXT
final public static short TEXT(Code)
Item type representing a text node - text()



TIME
final public static int TIME(Code)
Item type representing the type xs:time



TIME_TYPE
final public static BuiltInAtomicType TIME_TYPE(Code)



TOKEN
final public static int TOKEN(Code)
Item type representing the type xs:token



UNSIGNED_BYTE
final public static int UNSIGNED_BYTE(Code)
Item type representing the type xs:unsignedByte



UNSIGNED_INT
final public static int UNSIGNED_INT(Code)
Item type representing the type xs:unsignedInt



UNSIGNED_LONG
final public static int UNSIGNED_LONG(Code)
Item type representing the type xs:unsignedLong



UNSIGNED_SHORT
final public static int UNSIGNED_SHORT(Code)
Item type representing the type xs:unsignedShort



UNTYPED_ATOMIC
final public static int UNTYPED_ATOMIC(Code)
Item type representing the type xdt:untypedAtomic (the type of the content of a schema-less node)



UNTYPED_ATOMIC_TYPE
final public static BuiltInAtomicType UNTYPED_ATOMIC_TYPE(Code)



YEAR_MONTH_DURATION
final public static int YEAR_MONTH_DURATION(Code)
Item type representing the type xdt:yearMonthDuration



YEAR_MONTH_DURATION_TYPE
final public static BuiltInAtomicType YEAR_MONTH_DURATION_TYPE(Code)





Method Detail
displayTypeName
final public static String displayTypeName(Item item)(Code)
Output (for diagnostics) a representation of the type of an item. This does not have to be the most specific type



getBuiltInItemType
public static ItemType getBuiltInItemType(String namespace, String localName)(Code)
Get the SimpleType object for a built-in simple type code the SimpleType, or null if not found



getCommonSuperType
final public static ItemType getCommonSuperType(ItemType t1, ItemType t2, TypeHierarchy th)(Code)
Get a type that is a common supertype of two given types
Parameters:
  t1 - the first item type
Parameters:
  t2 - the second item type
Parameters:
  th - the item type that is a supertype of boththe supplied item types



getItemType
public static ItemType getItemType(Item item)(Code)
Get the ItemType of an Item



isComparable
public static boolean isComparable(int t1, int t2)(Code)
Determine whether two primitive atomic types are comparable
Parameters:
  t1 - the first type to compared.This must be a primitive atomic type as defined by ItemType.getPrimitiveType
Parameters:
  t2 - the second type to compared.This must be a primitive atomic type as defined by ItemType.getPrimitiveType true if the types are comparable, as defined by the rules of the "eq" operator



isNodeType
public static boolean isNodeType(ItemType type)(Code)
Test whether a given type is (some subtype of) node()
Parameters:
  type - The type to be tested true if the item type is node() or a subtype of node()



isNumericPrimitiveType
public static boolean isNumericPrimitiveType(ItemType t)(Code)
Test whether the supplied type, which must be a primitive type, is one of the numeric primitive types
Parameters:
  t - the type being tested true if the type is integer, double, float, decimal, or the abstract type "numeric"



isOrdered
public static boolean isOrdered(int type)(Code)
Determine whether a primitive type is ordered. Note that the rules for this differ between XPath and XML Schema: these are the XPath rules.
Parameters:
  type - the primitive item type being tested true if the types are potentially comparable. For abstract types (type=ATOMIC)we give the benefit of the doubt and return true.



isPrimitiveType
public static boolean isPrimitiveType(int code)(Code)
Determine whether this type is a primitive type. The primitive types are the 19 primitive types of XML Schema, plus xs:integer, xdt:dayTimeDuration and xdt:yearMonthDuration; xdt:untypedAtomic; the 7 node kinds; and all supertypes of these (item(), node(), xdt:anyAtomicType, xdt:number, ...)
Parameters:
  code - the item type code to be tested true if the type is considered primitive under the above rules



schemaTypeRelationship
public static int schemaTypeRelationship(SchemaType s1, SchemaType s2)(Code)
Get the relationship of two schema types to each other



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.