Package edu.harvard.hul.ois.jhove
Class Message
java.lang.Object
edu.harvard.hul.ois.jhove.Message
- Direct Known Subclasses:
ErrorMessage,InfoMessage
This class encapsulates a message to be displayed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JhoveMessagePRIVATE INSTANCE FIELDS.static final longValue indicating a null offset.protected final longByte offset to which message applies.protected final Stringprotected final StringAdditional information. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMessage(JhoveMessage message, String subMessage, long offset, String prefix) Creates a Message with an identifier. -
Method Summary
-
Field Details
-
NULL
public static final long NULLValue indicating a null offset.- See Also:
-
jhoveMessage
PRIVATE INSTANCE FIELDS. -
subMessage
Additional information. -
offset
protected final long offsetByte offset to which message applies. -
prefix
-
-
Constructor Details
-
Message
Creates a Message with an identifier. This constructor cannot be invoked directly, since Message is abstract. The second argument adds secondary details to the primary message; the message will typically be displayed in the form "message: subMessage".- Parameters:
message- The message text and its identifier.subMessage- Human-readable additional information.offset- Byte offset associated with the message.
-
-
Method Details
-
getMessage
Returns the message text. -
getSubMessage
Returns the submessage text. -
getOffset
public long getOffset()Returns the offset to which this message is related. -
getId
Returns the message's identifier. -
getJhoveMessage
-
getPrefix
-
toString
-
hashCode
public int hashCode() -
equals
-