Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.relations.api.impl
Class RelationDate

java.lang.Object
  extended by org.nuxeo.ecm.platform.relations.api.impl.RelationDate

public class RelationDate
extends Object

Relation date management.

Author:
Anahide Tchertchian

Field Summary
static DateFormat ISO_FORMAT
           
 
Method Summary
static Calendar getCalendar(Literal dateLiteral)
           
static Date getDate(Literal dateLiteral)
           
static Literal getLiteralDate(Calendar cal)
           
static Literal getLiteralDate(Date date)
          Returns Literal for given date.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO_FORMAT

public static final DateFormat ISO_FORMAT
Method Detail

getLiteralDate

public static Literal getLiteralDate(Date date)
Returns Literal for given date.


getLiteralDate

public static Literal getLiteralDate(Calendar cal)
Returns:
Literal for given Calendar instance

getDate

public static Date getDate(Literal dateLiteral)
Returns:
Date instance for given literal.

getCalendar

public static Calendar getCalendar(Literal dateLiteral)
Returns:
Calendar instance for given literal.

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.