Java Doc for AbstractPattern.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » xpath » pattern » 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 » EJB Server resin 3.1.5 » resin » com.caucho.xpath.pattern 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.xpath.pattern.AbstractPattern

All known Subclasses:   com.caucho.xpath.pattern.NodeTypePattern,  com.caucho.xpath.pattern.FilterPattern,  com.caucho.xpath.pattern.NamespacePattern,  com.caucho.xpath.pattern.Axis,  com.caucho.xpath.pattern.FromExpr,  com.caucho.xpath.pattern.NodePattern,  com.caucho.xpath.pattern.NSNamePattern,  com.caucho.xpath.pattern.UnionPattern,
AbstractPattern
abstract public class AbstractPattern (Code)
A node selection pattern. AbstractPatterns represent compiled XPath node selectors. They can be used to find nodes, select nodes, and test if a node matches a pattern.

There are two types of patterns: select patterns and match patterns.

Select patterns match a node relative to another node. find and select use select patterns.

Match patterns match a node in isolation. isMatch uses match patterns.



Field Summary
final public static  StringXMLNS
    
protected  AbstractPattern_child
    
protected  AbstractPattern_parent
    
final protected static  Loggerlog
    

Constructor Summary
 AbstractPattern(AbstractPattern parent)
    

Method Summary
public  AbstractPatterncopyAxis()
     Returns the owning axis for the pattern.
public  AbstractPatterncopyPosition()
     Returns the position matching pattern.
public  intcount(Node node, Env env, AbstractPattern pattern)
     Returns the number of nodes in its context for a match pattern.
public  NodeIteratorcreateNodeIterator(Node node, ExprEnvironment env, AbstractPattern pattern)
     Creates a new node iterator.
public  NodefindAny(Node node, ExprEnvironment env)
     Find any node matching the pattern.
public  NodefirstNode(Node node, ExprEnvironment env)
     Returns the first node in the selection order.
public  StringgetNodeName()
     Returns the name of the matching node or '*' if many nodes match.
public  AbstractPatterngetParent()
     Returns the parent pattern.
protected  StringgetPrefix()
     For string conversion, returns the string prefix corresponding to the parents.
public  doublegetPriority()
     Returns the pattern's default priority as defined by the XSLT draft.
public  booleanisAscending()
     Return true if the iterator is in document-order.
 booleanisSingleLevel()
     Returns true if the pattern returns nodes on a single level.
 booleanisSingleSelect()
    
public  booleanisStrictlyAscending()
     Returns true if the pattern is strictly ascending.
public  booleanisUnique()
     Returns true if the pattern's iterator returns unique nodes.
public  NodelastNode(Node node)
     Returns the last node in the selection order.
abstract public  booleanmatch(Node node, ExprEnvironment env)
     The core match function test if the pattern matches the node.
Parameters:
  node - the node to test
Parameters:
  env - the variable environment.
public  NodenextNode(Node node, Node last)
     Returns the next node in the selection order.
public  intposition(Node node, Env env, AbstractPattern pattern)
     Returns the position of the node in its context for a match pattern.
public  NodeIteratorselect(Node node, ExprEnvironment env)
     Returns an iterator selecting nodes in document order.
Parameters:
  node - the starting node.
Parameters:
  env - the variable environment.
public  NodeIteratorselectUnique(Node node, ExprEnvironment env)
     Returns an iterator selecting unique nodes.
public  StringtoPatternString()
    

Field Detail
XMLNS
final public static String XMLNS(Code)



_child
protected AbstractPattern _child(Code)



_parent
protected AbstractPattern _parent(Code)



log
final protected static Logger log(Code)




Constructor Detail
AbstractPattern
AbstractPattern(AbstractPattern parent)(Code)




Method Detail
copyAxis
public AbstractPattern copyAxis()(Code)
Returns the owning axis for the pattern.



copyPosition
public AbstractPattern copyPosition()(Code)
Returns the position matching pattern.



count
public int count(Node node, Env env, AbstractPattern pattern) throws XPathException(Code)
Returns the number of nodes in its context for a match pattern.
Parameters:
  node - the current node
Parameters:
  env - the variable environment
Parameters:
  pattern - the position pattern the count of nodes in the match selection



createNodeIterator
public NodeIterator createNodeIterator(Node node, ExprEnvironment env, AbstractPattern pattern) throws XPathException(Code)
Creates a new node iterator.
Parameters:
  node - the starting node
Parameters:
  env - the variable environment
Parameters:
  pattern - the level pattern the node iterator



findAny
public Node findAny(Node node, ExprEnvironment env) throws XPathException(Code)
Find any node matching the pattern.
Parameters:
  node - the current node
Parameters:
  env - the xpath environment one of the matching nodes



firstNode
public Node firstNode(Node node, ExprEnvironment env) throws XPathException(Code)
Returns the first node in the selection order.
Parameters:
  node - the current node
Parameters:
  variable - environment the first node



getNodeName
public String getNodeName()(Code)
Returns the name of the matching node or '*' if many nodes match.

The Xsl package uses this to speed template matching.




getParent
public AbstractPattern getParent()(Code)
Returns the parent pattern.



getPrefix
protected String getPrefix()(Code)
For string conversion, returns the string prefix corresponding to the parents.



getPriority
public double getPriority()(Code)
Returns the pattern's default priority as defined by the XSLT draft.



isAscending
public boolean isAscending()(Code)
Return true if the iterator is in document-order.



isSingleLevel
boolean isSingleLevel()(Code)
Returns true if the pattern returns nodes on a single level.



isSingleSelect
boolean isSingleSelect()(Code)
Returns true if the pattern selects a single node



isStrictlyAscending
public boolean isStrictlyAscending()(Code)
Returns true if the pattern is strictly ascending.



isUnique
public boolean isUnique()(Code)
Returns true if the pattern's iterator returns unique nodes.



lastNode
public Node lastNode(Node node)(Code)
Returns the last node in the selection order.
Parameters:
  node - the current node the last node



match
abstract public boolean match(Node node, ExprEnvironment env) throws XPathException(Code)
The core match function test if the pattern matches the node.
Parameters:
  node - the node to test
Parameters:
  env - the variable environment. true if the node matches the pattern.



nextNode
public Node nextNode(Node node, Node last) throws XPathException(Code)
Returns the next node in the selection order.
Parameters:
  node - the current node
Parameters:
  last - the last node the next node



position
public int position(Node node, Env env, AbstractPattern pattern) throws XPathException(Code)
Returns the position of the node in its context for a match pattern.
Parameters:
  node - the current node
Parameters:
  env - the variable environment
Parameters:
  pattern - the position pattern the node's position.



select
public NodeIterator select(Node node, ExprEnvironment env) throws XPathException(Code)
Returns an iterator selecting nodes in document order.
Parameters:
  node - the starting node.
Parameters:
  env - the variable environment. an iterator selecting nodes in document order.



selectUnique
public NodeIterator selectUnique(Node node, ExprEnvironment env) throws XPathException(Code)
Returns an iterator selecting unique nodes. The nodes are not necessarily in document order.
Parameters:
  node - the starting node.
Parameters:
  env - the variable environment.
Parameters:
  context - the context node. an iterator selecting unique nodes.



toPatternString
public String toPatternString()(Code)



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.