public static String sdNs(String type, String overrideVersionNs) { if (Utilities.isAbsoluteUrl(type)) return type; else if (overrideVersionNs != null) return Utilities.pathURL(overrideVersionNs, type); else return "http://hl7.org/fhir/StructureDefinition/"+type; }
private String genSubjectId(Element e) { String id = e.getChildValue("id"); if (base == null || id == null) return ""; else if (base.endsWith("#")) return "<" + base + e.getType() + "-" + id + ">"; else return "<" + Utilities.pathURL(base, e.getType(), id) + ">"; }
public void addFolder(String actualDir, String statedDir, boolean omitIfExists, String noExt) throws IOException { File fd = new CSFile(actualDir); String files[] = fd.list(); for (String f : files) { if (new CSFile(Utilities.path(actualDir, f)).isDirectory()) addFolder(Utilities.path(actualDir, f), Utilities.pathURL(statedDir, f), omitIfExists, noExt); else if (noExt == null || !f.endsWith(noExt)) addFileName(Utilities.pathURL(statedDir, f), Utilities.path(actualDir, f), omitIfExists); } }
public void addFolder(String actualDir, String statedDir, boolean omitIfExists) throws IOException { File fd = new CSFile(actualDir); String files[] = fd.list(); for (String f : files) { if (new CSFile(Utilities.path(actualDir, f)).isDirectory()) addFolder(Utilities.path(actualDir, f), Utilities.pathURL(statedDir, f), omitIfExists); else addFileName(Utilities.pathURL(statedDir, f), Utilities.path(actualDir, f), omitIfExists); } }
if (url != null) { rule(errors, IssueType.INVALID, entry.line(), entry.col(), stack.addToLiteralPath("entry", ":0"), !url.equals(fullUrl) || (url.matches(Constants.URI_REGEX) && url.endsWith("/"+id)), "The canonical URL ("+url+") cannot match the fullUrl ("+fullUrl+") unless the resource id ("+id+") also matches"); rule(errors, IssueType.INVALID, entry.line(), entry.col(), stack.addToLiteralPath("entry", ":0"), !url.equals(fullUrl) || serverBase == null || (url.equals(Utilities.pathURL(serverBase, entry.getNamedChild("resource").fhirType(), id))), "The canonical URL ("+url+") cannot match the fullUrl ("+fullUrl+") unless on the canonical server itself");
String p = ed.getUserString("path"); if (p != null) { ref = p.startsWith("http:") || igmode ? p : Utilities.pathURL(corePath, p);
public static String sdNs(String type, String overrideVersionNs) { if (Utilities.isAbsoluteUrl(type)) return type; else if (overrideVersionNs != null) return Utilities.pathURL(overrideVersionNs, type); else return "http://hl7.org/fhir/StructureDefinition/"+type; }
private String genSubjectId(Element e) { String id = e.getChildValue("id"); if (base == null || id == null) return ""; else if (base.endsWith("#")) return "<" + base + e.getType() + "-" + id + ">"; else return "<" + Utilities.pathURL(base, e.getType(), id) + ">"; }
public void addFolder(String actualDir, String statedDir, boolean omitIfExists, String noExt) throws IOException { File fd = new CSFile(actualDir); String files[] = fd.list(); for (String f : files) { if (new CSFile(Utilities.path(actualDir, f)).isDirectory()) addFolder(Utilities.path(actualDir, f), Utilities.pathURL(statedDir, f), omitIfExists, noExt); else if (noExt == null || !f.endsWith(noExt)) addFileName(Utilities.pathURL(statedDir, f), Utilities.path(actualDir, f), omitIfExists); } }
public void addFolder(String actualDir, String statedDir, boolean omitIfExists) throws IOException { File fd = new CSFile(actualDir); String files[] = fd.list(); for (String f : files) { if (new CSFile(Utilities.path(actualDir, f)).isDirectory()) addFolder(Utilities.path(actualDir, f), Utilities.pathURL(statedDir, f), omitIfExists); else addFileName(Utilities.pathURL(statedDir, f), Utilities.path(actualDir, f), omitIfExists); } }
if (url != null) { rule(errors, IssueType.INVALID, entry.line(), entry.col(), stack.addToLiteralPath("entry", ":0"), !url.equals(fullUrl) || (url.matches(Constants.URI_REGEX) && url.endsWith("/"+id)), "The canonical URL ("+url+") cannot match the fullUrl ("+fullUrl+") unless the resource id ("+id+") also matches"); rule(errors, IssueType.INVALID, entry.line(), entry.col(), stack.addToLiteralPath("entry", ":0"), !url.equals(fullUrl) || serverBase == null || (url.equals(Utilities.pathURL(serverBase, entry.getNamedChild("resource").fhirType(), id))), "The canonical URL ("+url+") cannot match the fullUrl ("+fullUrl+") unless on the canonical server itself");
String p = ed.getUserString("path"); if (p != null) { ref = p.startsWith("http:") || igmode ? p : Utilities.pathURL(corePath, p);
String p = ed.getUserString("path"); if (p != null) { ref = p.startsWith("http:") || igmode ? p : Utilities.pathURL(corePath, p);
String p = ed.getUserString("path"); if (p != null) { ref = p.startsWith("http:") || igmode ? p : Utilities.pathURL(corePath, p);