|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
copied.org.eclipse.equinox.internal.p2.publisher.eclipse.ProductFile
public class ProductFile
Used to parse a .product file.
| Field Summary | |
|---|---|
protected static String |
ATTRIBUTE_FRAGMENT
|
protected static String |
ATTRIBUTE_ID
|
protected static String |
ATTRIBUTE_VERSION
|
protected List<org.eclipse.equinox.p2.metadata.IVersionedId> |
fragments
|
protected List<org.eclipse.equinox.p2.metadata.IVersionedId> |
plugins
|
| Constructor Summary | |
|---|---|
ProductFile(String location)
Constructs a product file parser. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(String uri,
String localName,
String qName)
|
String |
getApplication()
Returns the application identifier for this product. |
List<org.eclipse.equinox.frameworkadmin.BundleInfo> |
getBundleInfos()
Returns a List |
List<org.eclipse.equinox.p2.metadata.IVersionedId> |
getBundles(boolean includeFragments)
Returns a List |
String |
getConfigIniPath()
|
String |
getConfigIniPath(String os)
|
Map<String,String> |
getConfigurationProperties()
Returns the properties found in .product file. |
List<org.eclipse.equinox.p2.metadata.IVersionedId> |
getFeatures()
Returns a List |
List<org.eclipse.equinox.p2.metadata.IVersionedId> |
getFragments()
Returns a list |
String[] |
getIcons(String os)
|
String |
getId()
Returns the ID for this product. |
String |
getLauncherName()
Gets the name of the launcher specified in the .product file. |
String |
getLicenseText()
|
String |
getLicenseURL()
|
File |
getLocation()
Gets the location of the .product file. |
String |
getProductId()
|
String |
getProductName()
Returns the product name. |
String |
getProgramArguments(String os)
Returns the program arguments for a specific platform. |
String |
getSplashLocation()
Returns the location (the bundle) that defines the splash screen |
String |
getVersion()
Returns the version of the product |
String |
getVMArguments(String os)
Returns the VM arguments for a specific platform. |
protected void |
processPlugin(Attributes attributes)
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
boolean |
useFeatures()
Returns true if this product is built using feature, false otherwise. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String ATTRIBUTE_FRAGMENT
protected static final String ATTRIBUTE_VERSION
protected static final String ATTRIBUTE_ID
protected List<org.eclipse.equinox.p2.metadata.IVersionedId> plugins
protected List<org.eclipse.equinox.p2.metadata.IVersionedId> fragments
| Constructor Detail |
|---|
public ProductFile(String location)
throws Exception
Exception| Method Detail |
|---|
public String getLauncherName()
getLauncherName in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic File getLocation()
getLocation in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic Map<String,String> getConfigurationProperties()
getConfigurationProperties in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic List<org.eclipse.equinox.p2.metadata.IVersionedId> getBundles(boolean includeFragments)
getBundles in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorincludeFragments - Indicates whether or not fragments should
be included in the listpublic List<org.eclipse.equinox.frameworkadmin.BundleInfo> getBundleInfos()
getBundleInfos in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic List<org.eclipse.equinox.p2.metadata.IVersionedId> getFragments()
getFragments in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic List<org.eclipse.equinox.p2.metadata.IVersionedId> getFeatures()
getFeatures in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String[] getIcons(String os)
getIcons in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getConfigIniPath(String os)
getConfigIniPath in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getConfigIniPath()
public String getId()
getId in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getProductId()
getProductId in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getSplashLocation()
getSplashLocation in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getProductName()
getProductName in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getApplication()
getApplication in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic boolean useFeatures()
useFeatures in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getVersion()
getVersion in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getVMArguments(String os)
getVMArguments in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getProgramArguments(String os)
getProgramArguments in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getLicenseText()
getLicenseText in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic String getLicenseURL()
getLicenseURL in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptor
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandler
public void endElement(String uri,
String localName,
String qName)
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerprotected void processPlugin(Attributes attributes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||