Class ExtractedParameterValue
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.dto.ExtractedParameterValue
-
- All Implemented Interfaces:
java.lang.Comparable<ExtractedParameterValue>
- Direct Known Subclasses:
CompositeParmVal
,DateParmVal
,LocationParmVal
,NumberParmVal
,QuantityParmVal
,ReferenceParmVal
,StringParmVal
,TokenParmVal
public abstract class ExtractedParameterValue extends java.lang.Object implements java.lang.Comparable<ExtractedParameterValue>
A search parameter value extracted from a resource and ready to store / index for search
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExtractedParameterValue()
Protected constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorint
compareTo(ExtractedParameterValue o)
protected abstract int
compareToInner(ExtractedParameterValue o)
Additional extracted parameter value comparisions when the same class.java.util.Set<java.lang.String>
getCompartments()
java.lang.String
getName()
java.lang.String
getResourceType()
Getter for the parameter's resource typejava.lang.String
getUrl()
java.lang.String
getVersion()
boolean
isCompartmentInclusionParam()
boolean
isForStoring()
boolean
isWholeSystem()
void
setCompartments(java.util.Set<java.lang.String> compartments)
void
setForStoring(boolean isForStoring)
void
setName(java.lang.String name)
void
setResourceType(java.lang.String resourceType)
Setter for the parameter's resource typevoid
setUrl(java.lang.String url)
void
setVersion(java.lang.String version)
void
setWholeSystem(boolean wholeSystem)
-
-
-
Method Detail
-
getResourceType
public java.lang.String getResourceType()
Getter for the parameter's resource type- Returns:
-
setResourceType
public void setResourceType(java.lang.String resourceType)
Setter for the parameter's resource type- Parameters:
resourceType
-
-
accept
public abstract void accept(ExtractedParameterValueVisitor visitor) throws FHIRPersistenceException
We know our type, so we can call the correct method on the visitor- Throws:
FHIRPersistenceException
-
isWholeSystem
public boolean isWholeSystem()
- Returns:
- the wholeSystem
-
setWholeSystem
public void setWholeSystem(boolean wholeSystem)
- Parameters:
wholeSystem
- the wholeSystem to set
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public void setName(java.lang.String name)
- Parameters:
name
- the name to set
-
getUrl
public java.lang.String getUrl()
- Returns:
- the url
-
setUrl
public void setUrl(java.lang.String url)
- Parameters:
url
- the url to set
-
getVersion
public java.lang.String getVersion()
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.String version)
- Parameters:
version
- the version to set
-
compareTo
public int compareTo(ExtractedParameterValue o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ExtractedParameterValue>
-
compareToInner
protected abstract int compareToInner(ExtractedParameterValue o)
Additional extracted parameter value comparisions when the same class.- Parameters:
o
- an extracted parameter value to compare to- Returns:
- a negative integer, zero, or a positive integer as this extracted parameter value is less than, equal to, or greater than the specified extracted parameter value.
-
isForStoring
public boolean isForStoring()
- Returns:
- whether this extracted parameter value is for storing
-
setForStoring
public void setForStoring(boolean isForStoring)
- Parameters:
isForStoring
- whether this extracted parameter value is for storing
-
isCompartmentInclusionParam
public boolean isCompartmentInclusionParam()
- Returns:
- whether this extracted value is an inclusion criteria for one or more compartment
-
getCompartments
public java.util.Set<java.lang.String> getCompartments()
- Returns:
- the potential compartments this parameter value could target if this is a compartment inclusion criteria parameter; otherwise empty
-
setCompartments
public void setCompartments(java.util.Set<java.lang.String> compartments)
- Parameters:
compartments
- the potential compartments this parameter value could target if this is a compartment inclusion criteria parameter; never null
-
-