Class BundleInfo
- java.lang.Object
-
- org.apache.sling.testing.clients.osgi.BundleInfo
-
public class BundleInfo extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BundleInfo(org.codehaus.jackson.JsonNode root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCategory()
int
getId()
java.lang.String
getName()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
java.lang.String
getProperty(java.lang.String key)
Returns the value of a specific key in the bundleBundle.Status
getStatus()
java.lang.String
getSymbolicName()
java.lang.String
getVersion()
boolean
isFragment()
Returns the indicator if the bundle is a fragment
-
-
-
Constructor Detail
-
BundleInfo
public BundleInfo(org.codehaus.jackson.JsonNode root) throws ClientException
- Throws:
ClientException
-
-
Method Detail
-
getId
public int getId()
- Returns:
- the bundle identifier
-
getName
public java.lang.String getName()
- Returns:
- the bundle name
-
getVersion
public java.lang.String getVersion()
- Returns:
- the bundle version
-
isFragment
public boolean isFragment()
Returns the indicator if the bundle is a fragment- Returns:
true
if bundle is a fragment,false
otherwise.
-
getStatus
public Bundle.Status getStatus()
- Returns:
- the bundle current state
-
getSymbolicName
public java.lang.String getSymbolicName()
- Returns:
- the bundle symbolic name
-
getCategory
public java.lang.String getCategory()
- Returns:
- the category of the bundle
-
getProperty
public java.lang.String getProperty(java.lang.String key)
Returns the value of a specific key in the bundle- Parameters:
key
- the property to search- Returns:
- a specific bundle property
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Returns:
- the bundle properties in a
Map
-
-