BooleanRule.java 628 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xmp.schema.model.rules;

import com.adobe.xmp.schema.model.SchemaVisitor;
import com.adobe.xmp.schema.model.TypeRule;
import com.adobe.xmp.schema.model.XMPSchemaException;

public class BooleanRule
implements TypeRule {
    private static final long serialVersionUID = 1;
    private boolean operand;

    public BooleanRule(boolean value) {
        this.operand = value;
    }

    public boolean getOperand() {
        return this.operand;
    }

    public void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException {
        schemaVisitor.visit(this);
    }
}