Class FHIRXMLGenerator
- java.lang.Object
-
- org.linuxforhealth.fhir.model.generator.FHIRAbstractGenerator
-
- org.linuxforhealth.fhir.model.generator.FHIRXMLGenerator
-
- All Implemented Interfaces:
FHIRGenerator
public class FHIRXMLGenerator extends FHIRAbstractGenerator
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.generator.FHIRAbstractGenerator
prettyPrinting, properties
-
Fields inherited from interface org.linuxforhealth.fhir.model.generator.FHIRGenerator
PROPERTY_INDENT_AMOUNT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFHIRXMLGenerator(boolean prettyPrinting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate(Visitable visitable, java.io.OutputStream out)Writevisitableto the passed OutputStream.voidgenerate(Visitable visitable, java.io.Writer writer)Writevisitableusing the passed Writer.booleanisPropertySupported(java.lang.String name)Whether the generator supports the property with the passed name-
Methods inherited from class org.linuxforhealth.fhir.model.generator.FHIRAbstractGenerator
as, getProperty, getProperty, getPropertyOrDefault, getPropertyOrDefault, isPrettyPrinting, setProperty
-
-
-
-
Method Detail
-
generate
public void generate(Visitable visitable, java.io.OutputStream out) throws FHIRGeneratorException
Description copied from interface:FHIRGeneratorWritevisitableto the passed OutputStream. This method does not close the passed OutputStream. Forvisitableof type Resource, this serializes the resource in accordance with the specification. Forvisitableof type Element, this serializes the element content using a suitable wrapper for the configured format.- Specified by:
generatein interfaceFHIRGenerator- Specified by:
generatein classFHIRAbstractGenerator- Parameters:
visitable- The visitable Resource or Element to serialize- Throws:
FHIRGeneratorException
-
generate
public void generate(Visitable visitable, java.io.Writer writer) throws FHIRGeneratorException
Description copied from interface:FHIRGeneratorWritevisitableusing the passed Writer. This method does not close the passed Writer. Forvisitableof type Resource, this serializes the resource in accordance with the specification. Forvisitableof type Element, this serializes the element content using a suitable wrapper for the configured format.- Specified by:
generatein interfaceFHIRGenerator- Specified by:
generatein classFHIRAbstractGenerator- Parameters:
visitable- The visitable Resource or Element to serialize- Throws:
FHIRGeneratorException
-
isPropertySupported
public boolean isPropertySupported(java.lang.String name)
Description copied from interface:FHIRGeneratorWhether the generator supports the property with the passed name- Specified by:
isPropertySupportedin interfaceFHIRGenerator- Overrides:
isPropertySupportedin classFHIRAbstractGenerator
-
-