Package org.robolectric.manifest
Class ServiceData
- java.lang.Object
-
- org.robolectric.manifest.PackageItemData
-
- org.robolectric.manifest.ServiceData
-
public class ServiceData extends PackageItemData
Holds parsed service data from manifest.
-
-
Field Summary
-
Fields inherited from class org.robolectric.manifest.PackageItemData
metaData, name
-
-
Constructor Summary
Constructors Constructor Description ServiceData(Map<String,String> attributes, MetaData metaData, List<IntentFilterData> intentFilters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAction(String action)
List<String>
getActions()
Map<String,String>
getAllAttributes()
Get the map for all attributes defined for the service.List<IntentFilterData>
getIntentFilters()
Get the intent filters defined for the service.String
getPermission()
boolean
isEnabled()
boolean
isExported()
Returns whether this service is exported by checking the XML attribute.void
setPermission(String permission)
-
Methods inherited from class org.robolectric.manifest.PackageItemData
getClassName, getMetaData, getName
-
-
-
-
Method Detail
-
addAction
public void addAction(String action)
-
setPermission
public void setPermission(String permission)
-
getPermission
public String getPermission()
-
getIntentFilters
public List<IntentFilterData> getIntentFilters()
Get the intent filters defined for the service.- Returns:
- A list of intent filters.
-
getAllAttributes
public Map<String,String> getAllAttributes()
Get the map for all attributes defined for the service.- Returns:
- map of attributes names to values from the manifest.
-
isExported
public boolean isExported()
Returns whether this service is exported by checking the XML attribute.- Returns:
- true if the service is exported
-
isEnabled
public boolean isEnabled()
-
-