|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.platform.program.PepperProgramConfig
public class PepperProgramConfig
The PepperProgramConfig
class encapsulates the properties of
an individual Pepper package/program.
Field Summary | |
---|---|
static String |
CLASS_NAME
Class Name |
static String |
COVER
Cover |
static String |
DELETABLE
|
static String |
DESCRIPTION
Description |
static String |
DISPLAY_NAME
Display Name |
static String |
DOWNLOAD_DOMAIN_TYPES
|
static String |
ICON
Icon |
static String |
MIME_TYPES
|
static String |
PACKAGE_OWNER
Package owner |
static String |
PACKAGE_OWNER_MAC
MAC for Package owner value |
static String |
PAGES_LIMIT
New pages limit |
static String |
PROGRAM_TYPE
Program Type |
static String |
SECTION
Section |
static String |
SINGLETON
|
static String |
THUMB_IMAGE
Thumb Image |
static String |
TITLE
Title |
static String |
UNIQUE_ID
Unique ID |
static String |
URL
URL |
static String |
VERSION
Version |
Constructor Summary | |
---|---|
PepperProgramConfig(Properties configInfo)
Constructs a new PepperProgramConfig object for this package
with the given parameters. |
Method Summary | |
---|---|
String |
getClassName()
Returns the package's CLASS_NAME property value. |
String |
getCoverPage()
Returns the package's COVER property value. |
String |
getDisplayName()
Returns the package's DISPLAY_NAME property value. |
String |
getIcon()
Returns the package's ICON property value. |
Object |
getObjectProperty(String key)
Get the property as an object |
String |
getPackageOwner()
Returns the package's PackageOwner property value. |
String |
getPackageOwnerMAC()
Returns the package's PackageOwnerMAC property value. |
String |
getPagesLimit()
Returns the package's PagesLimit property value. |
String |
getProgramDescription()
Returns the package's DESCRIPTION property value. |
String |
getProgramType()
Returns the package's PROGRAM_TYPE property value. |
String |
getProgramVersion()
Returns the package's VERSION property value. |
String |
getProperty(String key)
Returns the specified property value for this package. |
String |
getSectionName()
Returns the package's SECTION_NAME property value. |
String |
getThumbImage()
Returns the package's THUMB_IMAGE property value. |
String |
getTitle()
Returns the package's TITLE property value. |
String |
getUniqueId()
Returns the package's UNIQUE_ID property value. |
String |
getURL()
Return the package's URL property value. |
boolean |
isDeletable()
Return true if the package can be deleted. |
boolean |
isSingleton()
Return true if there should only be one instance of the package in a Keeper. |
void |
setClassName(String value)
Sets the package's CLASS_NAME property value. |
void |
setCoverPage(String coverPage)
Sets the package's COVER property value. |
void |
setDisplayName(String value)
Sets the package's DISPLAY_NAME property value. |
void |
setIcon(String imagePath)
Sets the package's ICON property value. |
void |
setObjectProperty(String key,
Object value)
Set the property as an object |
void |
setPackageOwner(String owner)
Set the package's PackageOwner property value. |
void |
setPackageOwnerMAC(String ownerMAC)
Set the package's PackageOwnerMAC property value. |
void |
setProgramDescription(String value)
Sets the package's DESCRIPTION property value. |
void |
setProgramType(String programType)
Sets the package's PROGRAM_TYPE property value. |
void |
setProgramVersion(String value)
Sets the package's VERSION property value. |
void |
setProperties(Properties props)
Sets the properties of this PepperProgramConfig object. |
void |
setProperty(String key,
String value)
Sets a specified property. |
void |
setSectionName(String value)
Sets the package's SECTION_NAME property value. |
void |
setThumbImage(String imagePath)
Sets the package's THUMB_IMAGE property value. |
void |
setTitle(String value)
Sets the package's TITLE property value. |
void |
setUniqueId(String id)
|
void |
setURL(String value)
Sets the package's URL property value. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String TITLE
public static String DISPLAY_NAME
public static String CLASS_NAME
public static String VERSION
public static String DESCRIPTION
public static String ICON
public static String SECTION
public static String URL
public static String COVER
public static String THUMB_IMAGE
public static String UNIQUE_ID
public static String PROGRAM_TYPE
public static String PAGES_LIMIT
public static String PACKAGE_OWNER
public static String PACKAGE_OWNER_MAC
public static String MIME_TYPES
public static String DOWNLOAD_DOMAIN_TYPES
public static String DELETABLE
public static String SINGLETON
Constructor Detail |
---|
public PepperProgramConfig(Properties configInfo)
PepperProgramConfig
object for this package
with the given parameters.
configInfo
- a Properties
object specifying the properties
for the package.Method Detail |
---|
public void setProperties(Properties props)
PepperProgramConfig
object.
props
- a Properties
object specifying the program properties.public void setProperty(String key, String value)
key
- a String
specifying the property key to be set.value
- a String
specifying the new value of the property.public String getSectionName()
String
containing the value of the
package's SECTION
property.public void setSectionName(String value)
value
- a String
containing the value of the
SECTION
property to set.public void setCoverPage(String coverPage)
coverPage
- a String
containing the value of the
COVER
property to set.public String getCoverPage()
String
containing the value of the
package's COVER
property.public String getProperty(String key)
key
- a String
value containing the key name of
the property to retrieve.
String
containing the value of the
specified property for this package.public void setObjectProperty(String key, Object value)
key
- a String
valuevalue
- an Object
valuepublic Object getObjectProperty(String key)
key
- a String
value
Object
valuepublic String getTitle()
String
containing the value of the
package's TITLE
property.public void setTitle(String value)
value
- a String
containing the value of the
TITLE
property to set.public String getDisplayName()
String
containing the value of the
package's DISPLAY_NAME
property.public void setDisplayName(String value)
value
- a String
containing the value of the
DISPLAY_NAME
property to set.public String getClassName()
String
containing the value of the
package's CLASS_NAME
property.public void setClassName(String value)
value
- a String
containing the value of the
CLASS_NAME
property to set.public String getURL()
String
containing the value of the
package's URL
property.public void setURL(String value)
value
- a String
containing the value of the
CLASS_NAME
property to set.public String getProgramVersion()
String
containing the value of the
package's VERSION
property.public void setProgramVersion(String value)
value
- a String
containing the value of the
VERSION
property to set.public String getUniqueId()
String
containing the value of the
package's UNIQUE_ID
property.public void setUniqueId(String id)
public String getProgramDescription()
String
containing the value of the
package's DESCRIPTION
property.public void setProgramDescription(String value)
value
- a String
containing the value of the
DESCRIPTION
property to set.public String getThumbImage()
String
containing the value of the
package's THUMB_IMAGE
property.public void setThumbImage(String imagePath)
imagePath
- a String
containing the value of the
THUMB_IMAGE
property to set.public String getIcon()
String
containing the value of the
package's ICON
property.public void setIcon(String imagePath)
imagePath
- a String
containing the value of the
ICON
property to set.public String getProgramType()
String
containing the value of the
package's PROGRAM_TYPE
property.public void setProgramType(String programType)
programType
- a String
containing the value of the
PROGRAM_TYPE
property to set.public String getPagesLimit()
String
containing the value of the
package's PROGRAM_TYPE
property.public String getPackageOwner()
String
containing the value of the
package's PACKAGE_OWNER
property.public void setPackageOwner(String owner)
owner
- value for the owner.public String getPackageOwnerMAC()
String
containing the value of the
package's PACKAGE_OWNER_MAC
property.public void setPackageOwnerMAC(String ownerMAC)
ownerMAC
- value for the owner.public boolean isDeletable()
public boolean isSingleton()
public String toString()
toString
in class Object
String
value containing the NAME, DESCRIPTION,
VERSION and CLASS properties of this package.AbstractPepperProgram
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |