public class DateFacetParam
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DateFacetParam.DateFacetAction
The 'A' value in: {!T A}[DATA]
o = OnDate, r = RangeDate, p = PreviousDays, & n = NextDays
|
static class |
DateFacetParam.DateFacetType
The 'T' value in: {!T A}[DATA]
!c = CreationDate, !l = LastModifiedDate, & !o = OtherDates
|
Constructor and Description |
---|
DateFacetParam(java.lang.String dateData)
Constructs a DateFacetParam object to be used for date facet search.
|
Modifier and Type | Method and Description |
---|---|
DateFacetParam.DateFacetAction |
getAction()
Get the date facet action: On Date, Range Date, Previous Days, Next Days
|
java.lang.String |
getDate()
Get the date facet data formated for Solr usage.
|
DateFacetParam.DateFacetType |
getType()
Get the date facet type: Creation Date, Last Modified Date, Other Dates
|
boolean |
isValid()
Checks to see if this object contains a valid date or not.
|
void |
setAction(DateFacetParam.DateFacetAction action)
Set the date facet action: On Date, Range Date, Previous Days, Next Days
|
void |
setDate(java.lang.String date)
Set the date facet data for Solr usage.
|
void |
setType(DateFacetParam.DateFacetType type)
Set the date facet type: Creation Date, Last Modified Date, Other Dates
|
java.lang.String |
toString() |
public DateFacetParam(java.lang.String dateData)
dateData
- The date facet syntaxpublic boolean isValid()
public DateFacetParam.DateFacetType getType()
public void setType(DateFacetParam.DateFacetType type)
type
- The date facet type.public DateFacetParam.DateFacetAction getAction()
public void setAction(DateFacetParam.DateFacetAction action)
action
- The date facet action.public java.lang.String getDate()
public void setDate(java.lang.String date)
date
- The date facet data.public java.lang.String toString()
toString
in class java.lang.Object
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.