@Override public Model getGETModel(Representation rep) { return ((ModelImpl) super.getGETModel(rep)) .property("uuid", new StringProperty()) .property("value", new StringProperty()); }
@Override public Model getGETModel(Representation rep) { ModelImpl modelImpl = ((ModelImpl) super.getGETModel(rep)) .property("uuid", new StringProperty()) .property("display", new StringProperty()); if (rep instanceof DefaultRepresentation || rep instanceof FullRepresentation) { modelImpl .property("value", new StringProperty()) .property("locale", new StringProperty().example("en")); //FIXME type } return modelImpl; }
@Override public Model getGETModel(Representation rep) { ModelImpl model = ((ModelImpl) super.getGETModel(rep)) .property("uuid", new StringProperty()) .property("display", new StringProperty()); if (rep instanceof FullRepresentation) { model .property("name", new StringProperty()) .property("description", new StringProperty()) .property("retired", new BooleanProperty()); } return model; }
@Override public Model getGETModel(Representation rep) { ModelImpl model = (ModelImpl) super.getGETModel(rep); if (rep instanceof DefaultRepresentation) { model .property("termA", new RefProperty("#/definitions/ConceptreferencetermGetRef")) .property("termB", new RefProperty("#/definitions/ConceptreferencetermGetRef")) .property("conceptMapType", new RefProperty("#/definitions/ConceptmaptypeGetRef")); } else if (rep instanceof FullRepresentation) { model .property("termA", new RefProperty("#/definitions/ConceptreferencetermGet")) .property("termB", new RefProperty("#/definitions/ConceptreferencetermGet")) .property("conceptMapType", new RefProperty("#/definitions/ConceptmaptypeGet")); } return model; }
@Override public Model getGETModel(Representation rep) { ModelImpl model = (ModelImpl) super.getGETModel(rep); if (rep instanceof DefaultRepresentation || rep instanceof FullRepresentation) { model .property("uuid", new StringProperty()) .property("display", new StringProperty()) .property("datatypeClassname", new StringProperty()); } if (rep instanceof DefaultRepresentation) { model .property("handlers", new ArrayProperty(new RefProperty("#/definitions/CustomdatatypeHandlersGetRef"))); } else if (rep instanceof FullRepresentation) { model .property("handlers", new ArrayProperty(new RefProperty("#/definitions/CustomdatatypeHandlersGet"))); } return model; }
@Override public Model getGETModel(Representation rep) { ModelImpl model = ((ModelImpl) super.getGETModel(rep)); if (rep instanceof DefaultRepresentation || rep instanceof FullRepresentation) { model .property("uuid", new StringProperty()) .property("property", new StringProperty()) .property("value", new StringProperty()) .property("description", new StringProperty()) .property("display", new StringProperty()); } if (rep instanceof FullRepresentation) { model .property("datatypeClassname", new StringProperty()) .property("datatypeConfig", new StringProperty()) .property("preferredHandlerClassname", new StringProperty()) .property("handlerConfig", new StringProperty()); } return model; }
public Model getGETModel(Representation rep) { ModelImpl modelImpl = ((ModelImpl) super.getGETModel(rep)) .property("uuid", new StringProperty()) .property("display", new StringProperty()); if (rep instanceof DefaultRepresentation) { modelImpl .property("name", new RefProperty("#/definitions/ConceptNameGet")) .property("datatype", new RefProperty("#/definitions/ConceptdatatypeGetRef")) .property("conceptClass", new RefProperty("#/definitions/ConceptclassGetRef")) .property("set", new BooleanProperty()) .property("version", new StringProperty()) .property("retired", new BooleanProperty()) .property("names", new ArrayProperty(new RefProperty("#/definitions/ConceptNameGetRef"))) //FIXME .property("descriptions", new ArrayProperty(new RefProperty("#/definitions/ConceptDescriptionGetRef"))) //FIXME .property("mappings", new ArrayProperty(new RefProperty("#/definitions/ConceptMappingGetRef"))) //FIXME .property("answers", new ArrayProperty(new ObjectProperty())) //FIXME .property("setMembers", new ArrayProperty(new ObjectProperty())); //FIXME } return modelImpl; }