Class TargetEnvironment


  • public final class TargetEnvironment
    extends Object
    • Constructor Detail

      • TargetEnvironment

        public TargetEnvironment()
    • Method Detail

      • getOs

        public String getOs()
        Returns the operating system of the represented target environment.
      • getWs

        public String getWs()
        Returns the windowing system of the represented target environment.
      • getArch

        public String getArch()
        Returns the architecture of the represented target environment.
      • toConfigSpec

        public String toConfigSpec()
        Returns the target environment as string of the form ws.os.arch. This format is used by the p2 publishers and in that context called "configuration" or "config spec".
      • toFilterProperties

        public HashMap<String,​String> toFilterProperties()
        Returns the target environment as map. The keys are "osgi.ws", "osgi.os", and "osgi.arch". This format is used by the p2 slicer to filter installable units by environments.
        Returns:
        a new instance of HashMap with the target environment set
      • toFilterExpression

        public String toFilterExpression()
        Returns the target environment as LDAP filter expression. This format is used in p2 metadata.
        Returns:
        the LDAP that evaluates to true when installing for this target environment.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object