@Override protected DateTimeProperty create() { return new DateTimeProperty(); } },
private Object getAttribute(final DateTimeProperty prop, final String attr) { Object _xblockexpression = null; { List<String> _switchResult = null; if (attr != null) { switch (attr) { case "enum": _switchResult = prop.getEnum(); break; } } final List<String> value = _switchResult; Object _elvis = null; if (value != null) { _elvis = value; } else { Object _attribute = this.getAttribute(((AbstractProperty) prop), attr); _elvis = _attribute; } _xblockexpression = _elvis; } return _xblockexpression; }
@Override protected boolean isType(String type, String format) { return DateTimeProperty.isType(type, format); }
defProperty = stringProperty; } else if (BluePrintConstants.DATA_TYPE_TIMESTAMP.equals(propertyDefinition.getType())) { DateTimeProperty dateTimeProperty = new DateTimeProperty(); dateTimeProperty.setFormat("date-time"); defProperty = dateTimeProperty; } else {
public DateTimeProperty example(String example) { this.setExample(example); return this; }
for(String value : values) { try { p._enum(value);
private Model addNewProperties(Model model, Representation rep) { if (rep instanceof DefaultRepresentation || rep instanceof FullRepresentation) { ((ModelImpl) model) .property("deathdateEstimated", new BooleanProperty()._default(false)) .property("birthtime", new DateTimeProperty()); } return model; }
List<String> enums = ((DateTimeProperty) property).getEnum(); if( enums != null && !enums.isEmpty()) { output = new StringExample(enums.get(0));
property = new DateTimeProperty();
List<String> enums = ((DateTimeProperty) property).getEnum(); if( enums != null && !enums.isEmpty()) { output = new StringExample(enums.get(0));
if (Objects.equal(typeName, "dateTime")) { _matched=true; _switchResult = new DateTimeProperty();
} else if (Date.class == objectClass || Timestamp.class == objectClass) { swaggerProperty = new DateTimeProperty(); } else if (java.sql.Date.class == objectClass) {
} else if (Date.class == objectClass || Timestamp.class == objectClass) { swaggerProperty = new DateTimeProperty(); } else if (java.sql.Date.class == objectClass) {
return new ArrayProperty(makeProperty(pd.elementDescription)); case DATE: return new DateTimeProperty(); case DOUBLE: return new DoubleProperty();
return fillProperty(new DateTimeProperty(), mapping);
@Override public Model getCREATEModel(Representation rep) { return new ModelImpl().property("person", new StringProperty().example("uuid")) .property("obsDatetime", new DateTimeProperty()).property("concept", new StringProperty().example("uuid")) .property("location", new StringProperty()).property("order", new StringProperty()) .property("encounter", new StringProperty()).property("accessionNumber", new StringProperty()) .property("groupMembers", new ArrayProperty(new StringProperty())) .property("valueCodedName", new StringProperty()).property("comment", new StringProperty()) .property("voided", new BooleanProperty()).property("value", new StringProperty()) .property("valueModifier", new StringProperty()) .required("person").required("obsDatetime").required("concept"); }
.property("gender", new StringProperty()._enum("M")._enum("F")) .property("age", new IntegerProperty()) .property("birthdate", new DateTimeProperty()) .property("birthdateEstimated", new BooleanProperty()) .property("dead", new BooleanProperty())