public static String mapSimpleDatatype(PrimitiveType type) { if (type.compareTo(PrimitiveType.STRING) ==0) { return "String"; } else if (type.compareTo(PrimitiveType.DATETIME)==0) { return "java.util.Date"; } else { return type.getLiteral(); } }
public static String mapSimpleDatatype(PrimitiveType type) { if (type.compareTo(PrimitiveType.STRING) ==0) { return "String"; } else if (type.compareTo(PrimitiveType.DATETIME)==0) { return "java.util.Date"; } else { return type.getLiteral(); } }
public static String mapSimpleDatatype(PrimitiveType type) { if (type.compareTo(PrimitiveType.STRING) == 0) { return "String"; } else if (type.compareTo(PrimitiveType.DATETIME) == 0) { return "java.util.Date"; } else if (type.compareTo(PrimitiveType.BASE64_BINARY) == 0) { return "byte[]"; } else { return type.getLiteral(); } }
public final boolean checkPropertyConstraints(final PrimitiveType type, final Constraint cons) { boolean _xblockexpression = false; { String _literal = type.getLiteral(); String[] arr = this.valueTypeMap.get(_literal); boolean _or = false; boolean _equals = Objects.equal(arr, null); if (_equals) { _or = true; } else { final String[] _converted_arr = (String[])arr; ConstraintIntervalType _type = cons.getType(); String _literal_1 = _type.getLiteral(); boolean _contains = ((List<String>)Conversions.doWrapArray(_converted_arr)).contains(_literal_1); boolean _not = (!_contains); _or = _not; } if (_or) { this.setErrorMessage(DatatypeSystemMessage.ERROR_CONSTRAINTTYPE_INVALID); return false; } _xblockexpression = true; } return _xblockexpression; }
g.writeStringField("name", _name_1); PrimitiveType _type = ((PrimitiveParam) currentParam).getType(); String paramType = _type.getLiteral(); String _thingWorxDataType = this.getThingWorxDataType(paramType); g.writeStringField("baseType", _thingWorxDataType);
public static String mapSimpleDatatype(PropertyType type) { if (type instanceof ObjectPropertyType) { return "String"; } else { PrimitivePropertyType primitiveType = (PrimitivePropertyType) type; if (primitiveType.getType().compareTo(PrimitiveType.STRING) == 0) { return "String"; } else if (primitiveType.getType().compareTo(PrimitiveType.DATETIME) == 0) { return "java.util.Date"; } else { return primitiveType.getType().getLiteral(); } } }
String typeStr = type.getLiteral(); boolean _matched = false; if (!_matched) {
protected String getResultBaseType(final Operation operation) { boolean _and = false; ReturnType _returnType = operation.getReturnType(); boolean _notEquals = (!Objects.equal(_returnType, null)); if (!_notEquals) { _and = false; } else { ReturnType _returnType_1 = operation.getReturnType(); _and = (_returnType_1 instanceof ReturnPrimitiveType); } if (_and) { ReturnType _returnType_2 = operation.getReturnType(); boolean _isMultiplicity = _returnType_2.isMultiplicity(); boolean _equals = (_isMultiplicity == false); if (_equals) { ReturnType primitiveType = operation.getReturnType(); PrimitiveType _returnType_3 = ((ReturnPrimitiveType) primitiveType).getReturnType(); String typeName = _returnType_3.getLiteral(); return this.getThingWorxDataType(typeName); } else { return "COMPLEX_TYPE"; } } else { return "NOTHING"; } }