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


java.lang.Object
   net.sf.saxon.value.Value
      net.sf.saxon.value.SequenceExtent

SequenceExtent
final public class SequenceExtent extends Value (Code)
A sequence value implemented extensionally. That is, this class represents a sequence by allocating memory to each item in the sequence.



Constructor Summary
public  SequenceExtent(Item[] items)
     Construct an sequence from an array of items.
public  SequenceExtent(Item[] value, int start, int length)
    
public  SequenceExtent(SequenceExtent ext, int start, int length)
    
public  SequenceExtent(List list)
     Construct a SequenceExtent from a List.
public  SequenceExtent(SequenceIterator iter)
     Construct a sequence containing all the items in a SequenceIterator.
exception:
  net.sf.saxon.trans.XPathException - if reading the items using theSequenceIterator raises an error
Parameters:
  iter - The supplied sequence of items.

Method Summary
public  booleaneffectiveBooleanValue(XPathContext context)
    
public  intgetCardinality()
    
public  intgetImplementationMethod()
     An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
public  ItemTypegetItemType(TypeHierarchy th)
    
public  intgetLength()
    
public  ItemitemAt(int n)
    
public  SequenceIteratoriterate(XPathContext context)
     Return an iterator over this sequence.
public static  ValuemakeSequenceExtent(SequenceIterator iter)
    
public  Valuereduce()
     Reduce a value to its simplest form.
public  AxisIteratorreverseIterate()
    
public  Valuesimplify()
    
public  voidswap(int a, int b)
    


Constructor Detail
SequenceExtent
public SequenceExtent(Item[] items)(Code)
Construct an sequence from an array of items. Note, the array of items is used as is, which means the caller must not subsequently change its contents.
Parameters:
  items - the array of items to be included in the sequence



SequenceExtent
public SequenceExtent(Item[] value, int start, int length)(Code)
Construct a SequenceExtent from part of an array of items
Parameters:
  value - The array
Parameters:
  start - zero-based offset of the first item in the arraythat is to be included in the new SequenceExtent
Parameters:
  length - The number of items in the new SequenceExtent



SequenceExtent
public SequenceExtent(SequenceExtent ext, int start, int length)(Code)
Construct a SequenceExtent as a view of another SequenceExtent
Parameters:
  ext - The existing SequenceExtent
Parameters:
  start - zero-based offset of the first item in the existing SequenceExtentthat is to be included in the new SequenceExtent
Parameters:
  length - The number of items in the new SequenceExtent



SequenceExtent
public SequenceExtent(List list)(Code)
Construct a SequenceExtent from a List. The members of the list must all be Items
Parameters:
  list - the list of items to be included in the sequence



SequenceExtent
public SequenceExtent(SequenceIterator iter) throws XPathException(Code)
Construct a sequence containing all the items in a SequenceIterator.
exception:
  net.sf.saxon.trans.XPathException - if reading the items using theSequenceIterator raises an error
Parameters:
  iter - The supplied sequence of items. This must be positioned atthe start, so that hasNext() returns true if there are any nodes inthe node-set, and next() returns the first node.




Method Detail
effectiveBooleanValue
public boolean effectiveBooleanValue(XPathContext context) throws XPathException(Code)
Get the effective boolean value



getCardinality
public int getCardinality()(Code)
Determine the cardinality the cardinality of the sequence, using the constants defined innet.sf.saxon.value.Cardinality
See Also:   net.sf.saxon.value.Cardinality



getImplementationMethod
public int getImplementationMethod()(Code)
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process(). This method indicates which of these methods is preferred.



getItemType
public ItemType getItemType(TypeHierarchy th)(Code)
Get the (lowest common) item type integer identifying an item type to which all the items in thissequence conform
Parameters:
  th -



getLength
public int getLength()(Code)
Get the number of items in the sequence the number of items in the sequence



itemAt
public Item itemAt(int n)(Code)
Get the n'th item in the sequence (starting with 0 as the first item)
Parameters:
  n - the position of the required item the n'th item in the sequence



iterate
public SequenceIterator iterate(XPathContext context)(Code)
Return an iterator over this sequence.
Parameters:
  context - dynamic evaluation context; not used in thisimplementation of the method the required SequenceIterator, positioned at the start of thesequence



makeSequenceExtent
public static Value makeSequenceExtent(SequenceIterator iter) throws XPathException(Code)
Factory method to make a Value holding the contents of any SequenceIterator



reduce
public Value reduce()(Code)
Reduce a value to its simplest form. If the value is a closure or some other form of deferred value such as a FunctionCallPackage, then it is reduced to a SequenceExtent. If it is a SequenceExtent containing a single item, then it is reduced to that item. One consequence that is exploited by class FilterExpression is that if the value is a singleton numeric value, then the result will be an instance of NumericValue



reverseIterate
public AxisIterator reverseIterate()(Code)
Return an enumeration of this sequence in reverse order (used for reverse axes) an AxisIterator that processes the items in reverse order



simplify
public Value simplify()(Code)
Simplify this SequenceExtent



swap
public void swap(int a, int b)(Code)
Swap two items (needed to support sorting)
Parameters:
  a - the position of the first item to be swapped
Parameters:
  b - the position of the second item to be swapped



Fields inherited from net.sf.saxon.value.Value
final public static Class[] EMPTY_CLASS_ARRAY(Code)(Java Doc)

Methods inherited from net.sf.saxon.value.Value
public static Item asItem(ValueRepresentation value, XPathContext context) throws XPathException(Code)(Java Doc)
public static SequenceIterator asIterator(ValueRepresentation val, XPathContext context) throws XPathException(Code)(Java Doc)
public static Value asValue(ValueRepresentation val)(Code)(Java Doc)
public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException(Code)(Java Doc)
public static CharSequence collapseWhitespace(CharSequence in)(Code)(Java Doc)
public static Object convert(Item item) throws XPathException(Code)(Java Doc)
public static Value convertJavaObjectToXPath(Object object, SequenceType requiredType, Configuration config) throws XPathException(Code)(Java Doc)
public Object convertToJava(Class target, XPathContext context) throws XPathException(Code)(Java Doc)
public void display(int level, NamePool pool, PrintStream out)(Code)(Java Doc)
public boolean effectiveBooleanValue(XPathContext context) throws XPathException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public String evaluateAsString(XPathContext context) throws XPathException(Code)(Java Doc)
public Item evaluateItem(XPathContext context) throws XPathException(Code)(Java Doc)
public int getCardinality()(Code)(Java Doc)
final public int getDependencies()(Code)(Java Doc)
public ItemType getItemType(TypeHierarchy th)(Code)(Java Doc)
public static SequenceIterator getIterator(ValueRepresentation val) throws XPathException(Code)(Java Doc)
public int getLength() throws XPathException(Code)(Java Doc)
final public Container getParentExpression()(Code)(Java Doc)
public int getSpecialProperties()(Code)(Java Doc)
public String getStringValue() throws XPathException(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public Item itemAt(int n) throws XPathException(Code)(Java Doc)
final public Iterator iterateSubExpressions()(Code)(Java Doc)
public static QNameValue makeQNameValue(Object object, Configuration config)(Code)(Java Doc)
public static CharSequence normalizeWhitespace(CharSequence in)(Code)(Java Doc)
final public Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType)(Code)(Java Doc)
public void process(XPathContext context) throws XPathException(Code)(Java Doc)
final public Expression promote(PromotionOffer offer)(Code)(Java Doc)
public Value reduce() throws XPathException(Code)(Java Doc)
public boolean schemaEquals(Value obj)(Code)(Java Doc)
final public Expression simplify(StaticContext env)(Code)(Java Doc)
public static double stringToNumber(CharSequence s) throws NumberFormatException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public static CharSequence trimWhitespace(CharSequence in)(Code)(Java Doc)
final public Expression typeCheck(StaticContext env, ItemType contextItemType)(Code)(Java Doc)

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.