Search in sources :

Example 1 with OperatingSystemTypeType

use of org.ggf.schemas.jsdl.x2005.x11.jsdl.OperatingSystemTypeType 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());
    }
}
Also used : OperatingSystemTypeType(org.ggf.schemas.jsdl.x2005.x11.jsdl.OperatingSystemTypeType) OperatingSystemType(org.ggf.schemas.jsdl.x2005.x11.jsdl.OperatingSystemType)

Aggregations

OperatingSystemType (org.ggf.schemas.jsdl.x2005.x11.jsdl.OperatingSystemType)1 OperatingSystemTypeType (org.ggf.schemas.jsdl.x2005.x11.jsdl.OperatingSystemTypeType)1