public class TimelineUtils
extends java.lang.Object
TimelineUtils, containing useful Timeline utilities.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_SIMPLE_DATE_FORMAT |
static java.lang.String |
POSITION_ABOVE |
static java.lang.String |
POSITION_BELOW |
static java.text.SimpleDateFormat |
SIMPLE_DATE_FORMAT |
| Constructor and Description |
|---|
TimelineUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Element |
findMarker(org.w3c.dom.Element elementRoot) |
static org.w3c.dom.Element |
findTimeAxis(BinderParams binderParams) |
static org.w3c.dom.Element |
findTimeAxis(org.w3c.dom.Element elementRoot) |
static org.w3c.dom.Element |
findTimeline(BinderParams binderParams) |
static org.w3c.dom.Element |
findTimeline(org.w3c.dom.Element elementRoot) |
static org.w3c.dom.Element |
findTimelineItem(BinderParams binderParams) |
static org.w3c.dom.Element |
findTimelineItem(org.w3c.dom.Element elementRoot) |
static org.w3c.dom.Element |
findTimelineOverview(BinderParams binderParams) |
static org.w3c.dom.Element |
findTimelineOverview(org.w3c.dom.Element elementRoot) |
static org.w3c.dom.Element |
findTimelineOverviewMarker(BinderParams binderParams) |
static org.w3c.dom.Element |
findTimelineOverviewMarker(org.w3c.dom.Element elementRoot) |
static org.w3c.dom.Element |
findTimelineOverviewTimeAxis(BinderParams binderParams) |
static org.w3c.dom.Element |
findTimelineOverviewTimeAxis(org.w3c.dom.Element elementRoot) |
static org.w3c.dom.Element |
findTimelineSeries(BinderParams binderParams) |
static org.w3c.dom.Element |
findTimelineSeries(org.w3c.dom.Element elementRoot) |
static java.util.List<org.w3c.dom.Element> |
findTimelineSeriesList(BinderParams binderParams) |
static java.util.List<org.w3c.dom.Element> |
findTimelineSeriesList(org.w3c.dom.Element elementRoot) |
static java.lang.String |
getDateAsString(java.util.Date date)
Formats the specified
Date as a String. |
static java.lang.String |
getOverviewPosition(org.w3c.dom.Element elementRoot)
Determines the position of the Timeline Overview relative to the Timeline Series.
|
static java.util.Date |
getStringAsDate(java.lang.String strDate)
Formats the specified
String as a Date. |
static java.lang.String |
getToday()
Retrieves a
String representation of today's date. |
static boolean |
isRebindTimeAxis(org.w3c.dom.Element elementRoot) |
static boolean |
isRebindTimeline(org.w3c.dom.Element elementRoot) |
static boolean |
isRebindTimelineItem(org.w3c.dom.Element elementRoot) |
static boolean |
isRebindTimelineOverview(org.w3c.dom.Element elementRoot) |
static boolean |
isRebindTimelineOverviewMarker(org.w3c.dom.Element elementRoot) |
static boolean |
isRebindTimelineOverviewTimeAxis(org.w3c.dom.Element elementRoot) |
static boolean |
isRebindTimelineSeries(org.w3c.dom.Element elementRoot) |
static boolean |
isTimelineOverview(org.w3c.dom.Node node) |
static boolean |
isTimelineSeries(org.w3c.dom.Node node) |
static boolean |
isValidDate(java.lang.String strDate)
Determines if the specified date
String is valid based on the default SimpleDateFormat. |
static boolean |
isValidDate(java.lang.String strDate, java.text.SimpleDateFormat simpleDateFormat)
Determines if the specified date
String is valid based on the specified SimpleDateFormat. |
public static final java.lang.String DEFAULT_SIMPLE_DATE_FORMAT
public static final java.text.SimpleDateFormat SIMPLE_DATE_FORMAT
public static final java.lang.String POSITION_ABOVE
public static final java.lang.String POSITION_BELOW
public static boolean isRebindTimeline(org.w3c.dom.Element elementRoot)
public static boolean isRebindTimelineSeries(org.w3c.dom.Element elementRoot)
public static boolean isRebindTimelineItem(org.w3c.dom.Element elementRoot)
public static boolean isRebindTimeAxis(org.w3c.dom.Element elementRoot)
public static boolean isRebindTimelineOverview(org.w3c.dom.Element elementRoot)
public static boolean isRebindTimelineOverviewTimeAxis(org.w3c.dom.Element elementRoot)
public static boolean isRebindTimelineOverviewMarker(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findTimeline(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findTimeline(BinderParams binderParams)
public static org.w3c.dom.Element findTimelineSeries(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findTimelineSeries(BinderParams binderParams)
public static java.util.List<org.w3c.dom.Element> findTimelineSeriesList(org.w3c.dom.Element elementRoot)
public static java.util.List<org.w3c.dom.Element> findTimelineSeriesList(BinderParams binderParams)
public static org.w3c.dom.Element findTimelineOverview(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findMarker(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findTimelineOverview(BinderParams binderParams)
public static org.w3c.dom.Element findTimelineOverviewTimeAxis(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findTimelineOverviewMarker(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findTimelineOverviewTimeAxis(BinderParams binderParams)
public static org.w3c.dom.Element findTimelineOverviewMarker(BinderParams binderParams)
public static org.w3c.dom.Element findTimelineItem(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findTimelineItem(BinderParams binderParams)
public static org.w3c.dom.Element findTimeAxis(org.w3c.dom.Element elementRoot)
public static org.w3c.dom.Element findTimeAxis(BinderParams binderParams)
public static boolean isTimelineSeries(org.w3c.dom.Node node)
public static boolean isTimelineOverview(org.w3c.dom.Node node)
public static java.lang.String getOverviewPosition(org.w3c.dom.Element elementRoot)
elementRoot - A Element represent the root Element to start searching from.String which represents the position of the Timeline Overview relative to the Timeline Series.POSITION_ABOVE, POSITION_BELOWpublic static boolean isValidDate(java.lang.String strDate)
String is valid based on the default SimpleDateFormat.strDate - A String representing the date to verify.boolean which is true when the date is valid and false otherwise.DEFAULT_SIMPLE_DATE_FORMAT
public static boolean isValidDate(java.lang.String strDate,
java.text.SimpleDateFormat simpleDateFormat)
String is valid based on the specified SimpleDateFormat.strDate - A String representing the date to verify.simpleDateFormat - A SimpleDateFormat used to validate the date String.boolean which is true when the date is valid and false otherwise.public static java.lang.String getToday()
String representation of today's date.String representation of today's date.DEFAULT_SIMPLE_DATE_FORMATpublic static java.lang.String getDateAsString(java.util.Date date)
Date as a String.date - A Date to format.String representing the formatted Date.DEFAULT_SIMPLE_DATE_FORMAT, SIMPLE_DATE_FORMATpublic static java.util.Date getStringAsDate(java.lang.String strDate)
String as a Date.strDate - A String representing the date to format.Date representing the formatted String.DEFAULT_SIMPLE_DATE_FORMAT, SIMPLE_DATE_FORMAT