more xver package related changes
This commit is contained in:
parent
aa6daa3ea0
commit
e01216b7f3
|
@ -4680,6 +4680,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
|||
case PROFILE: return t.getPath()+"/@profile";
|
||||
case TYPE: return t.getPath()+"/@type";
|
||||
case VALUE: return t.getPath();
|
||||
case PATTERN: return t.getPath();
|
||||
case EXISTS: return t.getPath(); // determination of value vs. exists is based on whether there's only 2 slices - one with minOccurs=1 and other with maxOccur=0
|
||||
default: throw new FHIRException("Unable to represent "+t.getType().toCode()+":"+t.getPath()+" in R2");
|
||||
}
|
||||
|
|
|
@ -22,12 +22,12 @@
|
|||
</natures>
|
||||
<filteredResources>
|
||||
<filter>
|
||||
<id>1662504185037</id>
|
||||
<id>1668080803768</id>
|
||||
<name></name>
|
||||
<type>30</type>
|
||||
<matcher>
|
||||
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
||||
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
||||
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
||||
</matcher>
|
||||
</filter>
|
||||
</filteredResources>
|
||||
|
|
|
@ -570,12 +570,25 @@ public class VersionUtilities {
|
|||
case "1.4" : return "http://hl7.org/fhir/DSTU2";
|
||||
case "3.0" : return "http://hl7.org/fhir/STU3";
|
||||
case "4.0" : return "http://hl7.org/fhir/R4";
|
||||
case "4.5" : return "http://build.fhir.org";
|
||||
case "4.3" : return "http://hl7.org/fhir/R4B";
|
||||
case "5.0" : return "http://build.fhir.org";
|
||||
default:
|
||||
return "http://hl7.org/fhir";
|
||||
}
|
||||
}
|
||||
|
||||
public static String getNameForVersion(String v) {
|
||||
switch (getMajMin(v)) {
|
||||
case "1.0" : return "R2";
|
||||
case "1.4" : return "R2B";
|
||||
case "3.0" : return "R3";
|
||||
case "4.0" : return "R4";
|
||||
case "4.3" : return "R4B";
|
||||
case "5.0" : return "R5";
|
||||
default:
|
||||
return "R?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -283,6 +283,14 @@ public class NpmPackage {
|
|||
return retVal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Factory method that starts a new empty package using the given PackageGenerator to create the manifest
|
||||
*/
|
||||
public static NpmPackage empty() {
|
||||
NpmPackage retVal = new NpmPackage();
|
||||
return retVal;
|
||||
}
|
||||
|
||||
public Map<String, Object> getUserData() {
|
||||
return userData;
|
||||
}
|
||||
|
@ -1061,6 +1069,12 @@ public class NpmPackage {
|
|||
if (!folder.types.containsKey(type))
|
||||
folder.types.put(type, new ArrayList<>());
|
||||
folder.types.get(type).add(name);
|
||||
if ("package".equals(folderName) && "package.json".equals(name)) {
|
||||
try {
|
||||
npm = JsonTrackingParser.parseJson(cnt);
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void loadAllFiles() throws IOException {
|
||||
|
|
Loading…
Reference in New Issue