
com.couchbase.client.java.query.dsl.path.AbstractPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
The official Couchbase Java SDK
package com.couchbase.client.java.query.dsl.path;
import com.couchbase.client.java.query.dsl.element.Element;
/**
* .
*
* @author Michael Nitschinger
*/
public abstract class AbstractPath implements Path {
private Element element;
private AbstractPath parent;
protected AbstractPath(AbstractPath parent) {
this.parent = parent;
}
private String render() {
StringBuilder sb = new StringBuilder();
if (parent != null) {
sb.append(parent.render()).append(" ");
}
if (element != null) {
sb.append(element.export());
}
return sb.toString();
}
protected void element(Element element) {
this.element = element;
}
@Override
public String toString() {
return render().trim();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy