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 String
RECORD_SCHEMA
The record schema for SRU surrogate records.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDetails()
Convenience method to get supplementary information for this diagnostic.SRUDiagnostic
getDiagnostic()
Get the surrogate diagnostic.String
getMessage()
Convenience method to get human readable message.String
getRecordSchema()
The record schema for this record.String
getURI()
Convenience method to get diagnostic's identifying URI.boolean
isTransient()
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:SRURecordData
The record schema for this record.- Specified by:
getRecordSchema
in interfaceSRURecordData
- Returns:
- the record schema
-
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 interfaceSRURecordData
- 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
-
-