Java Doc for AnyType.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.AnyType

AnyType
final public class AnyType implements ComplexType,Serializable(Code)
This class has a singleton instance which represents the XML Schema built-in type xs:anyType, also known as the urtype.




Method Summary
public  booleanallowsDerivation(int derivation)
    
public  voidanalyzeContentExpression(Expression expression, int kind, StaticContext env)
     Analyze an expression to see whether the expression is capable of delivering a value of this type.
public  Valueatomize(NodeInfo node)
     Get the typed value of a node that is annotated with this schema type.
public  SchemaTypegetAttributeUseType(int fingerprint)
     Find an attribute use within this complex type definition having a given attribute name (identified by fingerprint), and return the schema type associated with that attribute. If there is no such attribute use, return null.
public  SchemaTypegetBaseType()
    
public  intgetBlock()
    
public  intgetDerivationMethod()
     Gets the integer code of the derivation method used to derive this type from its parent.
public  StringgetDescription()
    
public  StringgetDisplayName()
    
public  intgetElementParticleCardinality(int fingerprint)
     Find an element particle within this complex type definition having a given element name (identified by fingerprint), and return the cardinality associated with that element particle, that is, the number of times the element can occur within this complex type.
public  SchemaTypegetElementParticleType(int fingerprint)
     Find an element particle within this complex type definition having a given element name (identified by fingerprint), and return the schema type associated with that element particle. If there is no such particle, return null.
public  intgetFingerprint()
    
public static  AnyTypegetInstance()
    
public  SchemaTypegetKnownBaseType()
     Returns the base type that this type inherits from.
public  intgetNameCode()
     Get the namecode of the name of this type.
public  SimpleTypegetSimpleContentType()
     For a complex type with simple content, return the simple type of the content.
public  SequenceIteratorgetTypedValue(NodeInfo node)
     Get the typed value of a node that is annotated with this schema type
Parameters:
  node - the node whose typed value is required an iterator returning a single untyped atomic value, equivalent to the string value of the node.
public  intgetValidationStatus()
    
public  booleanisAbstract()
     Test whether this ComplexType has been marked as abstract.
public  booleanisAllContent()
    
public  booleanisComplexContent()
    
public  booleanisComplexType()
    
public  booleanisEmptiable()
    
public  booleanisEmptyContent()
    
public  booleanisMixedContent()
    
public  booleanisRestricted()
    
public  booleanisSameType(SchemaType other)
     Test whether this is the same type as another type.
public  booleanisSimpleContent()
    
public  booleanisSimpleType()
    
public  voidisTypeDerivationOK(SchemaType type, int block)
    
public  Stringsubsumes(ComplexType sub)
     Test whether this complex type subsumes another complex type.



Method Detail
allowsDerivation
public boolean allowsDerivation(int derivation)(Code)
Determines whether derivation (of a particular kind) from this type is allowed, based on the "final" property
Parameters:
  derivation - the kind of derivation, for example SchemaType.DERIVATION_LIST true if this kind of derivation is allowed



analyzeContentExpression
public void analyzeContentExpression(Expression expression, int kind, StaticContext env)(Code)
Analyze an expression to see whether the expression is capable of delivering a value of this type.
Parameters:
  expression - the expression that delivers the content
Parameters:
  kind - the node kind whose content is being delivered: net.sf.saxon.type.Type.ELEMENT,net.sf.saxon.type.Type.ATTRIBUTE, or net.sf.saxon.type.Type.DOCUMENT
Parameters:
  env -



atomize
public Value atomize(NodeInfo node)(Code)
Get the typed value of a node that is annotated with this schema type. The result of this method will always be consistent with the method AnyType.getTypedValue . However, this method is often more convenient and may be more efficient, especially in the common case where the value is expected to be a singleton.
Parameters:
  node - the node whose typed value is required the typed value.
since:
   8.5



getAttributeUseType
public SchemaType getAttributeUseType(int fingerprint)(Code)
Find an attribute use within this complex type definition having a given attribute name (identified by fingerprint), and return the schema type associated with that attribute. If there is no such attribute use, return null. If the fingerprint matches an attribute wildcard, return the type of the global attribute declaration with the given name if one exists, or AnySimpleType if none exists and lax validation is permitted by the wildcard.
Parameters:
  fingerprint - Identifies the name of the child element within this content model



getBaseType
public SchemaType getBaseType()(Code)
Get the base type null (this is the root of the type hierarchy)



getBlock
public int getBlock()(Code)
Returns the value of the 'block' attribute for this type, as a bit-signnificant integer with fields such as SchemaType.DERIVATION_LIST and SchemaType.DERIVATION_EXTENSION the value of the 'block' attribute for this type



getDerivationMethod
public int getDerivationMethod()(Code)
Gets the integer code of the derivation method used to derive this type from its parent. Returns zero for primitive types. a numeric code representing the derivation method, for exampleSchemaType.DERIVATION_RESTRICTION



getDescription
public String getDescription()(Code)
Get a description of this type for use in diagnostics the string "xs:anyType"



getDisplayName
public String getDisplayName()(Code)
Get the display name of the type: that is, a lexical QName with an arbitrary prefix a lexical QName identifying the type



getElementParticleCardinality
public int getElementParticleCardinality(int fingerprint)(Code)
Find an element particle within this complex type definition having a given element name (identified by fingerprint), and return the cardinality associated with that element particle, that is, the number of times the element can occur within this complex type. The value is one of net.sf.saxon.expr.StaticProperty.EXACTLY_ONE , net.sf.saxon.expr.StaticProperty.ALLOWS_ZERO_OR_ONE , net.sf.saxon.expr.StaticProperty.ALLOWS_ZERO_OR_MORE , net.sf.saxon.expr.StaticProperty.ALLOWS_ONE_OR_MORE , If there is no such particle, return zero.
Parameters:
  fingerprint - Identifies the name of the child element within this content model



getElementParticleType
public SchemaType getElementParticleType(int fingerprint)(Code)
Find an element particle within this complex type definition having a given element name (identified by fingerprint), and return the schema type associated with that element particle. If there is no such particle, return null. If the fingerprint matches an element wildcard, return the type of the global element declaration with the given name if one exists, or AnyType if none exists and lax validation is permitted by the wildcard.
Parameters:
  fingerprint - Identifies the name of the child element within this content model



getFingerprint
public int getFingerprint()(Code)
Get the fingerprint of the name of this type the fingerprint.



getInstance
public static AnyType getInstance()(Code)
Get the singular instance of this class the singular object representing xs:anyType



getKnownBaseType
public SchemaType getKnownBaseType() throws IllegalStateException(Code)
Returns the base type that this type inherits from. This method can be used to get the base type of a type that is known to be valid. If this type is a Simpletype that is a built in primitive type then null is returned. the base type.
throws:
  IllegalStateException - if this type is not valid.



getNameCode
public int getNameCode()(Code)
Get the namecode of the name of this type. This includes the prefix from the original type declaration: in the case of built-in types, there may be a conventional prefix or there may be no prefix.



getSimpleContentType
public SimpleType getSimpleContentType()(Code)
For a complex type with simple content, return the simple type of the content. Otherwise, return null. null: this complex type does not have simple content



getTypedValue
public SequenceIterator getTypedValue(NodeInfo node)(Code)
Get the typed value of a node that is annotated with this schema type
Parameters:
  node - the node whose typed value is required an iterator returning a single untyped atomic value, equivalent to the string value of the node. Thisfollows the standard rules for elements with mixed content.



getValidationStatus
public int getValidationStatus()(Code)
Get the validation status - always valid



isAbstract
public boolean isAbstract()(Code)
Test whether this ComplexType has been marked as abstract. false: this class is not abstract.



isAllContent
public boolean isAllContent()(Code)
Test whether this complex type has "all" content, that is, a content model using an xs:all compositor false: this complex type does not use an "all" compositor



isComplexContent
public boolean isComplexContent()(Code)
Test whether this complex type has complex content true: this complex type has complex content



isComplexType
public boolean isComplexType()(Code)
Test whether this SchemaType is a complex type true if this SchemaType is a complex type



isEmptiable
public boolean isEmptiable()(Code)
Test whether the content model of this complexType allows empty content true: the content is allowed to be empty



isEmptyContent
public boolean isEmptyContent()(Code)
Test whether the content type of this complex type is empty false: the content model is not empty



isMixedContent
public boolean isMixedContent()(Code)
Test whether this complex type allows mixed content true: mixed content is allowed



isRestricted
public boolean isRestricted()(Code)
Test whether this complex type is derived by restriction false: this type is not a restriction



isSameType
public boolean isSameType(SchemaType other)(Code)
Test whether this is the same type as another type. They are considered to be the same type if they are derived from the same type definition in the original XML representation (which can happen when there are multiple includes of the same file)



isSimpleContent
public boolean isSimpleContent()(Code)
Test whether this complex type has simple content false: this complex type has complex content



isSimpleType
public boolean isSimpleType()(Code)
Test whether this SchemaType is a simple type true if this SchemaType is a simple type



isTypeDerivationOK
public void isTypeDerivationOK(SchemaType type, int block) throws SchemaException(Code)
Check that this type is validly derived from a given type
Parameters:
  type - the type from which this type is derived
Parameters:
  block - the derivations that are blocked by the relevant element declaration
throws:
  SchemaException - if the derivation is not allowed



subsumes
public String subsumes(ComplexType sub)(Code)
Test whether this complex type subsumes another complex type. The algorithm used is as published by Thompson and Tobin, XML Europe 2003.
Parameters:
  sub - the other type (the type that is derived by restriction, validly or otherwise) null indicating that this type does indeed subsume the other; or a string indicatingwhy it doesn't.



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.