org.mule.el.datetime
Class AbstractInstant

java.lang.Object
  extended by org.mule.el.datetime.AbstractInstant
All Implemented Interfaces:
Instant
Direct Known Subclasses:
DateTime

public abstract class AbstractInstant
extends Object
implements Instant


Field Summary
protected  Calendar calendar
           
protected static DatatypeFactory datatypeFactory
           
protected  Locale locale
           
 
Constructor Summary
AbstractInstant(Calendar calendar, Locale locale)
           
 
Method Summary
 Instant changeTimeZone(String newTimezone)
           
 boolean equals(Object obj)
           
 String format()
           
 String format(String pattern)
           
 String getTimeZone()
           
 boolean isAfter(Instant date)
           
 boolean isBefore(Instant date)
           
 Calendar toCalendar()
           
 Date toDate()
           
 XMLGregorianCalendar toXMLCalendar()
           
 Instant withLocale(String locale)
           
 Instant withTimeZone(String newTimezone)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locale

protected Locale locale

calendar

protected Calendar calendar

datatypeFactory

protected static final DatatypeFactory datatypeFactory
Constructor Detail

AbstractInstant

public AbstractInstant(Calendar calendar,
                       Locale locale)
Method Detail

isBefore

public boolean isBefore(Instant date)
Specified by:
isBefore in interface Instant

isAfter

public boolean isAfter(Instant date)
Specified by:
isAfter in interface Instant

format

public String format()
Specified by:
format in interface Instant

format

public String format(String pattern)
Specified by:
format in interface Instant

getTimeZone

public String getTimeZone()
Specified by:
getTimeZone in interface Instant

withTimeZone

public Instant withTimeZone(String newTimezone)
Specified by:
withTimeZone in interface Instant

changeTimeZone

public Instant changeTimeZone(String newTimezone)
Specified by:
changeTimeZone in interface Instant

withLocale

public Instant withLocale(String locale)
Specified by:
withLocale in interface Instant

toCalendar

public Calendar toCalendar()
Specified by:
toCalendar in interface Instant

toDate

public Date toDate()
Specified by:
toDate in interface Instant

toXMLCalendar

public XMLGregorianCalendar toXMLCalendar()
                                   throws DatatypeConfigurationException
Specified by:
toXMLCalendar in interface Instant
Throws:
DatatypeConfigurationException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.