org.jsoup.nodes.BooleanAttribute Maven / Gradle / Ivy
The newest version!
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;
}
}