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)
Create a Message with an id.
|
protected |
Message(JhoveMessage message,
long offset)
Create a Message.
|
protected |
Message(JhoveMessage message,
String subMessage)
Create a Message.
|
protected |
Message(JhoveMessage message,
String subMessage,
long offset)
Create a Message.
|
protected |
Message(String message)
Create a Message with an unknown id (for backward compatibility).
|
protected |
Message(String message,
long offset)
Create a Message.
|
protected |
Message(String message,
String subMessage)
Create a Message.
|
protected |
Message(String message,
String subMessage,
long offset)
Create a Message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
JhoveMessage |
getJhoveMessage() |
String |
getMessage()
Get the message string.
|
long |
getOffset()
Return the offset to which the information is related.
|
String |
getPrefix() |
String |
getSubMessage()
Get the submessage string.
|
public static final long NULL
protected final JhoveMessage message
protected final String _subMessage
protected final long _offset
protected Message(String message)
message - Human-readable string.protected Message(JhoveMessage message)
id - Unique ID (within the module) for the messagemessage - Human-readable string.protected Message(String message, String subMessage)
message - Human-readable string.subMessage - Human-readable additional information.protected Message(JhoveMessage message, String subMessage)
id - Unique ID (within the module) for the messagemessage - Human-readable string.subMessage - Human-readable additional information.protected Message(String message, long offset)
message - Human-readable string.offset - Byte offset associated with the message.protected Message(JhoveMessage message, long offset)
id - Unique ID (within the module) for the messagemessage - Human-readable string.offset - Byte offset associated with the message.protected Message(String message, String subMessage, long offset)
message - Human-readable string.subMessage - Human-readable additional information.offset - Byte offset associated with the message.protected Message(JhoveMessage message, String subMessage, long offset)
id - Unique ID (within the module) for the messagemessage - Human-readable string.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–2019 The Open Preservation Foundation. All rights reserved.