use of org.ggf.schemas.jsdl.x2005.x11.jsdl.OperatingSystemType in project airavata by apache.
the class JSDLUtils method setOperatingSystemRequirements.
public static void setOperatingSystemRequirements(JobDefinitionType value, OSRequirement osType) {
if (osType == null || osType.getOSType() == null)
return;
OperatingSystemType os_Type = getOrCreateOperatingSystem(value);
OperatingSystemTypeType ostt = os_Type.addNewOperatingSystemType();
ostt.setOperatingSystemName(OperatingSystemTypeEnumeration.Enum.forString(osType.getOSType().getValue()));
if (osType.getOSVersion() != null) {
os_Type.setOperatingSystemVersion(osType.getOSVersion());
}
}
Aggregations