ContextAndMsgId
The combination of a msgId
and context (optionally null) that represents a key to a translatable resource.
For example, with this .pot file:
#: org.causewayaddons.module.sessionlogger.dom.SessionLoggingServiceMenu#activeSessions() msgid: "Active Sessions" #: org.causewayaddons.module.audit.dom.AuditingServiceMenu #: org.causewayaddons.module.command.dom.CommandServiceMenu #: org.causewayaddons.module.publishing.dom.PublishingServiceMenu msgid: "Activity"
the combination of {org.causewayaddons.module.sessionlogger.dom.SessionLoggingServiceMenu#activeSessions(), "Active Sessions"}
represents such a key, as does {org.causewayaddons.module.audit.dom.AuditingServiceMenu, "Activity"}
API
ContextAndMsgId.java
class ContextAndMsgId {
ContextAndMsgId(String context, String msgId, Type type)
String getMsgId()
String getContext()
Type getType() (1)
boolean equals(Object o)
int hashCode()
int compareTo(ContextAndMsgId o)
String toString()
}
1 | getType()
Not part of equals/hashCode impl. |