public class ValidatePRModel extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BIND_USE |
static String |
DEP_USE |
static String |
PLCHLD_USE |
private ProjectionRulesModel |
prModel |
private Map<String,ValidateInfo> |
validateInfoMap |
static String |
VAR_USE |
Constructor and Description |
---|
ValidatePRModel(ProjectionRulesModel prModel) |
Modifier and Type | Method and Description |
---|---|
private List<String> |
getPlaceholderUsedInGraphElement(GraphElement ge,
boolean localPlchld,
boolean fromBinding,
boolean fromDependency,
boolean variables) |
String |
getValidationInfoAsString(boolean justWarning) |
Map<String,ValidateInfo> |
getValidationTable() |
private void |
initializeInfoTable() |
Map<String,ValidateInfo> |
startValidation(boolean useTabInResponse) |
Map<String,ValidateInfo> |
startValidation(boolean useTabInResponse,
boolean valPlchdlUse,
boolean valVarUse,
boolean valDepUSe,
boolean valBindingUse) |
private void |
validateBindingUse(boolean useTabInResponse) |
private void |
validateDepUse(boolean useTabInResponse) |
private void |
validatePlchldUse(boolean useTabInResponse)
Check if each placeholder defined in a rule it is used at least once inside the rule itself
(in the graph or in the where section) and if each used placeholder is defined.
|
private void |
validateVarUse(boolean useTabInResponse)
Check if all the variable defined in the where section are used in the graph section and if
all variable used in the graph section are defined in the where section
|
public static String PLCHLD_USE
public static String VAR_USE
public static String DEP_USE
public static String BIND_USE
private ProjectionRulesModel prModel
private Map<String,ValidateInfo> validateInfoMap
public ValidatePRModel(ProjectionRulesModel prModel)
private void initializeInfoTable()
public Map<String,ValidateInfo> startValidation(boolean useTabInResponse)
public Map<String,ValidateInfo> startValidation(boolean useTabInResponse, boolean valPlchdlUse, boolean valVarUse, boolean valDepUSe, boolean valBindingUse)
public Map<String,ValidateInfo> getValidationTable()
private void validatePlchldUse(boolean useTabInResponse)
private void validateVarUse(boolean useTabInResponse)
useTabInResponse
- private void validateDepUse(boolean useTabInResponse)
private void validateBindingUse(boolean useTabInResponse)
private List<String> getPlaceholderUsedInGraphElement(GraphElement ge, boolean localPlchld, boolean fromBinding, boolean fromDependency, boolean variables)
public String getValidationInfoAsString(boolean justWarning)
Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.