public final class TargetEnvironment extends Object
Constructor and Description |
---|
TargetEnvironment() |
TargetEnvironment(String os,
String ws,
String arch) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getArch()
Returns the architecture of the represented target environment.
|
String |
getOs()
Returns the operating system of the represented target environment.
|
static TargetEnvironment |
getRunningEnvironment() |
String |
getWs()
Returns the windowing system of the represented target environment.
|
int |
hashCode() |
boolean |
match(String os,
String ws,
String arch) |
String |
toConfigSpec()
Returns the target environment as string of the form
ws.os.arch . |
String |
toFilterExpression()
Returns the target environment as LDAP filter expression.
|
HashMap<String,String> |
toFilterProperties()
Returns the target environment as map.
|
String |
toString() |
public String getOs()
public String getWs()
public String getArch()
public String toConfigSpec()
ws.os.arch
. This format is
used by the p2 publishers and in that context called "configuration" or "config spec".public HashMap<String,String> toFilterProperties()
HashMap
with the target environment setpublic String toFilterExpression()
true
when installing for this target
environment.public static TargetEnvironment getRunningEnvironment()
Copyright © 2008–2022 Eclipse Foundation. All rights reserved.