Class IU

java.lang.Object
org.eclipse.tycho.model.IU

public class IU extends Object
  • Field Details

  • Constructor Details

    • IU

      public IU(de.pdark.decentxml.Document document, de.pdark.decentxml.Element element)
  • Method Details

    • 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()
    • addProperty

      public void addProperty(String name, String value)
    • getArtifacts

      public List<de.pdark.decentxml.Element> getArtifacts()
    • addArtifact

      public void addArtifact(String classifier, String id, String version)
    • 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