Package eu.clarin.sru.client
Class SRUSurrogateRecordData
- java.lang.Object
-
- eu.clarin.sru.client.SRUSurrogateRecordData
-
- All Implemented Interfaces:
SRURecordData
public final class SRUSurrogateRecordData extends Object implements SRURecordData
A record data implementation to hold surrogate diagnostics.
-
-
Field Summary
Fields Modifier and Type Field Description static StringRECORD_SCHEMAThe record schema for SRU surrogate records.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDetails()Convenience method to get supplementary information for this diagnostic.SRUDiagnosticgetDiagnostic()Get the surrogate diagnostic.StringgetMessage()Convenience method to get human readable message.StringgetRecordSchema()The record schema for this record.StringgetURI()Convenience method to get diagnostic's identifying URI.booleanisTransient()This record is transient.
-
-
-
Field Detail
-
RECORD_SCHEMA
public static final String RECORD_SCHEMA
The record schema for SRU surrogate records.- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecordSchema
public String getRecordSchema()
Description copied from interface:SRURecordDataThe record schema for this record.- Specified by:
getRecordSchemain interfaceSRURecordData- Returns:
- the record schema
-
isTransient
public boolean isTransient()
Description copied from interface:SRURecordDataThis 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:
isTransientin interfaceSRURecordData- Returns:
true, if record is transient,falseotherwise
-
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
-
-