public class ResourcesDesc
extends java.lang.Object
| Constructor and Description | 
|---|
| ResourcesDesc(JNLPFile jnlpFile,
             java.util.Locale[] locales,
             java.lang.String[] os,
             java.lang.String[] arch)Create a representation of one information section of the
 JNLP File. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addResource(java.lang.Object resource)Add a resource. | 
| java.lang.String[] | getArch() | 
| ExtensionDesc[] | getExtensions() | 
| JARDesc[] | getJARs() | 
| JARDesc[] | getJARs(java.lang.String partName) | 
| JNLPFile | getJNLPFile() | 
| JREDesc[] | getJREs() | 
| java.util.Locale[] | getLocales() | 
| JARDesc | getMainJAR() | 
| static JARDesc | getMainJAR(JARDesc[] jars) | 
| static JARDesc | getMainJAR(java.util.List<JARDesc> jars) | 
| java.lang.String[] | getOS() | 
| PackageDesc[] | getPackages() | 
| PackageDesc[] | getPackages(java.lang.String className)Returns the Packages that match the specified class name. | 
| PropertyDesc[] | getProperties() | 
| java.util.Map<java.lang.String,java.lang.String> | getPropertiesMap() | 
| <T> java.util.List<T> | getResources(java.lang.Class<T> type) | 
public ResourcesDesc(JNLPFile jnlpFile, java.util.Locale[] locales, java.lang.String[] os, java.lang.String[] arch)
jnlpFile - JNLP file the resources are forlocales - the locales of these resourcesos - the os of these resourcesarch - the arch of these resourcespublic JREDesc[] getJREs()
public JARDesc getMainJAR()
public JARDesc[] getJARs()
public JARDesc[] getJARs(java.lang.String partName)
partName - the part name, null and "" equivalentpublic ExtensionDesc[] getExtensions()
public PackageDesc[] getPackages()
public PackageDesc[] getPackages(java.lang.String className)
className - the fully qualified class namepublic PropertyDesc[] getProperties()
public java.util.Map<java.lang.String,java.lang.String> getPropertiesMap()
public java.lang.String[] getOS()
public java.lang.String[] getArch()
public java.util.Locale[] getLocales()
public JNLPFile getJNLPFile()
public <T> java.util.List<T> getResources(java.lang.Class<T> type)
T - type of resource to be foundtype - resource to be foundpublic void addResource(java.lang.Object resource)
resource - to be added