netx.jnlp
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()
Returns the architecture required by these resources, or null
if no locale was specified in the JNLP file.
|
ExtensionDesc[] |
getExtensions()
Returns the Extensions.
|
JARDesc[] |
getJARs()
Returns all of the JARs.
|
JARDesc[] |
getJARs(java.lang.String partName)
Returns the JARs with the specified part name.
|
JNLPFile |
getJNLPFile()
Returns the JNLPFile the resources are for.
|
JREDesc[] |
getJREs()
Returns the JVMs.
|
java.util.Locale[] |
getLocales()
Returns the locale required by these resources, or null if no
locale was specified in the JNLP file.
|
JARDesc |
getMainJAR()
Returns the main JAR for these resources.
|
java.lang.String[] |
getOS()
Returns the os required by these resources, or null if no
locale was specified in the JNLP file.
|
PackageDesc[] |
getPackages()
Returns the Packages.
|
PackageDesc[] |
getPackages(java.lang.String className)
Returns the Packages that match the specified class name.
|
PropertyDesc[] |
getProperties()
Returns the Properties as a list.
|
java.util.Map |
getPropertiesMap()
Returns the properties as a map.
|
java.util.List |
getResources(java.lang.Class type)
Returns all resources of the specified 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 getPropertiesMap()
public java.lang.String[] getOS()
public java.lang.String[] getArch()
public java.util.Locale[] getLocales()
public JNLPFile getJNLPFile()
public java.util.List getResources(java.lang.Class type)
public void addResource(java.lang.Object resource)