public class Expression
extends java.lang.Object
implements java.io.Serializable
Title: Expression
Description: Holds expression for a rule set, where an expression consists of an entity name, entity id, and list of conditions.
Copyright: Copyright (c) 2002
Company: Appian Corporation
Modifier and Type | Field and Description |
---|---|
static java.lang.Long |
ENTITY_TYPE_ID_USER |
static java.lang.String |
ENTITY_TYPE_NAME_USER |
Constructor and Description |
---|
Expression()
Default no-arg constructor.
|
Expression(java.lang.Long entityTypeId,
java.lang.String entityTypeName,
Condition[] conditions)
Constructor that receives the entity type id, name and a list of conditions.
|
Modifier and Type | Method and Description |
---|---|
Condition[] |
getConditions()
Gets the list of conditions.
|
java.lang.Long |
getEntityTypeId()
Gets the entityTypeId of this expression.
|
java.lang.String |
getEntityTypeName()
Gets the entity type name of this expression.
|
void |
setConditions(Condition[] conditions)
Sets the list of conditions.
|
void |
setEntityTypeId(java.lang.Long entityTypeId)
Sets the entityTypeId of this expression.
|
void |
setEntityTypeName(java.lang.String entityTypeName)
Sets the entity type name for this expression.
|
java.lang.String |
toString() |
public static final java.lang.String ENTITY_TYPE_NAME_USER
public static final java.lang.Long ENTITY_TYPE_ID_USER
public Expression()
public Expression(java.lang.Long entityTypeId, java.lang.String entityTypeName, Condition[] conditions)
entityTypeId
- Id of the entity type of this expression. @see #getEntityTypeId().entityTypeName
- Name of the entity type of this expression. @see #getEntityTypeName().conditions
- List of conditions that form this expression.public java.lang.String getEntityTypeName()
entityTypeName
depends on the type of expression.
For user expressions the value is the string ENTITY_TYPE_NAME_USER
,
whereas for group types the value is the name of the group type.public void setEntityTypeName(java.lang.String entityTypeName)
entityTypeName
- Name of the entity type.getEntityTypeName()
public void setConditions(Condition[] conditions)
conditions
- The list of conditions to set.public Condition[] getConditions()
public void setEntityTypeId(java.lang.Long entityTypeId)
entityTypeId
- The entityTypeId to set.getEntityTypeId()
public java.lang.Long getEntityTypeId()
ENTITY_TYPE_ID_USER
, whereas for group types it
corresponds to the group type id.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.