Class SRUSurrogateRecordData

  • All Implemented Interfaces:
    SRURecordData

    public final class SRUSurrogateRecordData
    extends Object
    implements SRURecordData
    A record data implementation to hold surrogate diagnostics.
    • Field Detail

    • Method Detail

      • isTransient

        public boolean isTransient()
        Description copied from interface: SRURecordData
        This record is transient. If you want to store the data to process it later, you need to create a copy of the data.
        Specified by:
        isTransient in interface SRURecordData
        Returns:
        true, if record is transient, false otherwise
      • getDiagnostic

        public SRUDiagnostic getDiagnostic()
        Get the surrogate diagnostic.
        Returns:
        the surrogate diagnostic
      • getURI

        public String getURI()
        Convenience method to get diagnostic's identifying URI.
        Returns:
        diagnostic code
      • getDetails

        public String getDetails()
        Convenience method to get supplementary information for this diagnostic. The format for this value is often specified by the diagnostic code.
        Returns:
        supplementary information
      • getMessage

        public String getMessage()
        Convenience method to get human readable message.
        Returns:
        human readable message