|
|||||||||||||||||||
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
XPath.java | - | 80% | 80% | 80% |
|
1 |
/* |
|
2 |
* JBind |
|
3 |
* |
|
4 |
* Copyright (c) by Stefan Wachter. All rights reserved. |
|
5 |
* |
|
6 |
* Usage, modification, and redistribution is subject to license terms that are |
|
7 |
* available at 'http://www.jbind.org'. The JBind license is like the |
|
8 |
* 'Apache Software License V 1.1'. |
|
9 |
*/ |
|
10 |
package org.jbind.xml.core.bridge; |
|
11 |
|
|
12 |
public abstract class XPath implements IXPath { |
|
13 |
|
|
14 |
private String myXPath = null; |
|
15 |
|
|
16 | 147 |
public XPath(String anXPath) { |
17 | 147 |
myXPath = anXPath; |
18 |
} |
|
19 |
|
|
20 | 0 |
protected String getXPath() { |
21 | 0 |
return myXPath; |
22 |
} |
|
23 |
|
|
24 | 10 |
public String toString() { |
25 | 10 |
return myXPath; |
26 |
} |
|
27 | 6 |
public String asString() { |
28 | 6 |
return myXPath; |
29 |
} |
|
30 | 16 |
public boolean selectsZeroOrOneNode() { |
31 | 16 |
return ".".equals(myXPath); |
32 |
} |
|
33 |
} |
|
34 |
|
|