public class ServiceData extends PackageItemData
Holds parsed service data from manifest.
metaData, name
Constructor and Description |
---|
ServiceData(java.util.Map<java.lang.String,java.lang.String> attributes,
MetaData metaData,
java.util.List<IntentFilterData> intentFilters) |
Modifier and Type | Method and Description |
---|---|
void |
addAction(java.lang.String action) |
java.util.List<java.lang.String> |
getActions() |
java.util.Map<java.lang.String,java.lang.String> |
getAllAttributes()
Get the map for all attributes defined for the service.
|
java.util.List<IntentFilterData> |
getIntentFilters()
Get the intent filters defined for the service.
|
java.lang.String |
getPermission() |
boolean |
isEnabled() |
boolean |
isExported()
Returns whether this service is exported by checking the XML attribute.
|
void |
setPermission(java.lang.String permission) |
getClassName, getMetaData, getName
public ServiceData(java.util.Map<java.lang.String,java.lang.String> attributes, MetaData metaData, java.util.List<IntentFilterData> intentFilters)
public java.util.List<java.lang.String> getActions()
public void addAction(java.lang.String action)
public void setPermission(java.lang.String permission)
public java.lang.String getPermission()
public java.util.List<IntentFilterData> getIntentFilters()
Get the intent filters defined for the service.
public java.util.Map<java.lang.String,java.lang.String> getAllAttributes()
Get the map for all attributes defined for the service.
public boolean isExported()
Returns whether this service is exported by checking the XML attribute.
public boolean isEnabled()