com.pepper.platform.program
Class PackageInfo

java.lang.Object
  extended by com.pepper.platform.program.PackageInfo

public class PackageInfo
extends Object

Object to encapsulate Package information Copyright (c) 2003-2005 Pepper Computer, Inc. All Rights Reserved. PEPPER PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.

Since:
3.2

Constructor Summary
PackageInfo(org.jdom.Element el)
          Constructor
 
Method Summary
 String getDescription()
          Get the description of the package as defined in the ppld file
 List getMimeTypes()
          Get the mimeTypes supported by the application
 String getName()
          Get the name of the package
 String getPackageId()
          Get the packageId
 String getPPLDURL()
          Get the url to the packages's ppld file
 String getThumbPath()
          Get the relative path to thumbnail icon (data/thumbnails/Web-0/foo.png).
 String getType()
          Get the type of the package as defined in the ppld file
 String[] makeParams()
          Get a String[] suitable to use with LaunchPackage action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageInfo

public PackageInfo(org.jdom.Element el)
Constructor

Parameters:
el - The program element found in package.xml
Method Detail

getDescription

public String getDescription()
Get the description of the package as defined in the ppld file

Returns:
The package's description from the ppld file

getMimeTypes

public List getMimeTypes()
Get the mimeTypes supported by the application

Returns:
List of Strings representing mimeTypes supported by application

getPackageId

public String getPackageId()
Get the packageId

Returns:
String representing the package id

getPPLDURL

public String getPPLDURL()
Get the url to the packages's ppld file

Returns:
String representing the ppld url

getName

public String getName()
Get the name of the package

Returns:
String representing the package's name

getType

public String getType()
Get the type of the package as defined in the ppld file

Returns:
String representing the package type

getThumbPath

public String getThumbPath()
Get the relative path to thumbnail icon (data/thumbnails/Web-0/foo.png). Use program.getDataDir() + "/" + getThumbPath() for absolute path

Returns:
String representing relative path the package's thumbnail icon

makeParams

public String[] makeParams()
Get a String[] suitable to use with LaunchPackage action.

Returns:
String[] representing ppldURL, packageId, thumbPath, packageName


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.