Package com.ibm.fhir.model.parser
Class FHIRJsonParser
- java.lang.Object
-
- com.ibm.fhir.model.parser.FHIRAbstractParser
-
- com.ibm.fhir.model.parser.FHIRJsonParser
-
- All Implemented Interfaces:
FHIRParser
@NotThreadSafe @Generated("com.ibm.fhir.tools.CodeGenerator") public class FHIRJsonParser extends FHIRAbstractParser
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEBUG
-
Fields inherited from class com.ibm.fhir.model.parser.FHIRAbstractParser
properties
-
Fields inherited from interface com.ibm.fhir.model.parser.FHIRParser
PROPERTY_IGNORE_UNRECOGNIZED_ELEMENTS
-
-
Constructor Summary
Constructors Constructor Description FHIRJsonParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isPropertySupported(String name)
Whether the generator supports the property with the passed name<T extends Resource>
Tparse(InputStream in)
Read a resource from the passed InputStream.<T extends Resource>
Tparse(Reader reader)
Read a resource using the passed Reader.<T extends Resource>
Tparse(javax.json.JsonObject jsonObject)
<T extends Resource>
TparseAndFilter(InputStream in, Collection<String> elementsToInclude)
<T extends Resource>
TparseAndFilter(Reader reader, Collection<String> elementsToInclude)
<T extends Resource>
TparseAndFilter(javax.json.JsonObject jsonObject, Collection<String> elementsToInclude)
-
Methods inherited from class com.ibm.fhir.model.parser.FHIRAbstractParser
as, getProperty, getProperty, getPropertyOrDefault, getPropertyOrDefault, setProperty
-
-
-
-
Method Detail
-
parse
public <T extends Resource> T parse(InputStream in) throws FHIRParserException
Description copied from interface:FHIRParser
Read a resource from the passed InputStream. This method does not close the passed InputStream.- Specified by:
parse
in interfaceFHIRParser
- Specified by:
parse
in classFHIRAbstractParser
- Type Parameters:
T
- The resource type to read- Returns:
- Throws:
FHIRParserException
-
parseAndFilter
public <T extends Resource> T parseAndFilter(InputStream in, Collection<String> elementsToInclude) throws FHIRParserException
- Throws:
FHIRParserException
-
parse
public <T extends Resource> T parse(Reader reader) throws FHIRParserException
Description copied from interface:FHIRParser
Read a resource using the passed Reader. This method does not close the passed Reader.- Specified by:
parse
in interfaceFHIRParser
- Specified by:
parse
in classFHIRAbstractParser
- Type Parameters:
T
- The resource type to read- Returns:
- Throws:
FHIRParserException
-
parseAndFilter
public <T extends Resource> T parseAndFilter(Reader reader, Collection<String> elementsToInclude) throws FHIRParserException
- Throws:
FHIRParserException
-
parse
public <T extends Resource> T parse(javax.json.JsonObject jsonObject) throws FHIRParserException
- Throws:
FHIRParserException
-
parseAndFilter
public <T extends Resource> T parseAndFilter(javax.json.JsonObject jsonObject, Collection<String> elementsToInclude) throws FHIRParserException
- Throws:
FHIRParserException
-
isPropertySupported
public boolean isPropertySupported(String name)
Description copied from interface:FHIRParser
Whether the generator supports the property with the passed name- Specified by:
isPropertySupported
in interfaceFHIRParser
- Overrides:
isPropertySupported
in classFHIRAbstractParser
-
-