public class KiWiDateLiteral extends KiWiStringLiteral
content| Constructor and Description | 
|---|
KiWiDateLiteral()  | 
KiWiDateLiteral(org.joda.time.DateTime dateContent,
               KiWiUriResource type)  | 
KiWiDateLiteral(org.joda.time.DateTime dateContent,
               KiWiUriResource type,
               Date created)  | 
| Modifier and Type | Method and Description | 
|---|---|
XMLGregorianCalendar | 
calendarValue()
Returns the  
XMLGregorianCalendar value of this literal. | 
boolean | 
equals(Object o)
A separate equalsContent method for checking whether literals are equal in their content; we cannot override
 the .equals function with this because it would break the system in cases where the same content is used in
 different literals. 
 | 
String | 
getContent()
Return the content of the literal, using the parametrized Java type 
 | 
org.joda.time.DateTime | 
getDateContent()  | 
String | 
getLabel()
Gets the label of this literal. 
 | 
void | 
setContent(String content)
Set the content of the literal to the content provided as parameter. 
 | 
void | 
setDateContent(org.joda.time.DateTime dateContent)  | 
booleanValue, byteValue, decimalValue, doubleValue, floatValue, getDatatype, getLanguage, getLocale, getType, hashCode, integerValue, intValue, isAnonymousResource, isLiteral, isUriResource, longValue, setLocale, setType, shortValue, stringValue, toStringgetCreated, getId, setCreated, setIdpublic KiWiDateLiteral()
public KiWiDateLiteral(org.joda.time.DateTime dateContent,
               KiWiUriResource type)
public KiWiDateLiteral(org.joda.time.DateTime dateContent,
               KiWiUriResource type,
               Date created)
public org.joda.time.DateTime getDateContent()
public void setDateContent(org.joda.time.DateTime dateContent)
public String getContent()
getContent in class KiWiStringLiteralpublic void setContent(String content)
setContent in class KiWiStringLiteralcontent - public String getLabel()
getLabel in interface org.openrdf.model.LiteralgetLabel in class KiWiLiteralpublic XMLGregorianCalendar calendarValue()
XMLGregorianCalendar value of this literal. A calendar
 representation can be given for literals whose label conforms to the
 syntax of the following XML
 Schema datatypes: dateTime, time,
 date, gYearMonth, gMonthDay,
 gYear, gMonth or gDay.calendarValue in interface org.openrdf.model.LiteralcalendarValue in class KiWiLiteralIllegalArgumentException - If the literal cannot be represented by a
                                  XMLGregorianCalendar.public boolean equals(Object o)
equals in interface org.openrdf.model.Literalequals in class KiWiLiteralo - Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.