@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -389131437: return getContentTypeElement(); case -1613589672: return getLanguageElement(); case 3076010: return getDataElement(); case 116079: return getUrlElement(); case 3530753: return getSizeElement(); case 3195150: return getHashElement(); case 110371416: return getTitleElement(); case 1820421855: return getCreationElement(); default: return super.makeProperty(hash, name); } }
private void checkAttachment(List<ValidationMessage> errors, String path, Element focus, Attachment fixed) { checkFixedValue(errors, path + ".contentType", focus.getNamedChild("contentType"), fixed.getContentTypeElement(), "contentType", focus); checkFixedValue(errors, path + ".language", focus.getNamedChild("language"), fixed.getLanguageElement(), "language", focus); checkFixedValue(errors, path + ".data", focus.getNamedChild("data"), fixed.getDataElement(), "data", focus); checkFixedValue(errors, path + ".url", focus.getNamedChild("url"), fixed.getUrlElement(), "url", focus); checkFixedValue(errors, path + ".size", focus.getNamedChild("size"), fixed.getSizeElement(), "size", focus); checkFixedValue(errors, path + ".hash", focus.getNamedChild("hash"), fixed.getHashElement(), "hash", focus); checkFixedValue(errors, path + ".title", focus.getNamedChild("title"), fixed.getTitleElement(), "title", focus); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -389131437: return getContentTypeElement(); case -1613589672: return getLanguageElement(); case 3076010: return getDataElement(); case 116079: return getUrlElement(); case 3530753: return getSizeElement(); case 3195150: return getHashElement(); case 110371416: return getTitleElement(); case 1820421855: return getCreationElement(); default: return super.makeProperty(hash, name); } }
private void checkAttachment(List<ValidationMessage> errors, String path, Element focus, Attachment fixed) { checkFixedValue(errors, path + ".contentType", focus.getNamedChild("contentType"), fixed.getContentTypeElement(), "contentType", focus); checkFixedValue(errors, path + ".language", focus.getNamedChild("language"), fixed.getLanguageElement(), "language", focus); checkFixedValue(errors, path + ".data", focus.getNamedChild("data"), fixed.getDataElement(), "data", focus); checkFixedValue(errors, path + ".url", focus.getNamedChild("url"), fixed.getUrlElement(), "url", focus); checkFixedValue(errors, path + ".size", focus.getNamedChild("size"), fixed.getSizeElement(), "size", focus); checkFixedValue(errors, path + ".hash", focus.getNamedChild("hash"), fixed.getHashElement(), "hash", focus); checkFixedValue(errors, path + ".title", focus.getNamedChild("title"), fixed.getTitleElement(), "title", focus); }