
jodd.csselly.Combinator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xml-stream-css Show documentation
Show all versions of xml-stream-css Show documentation
Stream Xml using StAX and Css matcher
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.csselly;
/**
* CSS selector combinators.
*/
public enum Combinator {
/**
* Describes an arbitrary descendant of some ancestor element
*/
DESCENDANT(" "),
/**
* Describes a childhood relationship between two elements.
*/
CHILD(">"),
/**
* The elements represented by the two sequences share the same parent
* in the document tree and the element represented by the first sequence
* immediately precedes the element represented by the second one.
*/
ADJACENT_SIBLING("+"),
/**
* The elements represented by the two sequences share the same parent
* in the document tree and the element represented by the first sequence
* precedes (not necessarily immediately) the element represented by the second one.
*/
GENERAL_SIBLING("~");
Combinator(String sign) {
this.sign = sign;
}
private final String sign;
/**
* Returns combinator sign.
*/
public String getSign() {
return sign;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy