Package de.undercouch.citeproc.csl
Class CSLDate
- java.lang.Object
-
- de.undercouch.citeproc.csl.CSLDate
-
- All Implemented Interfaces:
JsonObject
public class CSLDate extends Object implements JsonObject
A citation date.- Author:
- Michel Kraemer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static CSLDatefromJson(Map<String,Object> obj)Converts a JSON object to a CSLDate object.BooleangetCirca()int[][]getDateParts()StringgetLiteral()StringgetRaw()StringgetSeason()inthashCode()ObjecttoJson(JsonBuilder builder)Converts this object to a JSON object
-
-
-
Method Detail
-
getDateParts
public int[][] getDateParts()
- Returns:
- the date's date-parts
-
getSeason
public String getSeason()
- Returns:
- the date's season
-
getCirca
public Boolean getCirca()
- Returns:
- the date's circa
-
getLiteral
public String getLiteral()
- Returns:
- the date's literal
-
getRaw
public String getRaw()
- Returns:
- the date's raw
-
toJson
public Object toJson(JsonBuilder builder)
Description copied from interface:JsonObjectConverts this object to a JSON object- Specified by:
toJsonin interfaceJsonObject- Parameters:
builder- a builder that can be used to perform the conversion- Returns:
- the JSON object
-
fromJson
public static CSLDate fromJson(Map<String,Object> obj)
Converts a JSON object to a CSLDate object.- Parameters:
obj- the JSON object to convert- Returns:
- the converted CSLDate object
-
-