Class FHIRAbstractParser

    • Constructor Detail

      • FHIRAbstractParser

        public FHIRAbstractParser()
    • Method Detail

      • setProperty

        public void setProperty​(String name,
                                Object value)
        Description copied from interface: FHIRParser
        Set the property with the given name to the passed value
        Specified by:
        setProperty in interface FHIRParser
      • getProperty

        public Object getProperty​(String name)
        Specified by:
        getProperty in interface FHIRParser
        Returns:
        the property value or null if the property has no value
      • getProperty

        public <T> T getProperty​(String name,
                                 Class<T> type)
        Specified by:
        getProperty in interface FHIRParser
        Returns:
        the property value or null if the property has no value
      • getPropertyOrDefault

        public <T> T getPropertyOrDefault​(String name,
                                          T defaultValue,
                                          Class<T> type)
        Specified by:
        getPropertyOrDefault in interface FHIRParser
        Returns:
        the property value or defaultValue if the property has no value
      • 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 interface FHIRParser
      • as

        public <T extends FHIRParser> T as​(Class<T> parserClass)
        Description copied from interface: FHIRParser
        Attempt to cast the FHIRParser to a specific subclass
        Specified by:
        as in interface FHIRParser
        Type Parameters:
        T - The FHIRParser subclass to cast to
        Returns: