org.onebusaway.federations.annotations
Class AgencyIdSupport
java.lang.Object
org.onebusaway.federations.annotations.AgencyIdSupport
public class AgencyIdSupport
- extends Object
Support parsing out the agencyId from an "agencyId_entityId" string
representation.
- Author:
- bdferris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgencyIdSupport
public AgencyIdSupport()
getAgencyIdFromEntityId
public static String getAgencyIdFromEntityId(String entityId)
throws InvalidArgumentServiceException
- Parameters:
entityId
-
- Returns:
- the agencyId from an "agencyId_entityId" string representation
- Throws:
InvalidArgumentServiceException
- on a parse error
Copyright © 2012 OneBusAway. All Rights Reserved.