public class XcalUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XcalUtil.DtTzid |
static class |
XcalUtil.TzGetter
Class allowing fetch of timezones
|
| Modifier and Type | Field and Description |
|---|---|
static Integer |
AlarmKind |
static Integer |
OuterKind |
static Integer |
RecurringKind |
static Integer |
TzDaylight |
static Integer |
TzKind |
static Integer |
TzStandard |
static Integer |
UidKind |
| Constructor and Description |
|---|
XcalUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ietf.params.xml.ns.icalendar_2.BaseComponentType |
cloneComponent(ietf.params.xml.ns.icalendar_2.BaseComponentType comp) |
static ietf.params.xml.ns.icalendar_2.BaseParameterType |
cloneProperty(ietf.params.xml.ns.icalendar_2.BaseParameterType param) |
static ietf.params.xml.ns.icalendar_2.BasePropertyType |
cloneProperty(ietf.params.xml.ns.icalendar_2.BasePropertyType prop) |
static ietf.params.xml.ns.icalendar_2.BaseComponentType |
findComponent(ietf.params.xml.ns.icalendar_2.BaseComponentType bcPar,
QName name) |
static ietf.params.xml.ns.icalendar_2.BaseComponentType |
findComponent(ietf.params.xml.ns.icalendar_2.IcalendarType ical,
QName name) |
static ietf.params.xml.ns.icalendar_2.BaseComponentType |
findEntity(ietf.params.xml.ns.icalendar_2.IcalendarType ical) |
static ietf.params.xml.ns.icalendar_2.BaseParameterType |
findParam(ietf.params.xml.ns.icalendar_2.BasePropertyType prop,
QName name)
Searches the property for the named parameter.
|
static ietf.params.xml.ns.icalendar_2.BasePropertyType |
findProperty(ietf.params.xml.ns.icalendar_2.BaseComponentType bcPar,
QName name)
Searches this entity for the named property.
|
static XMLGregorianCalendar |
fromDtval(String dtval) |
static int |
getCompKind(QName name) |
static QName |
getCompName(Class cl) |
static List<JAXBElement<? extends ietf.params.xml.ns.icalendar_2.BaseComponentType>> |
getComponents(ietf.params.xml.ns.icalendar_2.BaseComponentType c)
Get enclosed components for the supplied component.
|
static XcalUtil.DtTzid |
getDtTzid(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType dt) |
static String |
getIcalFormatDateTime(String dt) |
static String |
getIcalFormatDateTime(XMLGregorianCalendar dt) |
static String |
getIcalFormatTime(String tm) |
static String |
getIcalUtcOffset(String tm) |
static String |
getUTC(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType dt,
XcalUtil.TzGetter tzs)
For date only values and floating convert to local UTC.
|
static String |
getXmlFormatDateTime(String val) |
static String |
getXmlFormatTime(String val) |
static String |
getXmlFormatUtcOffset(String val) |
static XMLGregorianCalendar |
getXMlUTCCal(String dtval) |
static void |
initDt(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType dt,
String dtval,
String tzid)
Initialize the DateDatetimeProperty
|
static void |
initUntilRecur(ietf.params.xml.ns.icalendar_2.UntilRecurType dt,
String dtval)
Initialize the recur property
|
static Duration |
makeXmlDuration(String dur) |
public static final Integer OuterKind
public static final Integer RecurringKind
public static final Integer UidKind
public static final Integer AlarmKind
public static final Integer TzKind
public static final Integer TzDaylight
public static final Integer TzStandard
public static void initDt(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType dt,
String dtval,
String tzid)
throws Throwable
dt - dtval - tzid - Throwablepublic static void initUntilRecur(ietf.params.xml.ns.icalendar_2.UntilRecurType dt,
String dtval)
throws Throwable
dt - dtval - Throwablepublic static XMLGregorianCalendar fromDtval(String dtval) throws Throwable
dtval - Throwablepublic static Duration makeXmlDuration(String dur) throws Throwable
dur - Throwablepublic static XMLGregorianCalendar getXMlUTCCal(String dtval) throws Throwable
dtval - Throwablepublic static String getUTC(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType dt, XcalUtil.TzGetter tzs) throws Throwable
dt - tzs - Throwablepublic static XcalUtil.DtTzid getDtTzid(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType dt)
dt - public static String getXmlFormatDateTime(String val)
val - ical format or xml format date or datetimepublic static String getIcalFormatDateTime(XMLGregorianCalendar dt)
dt - public static String getIcalFormatDateTime(String dt)
dt - public static String getXmlFormatTime(String val)
val - ical format or xml format timepublic static String getIcalFormatTime(String tm)
tm - to convertpublic static String getIcalUtcOffset(String tm)
tm - public static String getXmlFormatUtcOffset(String val)
val - ical format or xml format date or datetimepublic static ietf.params.xml.ns.icalendar_2.BaseComponentType cloneComponent(ietf.params.xml.ns.icalendar_2.BaseComponentType comp)
throws Throwable
comp - Throwable - for illegal access exceptionpublic static ietf.params.xml.ns.icalendar_2.BasePropertyType cloneProperty(ietf.params.xml.ns.icalendar_2.BasePropertyType prop)
throws Throwable
prop - Throwable - for illegal access exceptionpublic static ietf.params.xml.ns.icalendar_2.BaseParameterType cloneProperty(ietf.params.xml.ns.icalendar_2.BaseParameterType param)
throws Throwable
param - Throwable - for illegal access exceptionpublic static ietf.params.xml.ns.icalendar_2.BaseComponentType findComponent(ietf.params.xml.ns.icalendar_2.IcalendarType ical,
QName name)
ical - name - public static List<JAXBElement<? extends ietf.params.xml.ns.icalendar_2.BaseComponentType>> getComponents(ietf.params.xml.ns.icalendar_2.BaseComponentType c)
c - public static ietf.params.xml.ns.icalendar_2.BaseComponentType findComponent(ietf.params.xml.ns.icalendar_2.BaseComponentType bcPar,
QName name)
bcPar - name - public static ietf.params.xml.ns.icalendar_2.BaseComponentType findEntity(ietf.params.xml.ns.icalendar_2.IcalendarType ical)
ical - public static ietf.params.xml.ns.icalendar_2.BasePropertyType findProperty(ietf.params.xml.ns.icalendar_2.BaseComponentType bcPar,
QName name)
bcPar - name - public static ietf.params.xml.ns.icalendar_2.BaseParameterType findParam(ietf.params.xml.ns.icalendar_2.BasePropertyType prop,
QName name)
prop - name - public static int getCompKind(QName name)
name - Copyright © 2016 Bedework. All rights reserved.