All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jodd.csselly.Combinator Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// 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