org.eclipse.tycho.model
Class Feature
java.lang.Object
org.eclipse.tycho.model.Feature
public class Feature
- extends Object
http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/reference/misc/
feature_manifest.html
|
Constructor Summary |
Feature(de.pdark.decentxml.Document document)
|
Feature(Feature other)
copy constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FEATURE_XML
public static final String FEATURE_XML
- See Also:
- Constant Field Values
Feature
public Feature(de.pdark.decentxml.Document document)
Feature
public Feature(Feature other)
- copy constructor
getPlugins
public List<PluginRef> getPlugins()
setVersion
public void setVersion(String version)
getIncludedFeatures
public List<FeatureRef> getIncludedFeatures()
getRequires
public List<Feature.RequiresRef> getRequires()
getVersion
public String getVersion()
getId
public String getId()
setId
public void setId(String id)
getBrandingPluginId
public String getBrandingPluginId()
setBrandingPluginId
public void setBrandingPluginId(String id)
getLicenseFeature
public String getLicenseFeature()
setLicenseFeature
public void setLicenseFeature(String featureId)
getLicenseFeatureVersion
public String getLicenseFeatureVersion()
setLicenseFeatureVersion
public void setLicenseFeatureVersion(String version)
read
public static Feature read(File file)
throws IOException
- Throws:
IOException
read
public static Feature read(InputStream input)
throws IOException
- Throws:
IOException
write
public static void write(Feature feature,
File file)
throws IOException
- Throws:
IOException
write
public static void write(Feature feature,
File file,
String indent)
throws IOException
- Throws:
IOException
readJar
public static Feature readJar(File file)
throws IOException
- Throws:
IOException
loadFeature
public static Feature loadFeature(File location)
- Convenience method to load feature.xml file from either feature jar file or directory.
- Throws:
RuntimeException - if feature descriptor can not be read or parsed.
addPlugin
public void addPlugin(PluginRef plugin)
addFeatureRef
public void addFeatureRef(FeatureRef feature)
getLabel
public String getLabel()
setLabel
public void setLabel(String label)
getProvider
public String getProvider()
setProvider
public void setProvider(String provider)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getDescriptionURL
public String getDescriptionURL()
setDescriptionURL
public void setDescriptionURL(String descriptionURL)
getCopyright
public String getCopyright()
setCopyright
public void setCopyright(String description)
getCopyrightURL
public String getCopyrightURL()
setCopyrightURL
public void setCopyrightURL(String copyrightURL)
getLicense
public String getLicense()
setLicense
public void setLicense(String license)
getLicenseURL
public String getLicenseURL()
setLicenseURL
public void setLicenseURL(String licenseURL)
Copyright © 2008-2013 Eclipse Foundation. All Rights Reserved.