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

    public IntegerRule(TypeRule.ComparisonOperator operator, long value) {
        this.operator = operator;
        this.operand = value;
    }

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

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

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