Class CompareValue
java.lang.Object
de.captaingoldfish.scim.sdk.server.filter.antlr.CompareValue
author Pascal Knueppel
created at: 16.10.2019 - 12:39
this class contains the value of an
created at: 16.10.2019 - 12:39
this class contains the value of an
AttributeExpressionLeaf. It is used to check what type of value
was parsed and to get the value in the desired type-
Constructor Summary
ConstructorsConstructorDescriptionCompareValue(ScimFilterParser.CompareValueContext compareValueContext, SchemaAttribute schemaAttribute) -
Method Summary
-
Constructor Details
-
CompareValue
public CompareValue(ScimFilterParser.CompareValueContext compareValueContext, SchemaAttribute schemaAttribute) - Parameters:
compareValueContext- the antlr context for this valueschemaAttribute- the attributes meta information
-
-
Method Details
-
isNull
public boolean isNull()- Returns:
- if this value is null
-
isNumber
public boolean isNumber()- Returns:
- if this value is a parsable number
-
isString
public boolean isString()- Returns:
- if this value is a string value. String value includes also dateTime values. So if
isDateTime()evaluates to true then this method will also evaluate to true
-
isDateTime
public boolean isDateTime()- Returns:
- if this value is a valid dateTime value
-
isBoolean
public boolean isBoolean()- Returns:
- if this value is of type boolean
-
getBooleanValue
- Returns:
- gets this node as boolean if it is a boolean
-
getNumberValue
- Returns:
- gets this node as double if it is a double
-
getStringValue
- Returns:
- gets this node as string value if it is a string
-
getDateTime
- Returns:
- gets this node as dateTime if it is a dateTime
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getValue
this is used as display variable for thetoString()method. It holds the value of the context
-