public class DicomJSONProvider extends java.lang.Object implements ITagProvider
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
private java.util.List<DicomTag> |
tags |
Constructor and Description |
---|
DicomJSONProvider() |
Modifier and Type | Method and Description |
---|---|
java.util.List<DicomTag> |
getTags()
Retrieve the tags defined by this provider.
|
private java.lang.Integer |
lookupTag(java.lang.String tagKey,
org.json.JSONObject tag)
Get the tag code corresponding to the given JSON object.
|
private DicomVR |
lookupVR(java.lang.Integer intTagCode,
org.json.JSONObject tag)
Get the VR associated with the given tag code and JSON object.
|
private void |
readSequence(org.json.JSONObject rootTag,
DicomTag parent) |
void |
readTagSource(java.lang.String location)
Read tags from the given location.
|
private static final org.slf4j.Logger LOGGER
private java.util.List<DicomTag> tags
public void readTagSource(java.lang.String location) throws java.io.IOException
ITagProvider
readTagSource
in interface ITagProvider
java.io.IOException
public java.util.List<DicomTag> getTags()
ITagProvider
getTags
in interface ITagProvider
private void readSequence(org.json.JSONObject rootTag, DicomTag parent)
private java.lang.Integer lookupTag(java.lang.String tagKey, org.json.JSONObject tag)
private DicomVR lookupVR(java.lang.Integer intTagCode, org.json.JSONObject tag)
Copyright © 2024 Open Microscopy Environment