|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.onebusaway.siri.core.SiriLibrary
public class SiriLibrary
SIRI utility functions
Constructor Summary | |
---|---|
SiriLibrary()
|
Method Summary | ||
---|---|---|
static Siri |
copy(Siri payload)
|
|
static
|
copyList(List<T> from,
List<T> to)
|
|
static void |
copyServiceDelivery(AbstractServiceDeliveryStructure from,
AbstractServiceDeliveryStructure to)
|
|
static AbstractServiceDeliveryStructure |
deepCopyModuleDelivery(ESiriModuleType moduleType,
AbstractServiceDeliveryStructure from)
|
|
static Map<String,String> |
getLineAsMap(String line)
|
|
static
|
getServiceDeliveriesForModule(ServiceDelivery serviceDelivery,
ESiriModuleType moduleType)
|
|
static
|
getServiceRequestsForModule(ServiceRequest serviceRequest,
ESiriModuleType moduleType)
|
|
static
|
getSubscriptionRequestsForModule(SubscriptionRequest subscriptionRequest,
ESiriModuleType moduleType)
|
|
static
|
grep(Iterable<T> elements,
String propertyPathExpression,
Object equalityValue)
|
|
static boolean |
isSituationClosed(PtSituationElementStructure situation)
Determine if the specified situation is closed according to its workflow status. |
|
static boolean |
isSituationExpired(PtSituationElementStructure situation,
Date currentTime)
Determine if the specified situation is expired, as indicated by the publication windows and validity periods of the situation all ending before the current time. |
|
static boolean |
isSituationPublishedOrValid(PtSituationElementStructure situation,
Date currentTime)
Determine if the specified situation is active, as indicated by the publication windows and validity periods of the situation and the current time. |
|
static boolean |
isTimeRangeActive(HalfOpenTimestampRangeStructure range,
Date time)
Returns true if the the specified time range is active at the specified time. |
|
static boolean |
isTimeRangeActiveOrUpcoming(HalfOpenTimestampRangeStructure range,
Date time)
Returns true if the specified time range is active at the specified time or will become active at some point in the future. |
|
static boolean |
needsHelp(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SiriLibrary()
Method Detail |
---|
public static <T extends AbstractServiceRequestStructure> List<T> getServiceRequestsForModule(ServiceRequest serviceRequest, ESiriModuleType moduleType)
public static <T extends AbstractSubscriptionStructure> List<T> getSubscriptionRequestsForModule(SubscriptionRequest subscriptionRequest, ESiriModuleType moduleType)
public static <T extends AbstractServiceDeliveryStructure> List<T> getServiceDeliveriesForModule(ServiceDelivery serviceDelivery, ESiriModuleType moduleType)
public static <T> List<T> grep(Iterable<T> elements, String propertyPathExpression, Object equalityValue)
public static Siri copy(Siri payload)
public static AbstractServiceDeliveryStructure deepCopyModuleDelivery(ESiriModuleType moduleType, AbstractServiceDeliveryStructure from)
public static void copyServiceDelivery(AbstractServiceDeliveryStructure from, AbstractServiceDeliveryStructure to)
public static <T> void copyList(List<T> from, List<T> to)
public static boolean isSituationClosed(PtSituationElementStructure situation)
situation
-
public static boolean isSituationExpired(PtSituationElementStructure situation, Date currentTime)
situation
- currentTime
-
public static boolean isSituationPublishedOrValid(PtSituationElementStructure situation, Date currentTime)
situation
- currentTime
-
public static boolean isTimeRangeActive(HalfOpenTimestampRangeStructure range, Date time)
range
- time
-
public static boolean isTimeRangeActiveOrUpcoming(HalfOpenTimestampRangeStructure range, Date time)
range
- time
-
public static Map<String,String> getLineAsMap(String line)
public static boolean needsHelp(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |