public abstract class Message extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
_offset
Byte offset to which message applies.
|
protected String |
_subMessage
Additional information.
|
protected JhoveMessage |
message
PRIVATE INSTANCE FIELDS.
|
static long |
NULL
Value indicating a null offset.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Message(JhoveMessage message)
Creates a Message with an identifier.
|
protected |
Message(JhoveMessage message,
long offset)
Creates a Message with an identifier.
|
protected |
Message(JhoveMessage message,
String subMessage)
Creates a Message with an identifier.
|
protected |
Message(JhoveMessage message,
String subMessage,
long offset)
Creates a Message with an identifier.
|
protected |
Message(String message)
Creates a Message with an unknown identifier for backward compatibility.
|
protected |
Message(String message,
long offset)
Creates a Message.
|
protected |
Message(String message,
String subMessage)
Creates a Message.
|
protected |
Message(String message,
String subMessage,
long offset)
Creates a Message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns the message's identifier.
|
JhoveMessage |
getJhoveMessage() |
String |
getMessage()
Returns the message text.
|
long |
getOffset()
Returns the offset to which this message is related.
|
String |
getPrefix() |
String |
getSubMessage()
Returns the submessage text.
|
public static final long NULL
protected final JhoveMessage message
protected final String _subMessage
protected final long _offset
protected Message(String message)
message - Human-readable message text.protected Message(JhoveMessage message)
message - The message text and its identifier.protected Message(String message, String subMessage)
message - Human-readable message text.subMessage - Human-readable additional information.protected Message(JhoveMessage message, String subMessage)
message - The message text and its identifier.subMessage - Human-readable additional information.protected Message(String message, long offset)
message - Human-readable message text.offset - Byte offset associated with the message.protected Message(JhoveMessage message, long offset)
message - The message text and its identifier.offset - Byte offset associated with the message.protected Message(String message, String subMessage, long offset)
message - Human-readable message text.subMessage - Human-readable additional information.offset - Byte offset associated with the message.protected Message(JhoveMessage message, String subMessage, long offset)
message - The message text and its identifier.subMessage - Human-readable additional information.offset - Byte offset associated with the message.public String getMessage()
public String getSubMessage()
public long getOffset()
public String getId()
public JhoveMessage getJhoveMessage()
public String getPrefix()
Copyright © 2008–2020 The Open Preservation Foundation. All rights reserved.