Package org.eclipse.tycho.model
Class IU
- java.lang.Object
-
- org.eclipse.tycho.model.IU
-
public class IU extends Object
-
-
Constructor Summary
Constructors Constructor Description IU(de.pdark.decentxml.Document document, de.pdark.decentxml.Element element)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArtifact(String classifier, String id, String version)voidaddProperty(String name, String value)voidaddSelfCapability()List<de.pdark.decentxml.Element>getArtifacts()StringgetId()List<de.pdark.decentxml.Element>getProperties()List<de.pdark.decentxml.Element>getProvidedCapabilites()List<de.pdark.decentxml.Element>getRequiredCapabilites()de.pdark.decentxml.ElementgetSelfArtifact()List<de.pdark.decentxml.Element>getSelfCapabilities()StringgetVersion()static IUloadIU(File location)Convenience method to load p2iu.xml filestatic IUread(File file)voidsetVersion(String version)static voidwrite(IU iu, File file)static voidwrite(IU iu, File file, String indent)
-
-
-
Field Detail
-
SOURCE_FILE_NAME
public static final String SOURCE_FILE_NAME
- See Also:
- Constant Field Values
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
RANGE
public static final String RANGE
- See Also:
- Constant Field Values
-
P2_IU_NAMESPACE
public static final String P2_IU_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getProvidedCapabilites
public List<de.pdark.decentxml.Element> getProvidedCapabilites()
-
getSelfCapabilities
public List<de.pdark.decentxml.Element> getSelfCapabilities()
-
addSelfCapability
public void addSelfCapability()
-
getRequiredCapabilites
public List<de.pdark.decentxml.Element> getRequiredCapabilites()
-
getProperties
public List<de.pdark.decentxml.Element> getProperties()
-
getArtifacts
public List<de.pdark.decentxml.Element> getArtifacts()
-
getSelfArtifact
public de.pdark.decentxml.Element getSelfArtifact()
-
read
public static IU read(File file) throws IOException
- Throws:
IOException
-
loadIU
public static IU loadIU(File location)
Convenience method to load p2iu.xml file- Throws:
RuntimeException- if iu descriptor can not be read or parsed.
-
write
public static void write(IU iu, File file) throws IOException
- Throws:
IOException
-
write
public static void write(IU iu, File file, String indent) throws IOException
- Throws:
IOException
-
-