
org.jsoup.nodes.BooleanAttribute Maven / Gradle / Ivy
package org.jsoup.nodes;
/**
* A boolean attribute that is written out without any value.
* @deprecated just use null values (vs empty string) for booleans.
*/
public class BooleanAttribute extends Attribute {
/**
* Create a new boolean attribute from unencoded (raw) key.
* @param key attribute key
*/
public BooleanAttribute(String key) {
super(key, null);
}
@Override
protected boolean isBooleanAttribute() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy