Nuxeo Enterprise Platform 5.4

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 java.lang.Object

Relation date management.

Author:
Anahide Tchertchian

Field Summary
static java.text.DateFormat ISO_FORMAT
           
 
Method Summary
static java.util.Calendar getCalendar(Literal dateLiteral)
           
static java.util.Date getDate(Literal dateLiteral)
           
static Literal getLiteralDate(java.util.Calendar cal)
           
static Literal getLiteralDate(java.util.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 java.text.DateFormat ISO_FORMAT
Method Detail

getLiteralDate

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


getLiteralDate

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

getDate

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

getCalendar

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.