01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.algebra;
07:
08: /**
09: * Checks whether a language tag (e.g. "en-US") matches some language range
10: * (e.g. "en" or "*").
11: */
12: public class LangMatches extends BinaryValueOperator {
13:
14: /*--------------*
15: * Constructors *
16: *--------------*/
17:
18: public LangMatches() {
19: }
20:
21: public LangMatches(ValueExpr leftArg, ValueExpr rightArg) {
22: super (leftArg, rightArg);
23: }
24:
25: /*---------*
26: * Methods *
27: *---------*/
28:
29: public <X extends Exception> void visit(QueryModelVisitor<X> visitor)
30: throws X {
31: visitor.meet(this );
32: }
33:
34: @Override
35: public LangMatches clone() {
36: return (LangMatches) super.clone();
37: }
38: }
|