public class KindTest extends Test
Modifier and Type | Field and Description |
---|---|
static KindTest |
ATT
Generic attribute node test.
|
static KindTest |
COM
Generic comment node test.
|
static KindTest |
DOC
Generic document node test.
|
static KindTest |
ELM
Generic element node test.
|
static KindTest |
NOD
Generic node test.
|
static KindTest |
NSP
Generic namespace node test.
|
static KindTest |
PI
Generic PI node test.
|
static KindTest |
TXT
Generic text node test.
|
Modifier and Type | Method and Description |
---|---|
KindTest |
copy()
Copies this test.
|
boolean |
equals(Object obj) |
static KindTest |
get(NodeType type)
Returns a test instance.
|
boolean |
instanceOf(Test test)
Checks if the current test is an instance of the specified test.
|
Test |
intersect(Test test)
Computes the intersection between two tests.
|
boolean |
matches(ANode node)
Checks if the specified node matches the test.
|
String |
toString(boolean full)
Returns a string representation of this test.
|
get, get, get, matches, noMatches, plan, plan
description, toErrorString, toString
public static final KindTest DOC
public static final KindTest ELM
public static final KindTest ATT
public static final KindTest PI
public static final KindTest TXT
NodeType.TEXT
tests exist.public static final KindTest COM
NodeType.COMMENT
tests exist.public static final KindTest NSP
NodeType.COMMENT
tests exist.public static final KindTest NOD
NodeType.NODE
tests exist.public static KindTest get(NodeType type)
type
- node typepublic boolean matches(ANode node)
Test
public boolean instanceOf(Test test)
Test
instanceOf
in class Test
test
- test to be checkedpublic Test intersect(Test test)
Test
Copyright © 2005–2023 BaseX Team. All rights reserved.