RealRule.java 837 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 RealRule
implements TypeRule {
    private static final long serialVersionUID = 1;
    private TypeRule.ComparisonOperator operator;
    private double operand;

    public RealRule(TypeRule.ComparisonOperator operator, double operand) {
        this.operator = operator;
        this.operand = operand;
    }

    public TypeRule.ComparisonOperator getOperator() {
        return this.operator;
    }

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

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