Package org.hl7.fhir.utilities.npm
Class PackageList
- java.lang.Object
-
- org.hl7.fhir.utilities.npm.PackageList
-
public class PackageList extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPackageList.PackageListEntry
-
Constructor Summary
Constructors Constructor Description PackageList()PackageList(JsonObject json)
-
Method Summary
-
-
-
Constructor Detail
-
PackageList
public PackageList()
-
PackageList
public PackageList(JsonObject json)
-
-
Method Detail
-
fromFile
public static PackageList fromFile(File f) throws JsonException, IOException
- Throws:
JsonExceptionIOException
-
setSource
public PackageList setSource(String src)
-
fromFile
public static PackageList fromFile(String f) throws JsonException, IOException
- Throws:
JsonExceptionIOException
-
fromContent
public static PackageList fromContent(byte[] cnt) throws JsonException, IOException
- Throws:
JsonExceptionIOException
-
fromUrl
public static PackageList fromUrl(String url) throws JsonException, IOException
- Throws:
JsonExceptionIOException
-
hasPid
public boolean hasPid()
-
list
public List<PackageList.PackageListEntry> list()
-
versions
public List<PackageList.PackageListEntry> versions()
-
ciBuild
public PackageList.PackageListEntry ciBuild()
-
newVersion
public PackageList.PackageListEntry newVersion(String version, String path, String status, String sequence, FhirPublication fhirVersion)
-
init
public void init(String name, String canonical, String title, String category, String introduction)
-
addCIBuild
public void addCIBuild(String version, String path, String desc, String status)
-
findByVersion
public PackageList.PackageListEntry findByVersion(String version)
-
save
public void save(String filepath) throws IOException
- Throws:
IOException
-
determineLocalPath
public String determineLocalPath(String url, String root) throws IOException
- Throws:
IOException
-
current
public PackageList.PackageListEntry current()
-
-