org.onebusaway.federations.annotations
Class AgencyIdSupport

java.lang.Object
  extended by org.onebusaway.federations.annotations.AgencyIdSupport

public class AgencyIdSupport
extends Object

Support parsing out the agencyId from an "agencyId_entityId" string representation.

Author:
bdferris

Constructor Summary
AgencyIdSupport()
           
 
Method Summary
static String getAgencyIdFromEntityId(String entityId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgencyIdSupport

public AgencyIdSupport()
Method Detail

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 © 2011 OneBusAway. All Rights Reserved.