|
||||||||||
| 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 java.lang.String |
ATTRIBUTE_FRAGMENT
|
protected static java.lang.String |
ATTRIBUTE_ID
|
protected static java.lang.String |
ATTRIBUTE_VERSION
|
protected java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> |
fragments
|
protected java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> |
plugins
|
| Constructor Summary | |
|---|---|
ProductFile(java.lang.String location)
Constructs a product file parser. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
java.lang.String |
getApplication()
Returns the application identifier for this product. |
java.util.List<org.eclipse.equinox.frameworkadmin.BundleInfo> |
getBundleInfos()
Returns a List |
java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> |
getBundles(boolean includeFragments)
Returns a List |
java.lang.String |
getConfigIniPath()
|
java.lang.String |
getConfigIniPath(java.lang.String os)
|
java.util.Map<java.lang.String,java.lang.String> |
getConfigurationProperties()
Returns the properties found in .product file. |
java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> |
getFeatures()
Returns a List |
java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> |
getFragments()
Returns a list |
java.lang.String[] |
getIcons(java.lang.String os)
|
java.lang.String |
getId()
Returns the ID for this product. |
java.lang.String |
getLauncherName()
Gets the name of the launcher specified in the .product file. |
java.lang.String |
getLicenseText()
|
java.lang.String |
getLicenseURL()
|
java.io.File |
getLocation()
Gets the location of the .product file. |
java.lang.String |
getProductId()
|
java.lang.String |
getProductName()
Returns the product name. |
java.lang.String |
getProgramArguments(java.lang.String os)
Returns the program arguments for a specific platform. |
java.lang.String |
getSplashLocation()
Returns the location (the bundle) that defines the splash screen |
java.lang.String |
getVersion()
Returns the version of the product |
java.lang.String |
getVMArguments(java.lang.String os)
Returns the VM arguments for a specific platform. |
protected void |
processPlugin(org.xml.sax.Attributes attributes)
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.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 java.lang.String ATTRIBUTE_FRAGMENT
protected static final java.lang.String ATTRIBUTE_VERSION
protected static final java.lang.String ATTRIBUTE_ID
protected java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> plugins
protected java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> fragments
| Constructor Detail |
|---|
public ProductFile(java.lang.String location)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public java.lang.String getLauncherName()
getLauncherName in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.io.File getLocation()
getLocation in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.util.Map<java.lang.String,java.lang.String> getConfigurationProperties()
getConfigurationProperties in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.util.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 java.util.List<org.eclipse.equinox.frameworkadmin.BundleInfo> getBundleInfos()
getBundleInfos in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> getFragments()
getFragments in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> getFeatures()
getFeatures in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String[] getIcons(java.lang.String os)
getIcons in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getConfigIniPath(java.lang.String os)
getConfigIniPath in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getConfigIniPath()
public java.lang.String getId()
getId in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getProductId()
getProductId in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getSplashLocation()
getSplashLocation in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getProductName()
getProductName in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.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 java.lang.String getVersion()
getVersion in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getVMArguments(java.lang.String os)
getVMArguments in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getProgramArguments(java.lang.String os)
getProgramArguments in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getLicenseText()
getLicenseText in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptorpublic java.lang.String getLicenseURL()
getLicenseURL in interface org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptor
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerprotected void processPlugin(org.xml.sax.Attributes attributes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||