it.uniroma2.art.coda.projectionrule
Class IfElseStruct

java.lang.Object
  extended by it.uniroma2.art.coda.projectionrule.IfElseStruct

public class IfElseStruct
extends java.lang.Object


Constructor Summary
IfElseStruct(java.lang.String condType, java.lang.String value, boolean isValueAUimaTypeAndFeat, PlaceholderStruct condAlias, java.lang.String condOper, java.lang.String condValue)
           
 
Method Summary
 PlaceholderStruct getCondAlias()
          Get the Alias of the condition
 java.lang.String getCondOper()
          Get the boolean operator of the condition
 java.lang.String getCondType()
          Get the type of the condition
 java.lang.String getCondValue()
          Get the value (uimaTypeAndFeat or URI) of the condition
 java.lang.String getOntoResUri()
          Get the uri of the resource of the ontology.
 java.lang.String getUimaTypeAndFeat()
          Get the uimaTypeTypeAndFeat.
 boolean isElse()
          Check if the type is "Else"
 boolean isUimaTypeAndFeatSet()
          Check if the value is a uimaTypeAndFeat
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfElseStruct

public IfElseStruct(java.lang.String condType,
                    java.lang.String value,
                    boolean isValueAUimaTypeAndFeat,
                    PlaceholderStruct condAlias,
                    java.lang.String condOper,
                    java.lang.String condValue)
Parameters:
condType - the conditional type ("if", "else if" or "else")
value - the uimaTypeAndFeat or the uri of resource in the ontology
isValueAUimaTypeAndFeat - true if the value is a uimaTypeAndFeat, false for a uri of a resource of an ontology
condAlias - the alias of the condition or null for the "else" type
condOper - the operator of the condition or null for the "else" type
condValue - the value of the condition or null for the "else" type
Method Detail

getCondType

public java.lang.String getCondType()
Get the type of the condition

Returns:
the type of the condition

isUimaTypeAndFeatSet

public boolean isUimaTypeAndFeatSet()
Check if the value is a uimaTypeAndFeat

Returns:
true if the value is a uimaTypeAndFeat false otherwise

getUimaTypeAndFeat

public java.lang.String getUimaTypeAndFeat()
Get the uimaTypeTypeAndFeat. This should be used only if isUimaTypeAndFeatSet() returns true

Returns:
the uimaTypeAndFeat

getOntoResUri

public java.lang.String getOntoResUri()
Get the uri of the resource of the ontology. This should be used only if isUimaTypeAndFeatSet() returns false

Returns:
the uri of the resource of the ontology

getCondAlias

public PlaceholderStruct getCondAlias()
Get the Alias of the condition

Returns:
the alias of the condition

getCondOper

public java.lang.String getCondOper()
Get the boolean operator of the condition

Returns:
the boolean operator of the condition

isElse

public boolean isElse()
Check if the type is "Else"

Returns:
true of the type is "Else", false otherwise

getCondValue

public java.lang.String getCondValue()
Get the value (uimaTypeAndFeat or URI) of the condition

Returns:
the value (uimaTypeAndFeat or URI) of the condition