com.gentics.api.lib.rule
Class LogicalOperator

java.lang.Object
  extended by com.gentics.api.lib.rule.LogicalOperator
All Implemented Interfaces:
Operator

public class LogicalOperator
extends java.lang.Object
implements Operator

Class for logical rule operators


Field Summary
static LogicalOperator OPERATOR_AND
          constant logical AND operator
static LogicalOperator OPERATOR_OR
          constant logical OR operator
static LogicalOperator OPERATOR_UNDEF
          constant logical undefined operator
static int TYPE_AND
          type of the operator AND
static int TYPE_OR
          type of the operator OR
static int TYPE_UNDEF
          type of an undefined logical rule operator
 
Constructor Summary
LogicalOperator(int type)
          create an instance of a logical operator with given type.
 
Method Summary
 int getType()
          get the type of the operator
 java.lang.String toString()
          get a string representation of the logical operator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_UNDEF

public static final int TYPE_UNDEF
type of an undefined logical rule operator

See Also:
Constant Field Values

TYPE_AND

public static final int TYPE_AND
type of the operator AND

See Also:
Constant Field Values

TYPE_OR

public static final int TYPE_OR
type of the operator OR

See Also:
Constant Field Values

OPERATOR_AND

public static final LogicalOperator OPERATOR_AND
constant logical AND operator


OPERATOR_OR

public static final LogicalOperator OPERATOR_OR
constant logical OR operator


OPERATOR_UNDEF

public static final LogicalOperator OPERATOR_UNDEF
constant logical undefined operator

Constructor Detail

LogicalOperator

public LogicalOperator(int type)
create an instance of a logical operator with given type. The type should be one of TYPE_AND,TYPE_ORor TYPE_UNDEF.

Parameters:
type - type of the operator
Method Detail

getType

public int getType()
Description copied from interface: Operator
get the type of the operator

Specified by:
getType in interface Operator
Returns:
type of the operator

toString

public java.lang.String toString()
get a string representation of the logical operator

Overrides:
toString in class java.lang.Object
Returns:
string representation


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.