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


java.lang.Object
   net.sf.saxon.functions.Extensions

Extensions
public class Extensions (Code)
This class implements functions that are supplied as standard with SAXON, but which are not defined in the XSLT or XPath specifications.

To invoke these functions, use a function call of the form prefix:name() where name is the method name, and prefix maps to a URI such as http://saxon.sf.net/net.sf.saxon.functions.Extensions (only the part of the URI after the last slash is important).





Method Summary
public static  SequenceIteratorafter(XPathContext context, SequenceIterator ns1, SequenceIterator ns2)
     Find all the nodes in ns1 that are after the first node in ns2.
public static  byte[]base64BinaryToOctets(Base64BinaryValue in)
    
public static  Stringbase64BinaryToString(XPathContext context, Base64BinaryValue in, String encoding)
    
public static  TemplatescompileStylesheet(XPathContext context, DocumentInfo doc)
    
public static  SecondsDurationValuedayTimeDurationFromSeconds(double arg)
    
public static  BigDecimaldecimalDivide(BigDecimal arg1, BigDecimal arg2, int scale)
    
public static  booleandeepEqual(XPathContext context, SequenceIterator arg1, SequenceIterator arg2, String collation, String flags)
     Perform a parameterized deep-equals() test
Parameters:
  context - The evaluation context
Parameters:
  arg1 - The first sequence to be compared
Parameters:
  arg2 - The second sequence to be compared
Parameters:
  collation - The collation to be used (null if the default collation is to be used)
Parameters:
  flags - A string whose characters select options that cause the comparison to vary from thestandard fn:deep-equals() function.
public static  DocumentInfodiscardDocument(XPathContext context, DocumentInfo doc)
     Remove a document from the document pool.
public static  ConfigurationgetConfiguration(XPathContext c)
    
public static  XPathContextgetContext(XPathContext c)
    
public static  ControllergetController(XPathContext c)
    
public static  StringgetPseudoAttribute(XPathContext c, String name)
     Get a pseudo-attribute of a processing instruction.
public static  booleanhasSameNodes(SequenceIterator p1, SequenceIterator p2)
     Determine whether two node-sets contain the same nodes
Parameters:
  p1 - The first node-set.
public static  byte[]hexBinaryToOctets(HexBinaryValue in)
    
public static  StringhexBinaryToString(XPathContext context, HexBinaryValue in, String encoding)
    
public static  Valuehighest(SequenceIterator nsv)
    
public static  SequenceIteratorhighest(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression)
    
public static  SequenceIteratorleading(XPathContext context, SequenceIterator in, Evaluate.PreparedExpression pexp)
    
public static  intlineNumber(XPathContext c)
     Return the line number of the context node.
public static  intlineNumber(NodeInfo node)
     Return the line number of the specified node.
public static  Valuelowest(SequenceIterator nsv)
    
public static  SequenceIteratorlowest(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression)
    
public static  doublemax(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression)
    
public static  doublemin(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression)
    
public static  NodeInfonamespaceNode(XPathContext context, String prefix, String uri)
     Create a parentless namespace node.
public static  Base64BinaryValueoctetsToBase64Binary(byte[] in)
    
public static  HexBinaryValueoctetsToHexBinary(byte[] in)
    
public static  Stringpath(XPathContext c)
    
public static  voidpauseTracing(XPathContext c)
     Switch tracing off.
public static  voidresumeTracing(XPathContext c)
     Resume tracing.
public static  Base64BinaryValuestringToBase64Binary(String in, String encoding)
    
public static  HexBinaryValuestringToHexBinary(String in, String encoding)
    
public static  ListstringToUtf8(String in)
    
public static  doublesum(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression)
    
public static  StringsystemId(XPathContext c)
    
public static  SequenceIteratortokenize(String s)
     Return a node-set by tokenizing a supplied string.
public static  SequenceIteratortokenize(String s, String delim)
     Return a sequence by tokenizing a supplied string.
public static  DocumentInfotransform(XPathContext context, Templates templates, NodeInfo source)
    
public static  StringtypeAnnotation(XPathContext context, NodeInfo node)
    
public static  booleanvalidCharacter(XPathContext c, int in)
    
public static  MonthDurationValueyearMonthDurationFromMonths(double arg)
    



Method Detail
after
public static SequenceIterator after(XPathContext context, SequenceIterator ns1, SequenceIterator ns2) throws XPathException(Code)
Find all the nodes in ns1 that are after the first node in ns2. Return ns1 if ns2 is empty,



base64BinaryToOctets
public static byte[] base64BinaryToOctets(Base64BinaryValue in)(Code)
Convert a base64Binary value to a sequence of integers representing the octets contained in the value



base64BinaryToString
public static String base64BinaryToString(XPathContext context, Base64BinaryValue in, String encoding) throws Exception(Code)
Convert a base64Binary value to a String, assuming a particular encoding



compileStylesheet
public static Templates compileStylesheet(XPathContext context, DocumentInfo doc) throws XPathException(Code)
Compile a document containing a stylesheet module into a stylesheet that can be used to perform transformations



dayTimeDurationFromSeconds
public static SecondsDurationValue dayTimeDurationFromSeconds(double arg) throws XPathException(Code)
Get a dayTimeDuration value corresponding to a given number of seconds



decimalDivide
public static BigDecimal decimalDivide(BigDecimal arg1, BigDecimal arg2, int scale)(Code)
Perform decimal division to a user-specified precision



deepEqual
public static boolean deepEqual(XPathContext context, SequenceIterator arg1, SequenceIterator arg2, String collation, String flags) throws XPathException(Code)
Perform a parameterized deep-equals() test
Parameters:
  context - The evaluation context
Parameters:
  arg1 - The first sequence to be compared
Parameters:
  arg2 - The second sequence to be compared
Parameters:
  collation - The collation to be used (null if the default collation is to be used)
Parameters:
  flags - A string whose characters select options that cause the comparison to vary from thestandard fn:deep-equals() function. The flags are:
  • N - take namespace nodes into account
  • C - take comments into account
  • P - take processing instructions into account
  • w - don't take whitespace-only text nodes into account
true if the sequences are deep equal, otherwise false



discardDocument
public static DocumentInfo discardDocument(XPathContext context, DocumentInfo doc)(Code)
Remove a document from the document pool. The effect is that the document becomes eligible for garbage collection, allowing memory to be released when processing of the document has finished. The downside is that a subsequent call on document() with the same URI causes the document to be reloaded and reparsed, and the new nodes will have different node identity from the old.
Parameters:
  context - the evaluation context (supplied implicitly by the call mechanism)
Parameters:
  doc - the document to be released from the document pool the document that was released. This allows a call such asselect="saxon:discard-document(document('a.xml'))"



getConfiguration
public static Configuration getConfiguration(XPathContext c)(Code)
Return the Configuration object



getContext
public static XPathContext getContext(XPathContext c)(Code)
Return the XPathContext object



getController
public static Controller getController(XPathContext c)(Code)
Return the Controller object



getPseudoAttribute
public static String getPseudoAttribute(XPathContext c, String name) throws XPathException(Code)
Get a pseudo-attribute of a processing instruction. Return an empty string if the pseudo-attribute is not present. Character references and built-in entity references are expanded



hasSameNodes
public static boolean hasSameNodes(SequenceIterator p1, SequenceIterator p2) throws XPathException(Code)
Determine whether two node-sets contain the same nodes
Parameters:
  p1 - The first node-set. The iterator must be correctly ordered.
Parameters:
  p2 - The second node-set. The iterator must be correctly ordered. true if p1 and p2 contain the same set of nodes



hexBinaryToOctets
public static byte[] hexBinaryToOctets(HexBinaryValue in)(Code)
Convert a hexBinary value to a sequence of integers representing the octets contained in the value



hexBinaryToString
public static String hexBinaryToString(XPathContext context, HexBinaryValue in, String encoding) throws Exception(Code)
Convert a hexBinary value to a String, assuming a particular encoding



highest
public static Value highest(SequenceIterator nsv) throws XPathException(Code)
Get the node with maximum numeric value of the string-value of each of a set of nodes



highest
public static SequenceIterator highest(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression) throws XPathException(Code)
Get the maximum numeric value of a stored expression over a set of nodes



leading
public static SequenceIterator leading(XPathContext context, SequenceIterator in, Evaluate.PreparedExpression pexp)(Code)
Get the items that satisfy the given expression, up to and excluding the first one (in sequence order) that doesn't



lineNumber
public static int lineNumber(XPathContext c)(Code)
Return the line number of the context node.



lineNumber
public static int lineNumber(NodeInfo node)(Code)
Return the line number of the specified node.



lowest
public static Value lowest(SequenceIterator nsv) throws XPathException(Code)
Get the node with minimum numeric value of the string-value of each of a set of nodes



lowest
public static SequenceIterator lowest(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression) throws XPathException(Code)
Get the node with minimum numeric value of a stored expression over a set of nodes



max
public static double max(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression) throws XPathException(Code)
Get the maximum numeric value of a stored expression over a set of nodes



min
public static double min(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression) throws XPathException(Code)
Get the minimum numeric value of a stored expression over a set of nodes



namespaceNode
public static NodeInfo namespaceNode(XPathContext context, String prefix, String uri) throws XPathException(Code)
Create a parentless namespace node. This function is useful in XQuery when namespaces need to be created dynamically. The effect is the same as that of the xsl:namespace instruction in XSLT.



octetsToBase64Binary
public static Base64BinaryValue octetsToBase64Binary(byte[] in)(Code)
Convert a sequence of integers in the range 0-255, representing a sequence of octets, to a base64Binary value



octetsToHexBinary
public static HexBinaryValue octetsToHexBinary(byte[] in)(Code)
Convert a sequence of integers in the range 0-255, representing a sequence of octets, to a hexBinary value



path
public static String path(XPathContext c) throws XPathException(Code)
Return an XPath expression that identifies the current node



pauseTracing
public static void pauseTracing(XPathContext c)(Code)
Switch tracing off. Only works if tracing is enabled.



resumeTracing
public static void resumeTracing(XPathContext c)(Code)
Resume tracing. Only works if tracing was originally enabled but is currently paused.



stringToBase64Binary
public static Base64BinaryValue stringToBase64Binary(String in, String encoding) throws UnsupportedEncodingException, IOException(Code)
Convert a string to a base64Binary value in a given encoding



stringToHexBinary
public static HexBinaryValue stringToHexBinary(String in, String encoding) throws Exception(Code)
Convert a string to a hexBinary value in a given encoding



stringToUtf8
public static List stringToUtf8(String in)(Code)
Get the UTF-8 encoding of a string
Parameters:
  in - the supplied string a sequence of integers, each in the range 0-255, representing the octets of the UTF-8encoding of the given string



sum
public static double sum(XPathContext context, SequenceIterator nsv, Evaluate.PreparedExpression pexpression) throws XPathException(Code)
Total a stored expression over a set of nodes



systemId
public static String systemId(XPathContext c) throws XPathException(Code)
Return the system identifier of the context node



tokenize
public static SequenceIterator tokenize(String s)(Code)
Return a node-set by tokenizing a supplied string. Tokens are delimited by any sequence of whitespace characters.



tokenize
public static SequenceIterator tokenize(String s, String delim)(Code)
Return a sequence by tokenizing a supplied string. The argument delim is a String, any character in this string is considered to be a delimiter character, and any sequence of delimiter characters acts as a separator between tokens.



transform
public static DocumentInfo transform(XPathContext context, Templates templates, NodeInfo source) throws XPathException(Code)
Run a transformation to convert an input tree to an output document
Parameters:
  context - The dynamic context
Parameters:
  templates - The compiled stylesheet
Parameters:
  source - The initial context node representing the document to be transformed



typeAnnotation
public static String typeAnnotation(XPathContext context, NodeInfo node)(Code)
Display the value of the type annotation of a node



validCharacter
public static boolean validCharacter(XPathContext c, int in)(Code)
Test whether a given integer is the codepoint of a valid XML character



yearMonthDurationFromMonths
public static MonthDurationValue yearMonthDurationFromMonths(double arg)(Code)
Get a yearMonthDuration value corresponding to a given number of months



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.