001package org.jsoup.nodes;
002
003/**
004 * A boolean attribute that is written out without any value.
005 * @deprecated just use null values (vs empty string) for booleans.
006 */
007public class BooleanAttribute extends Attribute {
008    /**
009     * Create a new boolean attribute from unencoded (raw) key.
010     * @param key attribute key
011     */
012    public BooleanAttribute(String key) {
013        super(key, null);
014    }
015
016    @Override
017    protected boolean isBooleanAttribute() {
018        return true;
019    }
020}