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


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

ExternalObjectType
public class ExternalObjectType implements AtomicType,Serializable(Code)
This class represents the type of an external Java object returned by an extension function, or supplied as an external variable/parameter.


Field Summary
 intbaseFingerprint
    
 intfingerprint
    

Constructor Summary
public  ExternalObjectType(Class javaClass)
    

Method Summary
final 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 static  voidanalyzeContentExpression(SimpleType simpleType, Expression expression, StaticContext env, int kind)
     Analyze an expression to see whether the expression is capable of delivering a value of this type.
public  CharSequenceapplyWhitespaceNormalization(CharSequence value)
    
public  Valueatomize(NodeInfo node)
     Get the typed value of a node that is annotated with this schema type.
public  AtomicTypegetAtomizedItemType()
    
final public  SchemaTypegetBaseType()
     Returns the base type that this type inherits from.
final public  intgetBlock()
    
public  SchemaTypegetBuiltInBaseType()
     Returns the built-in base type this type is derived from.
public  AtomicTypegetCommonAtomicType()
    
final public  intgetDerivationMethod()
     Gets the integer code of the derivation method used to derive this type from its parent.
public  StringgetDescription()
    
public  StringgetDisplayName()
    
public  intgetFingerprint()
    
public  ClassgetJavaClass()
    
public  SchemaTypegetKnownBaseType()
     Returns the base type that this type inherits from.
public  intgetNameCode()
     Get the namecode of the name of this type.
public  ItemTypegetPrimitiveItemType()
     Get the primitive item type corresponding to this item type.
public  intgetPrimitiveType()
     Get the primitive type corresponding to this item type.
public  ItemTypegetSuperType(TypeHierarchy th)
    
final 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 over the items making up the typed value of this node.
public  SequenceIteratorgetTypedValue(CharSequence value, NamespaceResolver resolver, NameChecker nameChecker)
     Get the typed value corresponding to a given string value, assuming it is valid against this type
Parameters:
  value - the string value
Parameters:
  resolver - a namespace resolver used to resolve any namespace prefixes appearingin the content of values.
final public  intgetValidationStatus()
    
public  intgetWhitespaceAction(TypeHierarchy th)
    
public  booleanisAtomicType()
    
public  booleanisBuiltIn()
    
final public  booleanisComplexType()
    
public  booleanisListType()
    
public  booleanisNamespaceSensitive()
    
public  booleanisSameType(SchemaType other)
     Test whether this is the same type as another type.
final public  booleanisSimpleType()
    
public  voidisTypeDerivationOK(SchemaType type, int block)
    
public  booleanisUnionType()
    
public  AtomicValuemakeDerivedValue(AtomicValue primValue, CharSequence lexicalValue, boolean validate)
     Factory method to create values of a derived atomic type.
public  booleanmatchesItem(Item item, XPathContext context)
    
public  StringtoString(NamePool pool)
     Produce a representation of this type name for use in error messages.
public  StringtoString()
    
public  ValidationExceptionvalidateContent(CharSequence value, NamespaceResolver nsResolver, NameChecker nameChecker)
     Check whether a given input string is valid according to this SimpleType
Parameters:
  value - the input string to be checked
Parameters:
  nsResolver - a namespace resolver used to resolve namespace prefixes if the typeis namespace sensitive.

Field Detail
baseFingerprint
int baseFingerprint(Code)



fingerprint
int fingerprint(Code)




Constructor Detail
ExternalObjectType
public ExternalObjectType(Class javaClass)(Code)




Method Detail
allowsDerivation
final 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) throws XPathException(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: Type.ELEMENT,Type.ATTRIBUTE, or Type.DOCUMENT
Parameters:
  env -
throws:
  net.sf.saxon.trans.XPathException - if the expression will never deliver a value of the correct type



analyzeContentExpression
public static void analyzeContentExpression(SimpleType simpleType, Expression expression, StaticContext env, int kind) throws XPathException(Code)
Analyze an expression to see whether the expression is capable of delivering a value of this type.
Parameters:
  simpleType - the simple type against which the expression is to be checked
Parameters:
  expression - the expression that delivers the content
Parameters:
  kind - the node kind whose content is being delivered: Type.ELEMENT,Type.ATTRIBUTE, or Type.DOCUMENT
throws:
  net.sf.saxon.trans.XPathException - if the expression will never deliver a value of the correct type



applyWhitespaceNormalization
public CharSequence applyWhitespaceNormalization(CharSequence value) throws ValidationException(Code)
Apply the whitespace normalization rules for this simple type
Parameters:
  value - the string before whitespace normalization the string after whitespace normalization



atomize
public Value atomize(NodeInfo node) throws XPathException(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 ExternalObjectType.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



getAtomizedItemType
public AtomicType getAtomizedItemType()(Code)
Get the item type of the atomic values that will be produced when an item of this type is atomized



getBaseType
final public SchemaType getBaseType()(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.



getBlock
final 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



getBuiltInBaseType
public SchemaType getBuiltInBaseType() throws ValidationException(Code)
Returns the built-in base type this type is derived from. the first built-in type found when searching up the type hierarchy



getCommonAtomicType
public AtomicType getCommonAtomicType()(Code)
Get the most specific possible atomic type that all items in this SimpleType belong to the lowest common supertype of all member types



getDerivationMethod
final 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 example SchemaType.DERIVATION_RESTRICTION



getDescription
public String getDescription()(Code)



getDisplayName
public String getDisplayName()(Code)



getFingerprint
public int getFingerprint()(Code)



getJavaClass
public Class getJavaClass()(Code)



getKnownBaseType
public SchemaType getKnownBaseType()(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.



getPrimitiveItemType
public ItemType getPrimitiveItemType()(Code)
Get the primitive item type corresponding to this item type. For item(), this is Type.ITEM. For node(), it is Type.NODE. For specific node kinds, it is the value representing the node kind, for example Type.ELEMENT. For anyAtomicValue it is Type.ATOMIC_VALUE. For numeric it is Type.NUMBER. For other atomic types it is the primitive type as defined in XML Schema, except that INTEGER is considered to be a primitive type.



getPrimitiveType
public int getPrimitiveType()(Code)
Get the primitive type corresponding to this item type. For item(), this is Type.ITEM. For node(), it is Type.NODE. For specific node kinds, it is the value representing the node kind, for example Type.ELEMENT. For anyAtomicValue it is Type.ATOMIC. For numeric it is Type.NUMBER. For other atomic types it is the primitive type as defined in XML Schema, except that INTEGER is considered to be a primitive type.



getSuperType
public ItemType getSuperType(TypeHierarchy th)(Code)



getTypedValue
final 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 over the items making up the typed value of this node. The objectsreturned by this SequenceIterator will all be of type net.sf.saxon.value.AtomicValue



getTypedValue
public SequenceIterator getTypedValue(CharSequence value, NamespaceResolver resolver, NameChecker nameChecker) throws ValidationException(Code)
Get the typed value corresponding to a given string value, assuming it is valid against this type
Parameters:
  value - the string value
Parameters:
  resolver - a namespace resolver used to resolve any namespace prefixes appearingin the content of values. Can supply null, in which case any namespace-sensitive contentwill be rejected.
Parameters:
  nameChecker - an iterator over the atomic sequence comprising the typed value. The objectsreturned by this SequenceIterator will all be of type net.sf.saxon.value.AtomicValue



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



getWhitespaceAction
public int getWhitespaceAction(TypeHierarchy th)(Code)
Determine the whitespace normalization required for values of this type one of PRESERVE, REPLACE, COLLAPSE
Parameters:
  th -



isAtomicType
public boolean isAtomicType()(Code)
Test whether this Simple Type is an atomic type true, this is considered to be an atomic type



isBuiltIn
public boolean isBuiltIn()(Code)



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



isListType
public boolean isListType()(Code)
Returns true if this type is derived by list, or if it is derived by restriction from a list type, or if it is a union that contains a list as one of its members true if this is a list type



isNamespaceSensitive
public boolean isNamespaceSensitive()(Code)
Test whether this simple type is namespace-sensitive, that is, whether it is derived from xs:QName or xs:NOTATION true if this type is derived from xs:QName or xs:NOTATION



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)



isSimpleType
final public boolean isSimpleType()(Code)
Returns true if this SchemaType is a SimpleType true (always)



isTypeDerivationOK
public void isTypeDerivationOK(SchemaType type, int block) throws SchemaException, ValidationException(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



isUnionType
public boolean isUnionType()(Code)
Return true if this type is a union type (that is, if its variety is union) true for a union type



makeDerivedValue
public AtomicValue makeDerivedValue(AtomicValue primValue, CharSequence lexicalValue, boolean validate)(Code)
Factory method to create values of a derived atomic type. This method is not used to create values of a built-in type, even one that is not primitive.
Parameters:
  primValue - the value in the value space of the primitive type
Parameters:
  lexicalValue - the value in the lexical space. If null, the string value of primValue
Parameters:
  validate - true if the value is to be validated against the facets of the derivedtype; false if the caller knows that the value is already valid.



matchesItem
public boolean matchesItem(Item item, XPathContext context)(Code)



toString
public String toString(NamePool pool)(Code)
Produce a representation of this type name for use in error messages. Where this is a QName, it will use conventional prefixes



toString
public String toString()(Code)



validateContent
public ValidationException validateContent(CharSequence value, NamespaceResolver nsResolver, NameChecker nameChecker)(Code)
Check whether a given input string is valid according to this SimpleType
Parameters:
  value - the input string to be checked
Parameters:
  nsResolver - a namespace resolver used to resolve namespace prefixes if the typeis namespace sensitive. The value supplied may be null; in this case any namespace-sensitivecontent will throw an UnsupportedOperationException.
Parameters:
  nameChecker - null if validation succeeds; return a ValidationException describing the validation failureif validation fails, unless throwException is true, in which case the exception is thrown rather thanbeing returned.
throws:
  UnsupportedOperationException - if the type is namespace-sensitive and no namespaceresolver is supplied



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.