public class IU extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static String |
NAME |
static String |
NAMESPACE |
static String |
P2_IU_NAMESPACE |
static String |
RANGE |
static String |
SOURCE_FILE_NAME |
static String |
VERSION |
Constructor and Description |
---|
IU(de.pdark.decentxml.Document document,
de.pdark.decentxml.Element element) |
Modifier and Type | Method and Description |
---|---|
void |
addArtifact(String classifier,
String id,
String version) |
void |
addProperty(String name,
String value) |
void |
addSelfCapability() |
List<de.pdark.decentxml.Element> |
getArtifacts() |
String |
getId() |
List<de.pdark.decentxml.Element> |
getProperties() |
List<de.pdark.decentxml.Element> |
getProvidedCapabilites() |
List<de.pdark.decentxml.Element> |
getRequiredCapabilites() |
de.pdark.decentxml.Element |
getSelfArtifact() |
List<de.pdark.decentxml.Element> |
getSelfCapabilities() |
String |
getVersion() |
static IU |
loadIU(File location)
Convenience method to load p2iu.xml file
|
static IU |
read(File file) |
void |
setVersion(String version) |
static void |
write(IU iu,
File file) |
static void |
write(IU iu,
File file,
String indent) |
public static final String SOURCE_FILE_NAME
public static final String ID
public static final String VERSION
public static final String NAMESPACE
public static final String NAME
public static final String RANGE
public static final String P2_IU_NAMESPACE
public IU(de.pdark.decentxml.Document document, de.pdark.decentxml.Element element)
public String getId()
public String getVersion()
public void setVersion(String version)
public List<de.pdark.decentxml.Element> getProvidedCapabilites()
public List<de.pdark.decentxml.Element> getSelfCapabilities()
public void addSelfCapability()
public List<de.pdark.decentxml.Element> getRequiredCapabilites()
public List<de.pdark.decentxml.Element> getProperties()
public List<de.pdark.decentxml.Element> getArtifacts()
public de.pdark.decentxml.Element getSelfArtifact()
public static IU read(File file) throws IOException
IOException
public static IU loadIU(File location)
RuntimeException
- if iu descriptor can not be read or parsed.public static void write(IU iu, File file) throws IOException
IOException
public static void write(IU iu, File file, String indent) throws IOException
IOException
Copyright © 2008–2017 Eclipse Foundation. All rights reserved.