org.apache.shindig.gadgets.spec
Class ApplicationManifest

java.lang.Object
  extended by org.apache.shindig.gadgets.spec.ApplicationManifest

public class ApplicationManifest
extends Object

Represents an opensocial application manifest.


Field Summary
static String NAMESPACE
           
 
Constructor Summary
ApplicationManifest(Uri uri, Element xml)
           
 
Method Summary
 Uri getGadget(String version)
           
 Uri getUri()
           
 String getVersion(String label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values
Constructor Detail

ApplicationManifest

public ApplicationManifest(Uri uri,
                           Element xml)
                    throws SpecParserException
Throws:
SpecParserException
Method Detail

getUri

public Uri getUri()
Returns:
The URI of this manifest.

getGadget

public Uri getGadget(String version)
Returns:
The gadget specified for the version string, or null if the version doesn't exist.

getVersion

public String getVersion(String label)
Returns:
The version of the gadget for the given label, or null if the label is unsupported.


Copyright © 2007-2012. All Rights Reserved.