Module de.codecamp.messages.shared
Class MessageKeyWithSourceLocation
- java.lang.Object
-
- de.codecamp.messages.shared.model.MessageKeyWithSourceLocation
-
- All Implemented Interfaces:
MessageKey,MessageKeyWithArgs,Comparable<MessageKeyWithSourceLocation>
public class MessageKeyWithSourceLocation extends Object implements MessageKeyWithArgs, Comparable<MessageKeyWithSourceLocation>
-
-
Field Summary
-
Fields inherited from interface de.codecamp.messages.MessageKey
TYPE_KEY_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description MessageKeyWithSourceLocation(String code, String[] argTypes, String[] argNames, String sourceType, String localPart, ElementType sourceElementType, String sourceElementName, boolean defaultMessageAvailable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MessageKeyWithSourceLocation o)booleanequals(Object obj)String[]getArgNames()String[]getArgTypes()StringgetCode()StringgetLocalPart()StringgetSourceElementName()ElementTypegetSourceElementType()StringgetSourceType()booleanhasArgs()inthashCode()booleanisDefaultMessageAvailable()Whether the module that declares the message key provides a locale-agnostic default message.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.codecamp.messages.MessageKeyWithArgs
getArgs
-
-
-
-
Method Detail
-
getCode
public String getCode()
- Specified by:
getCodein interfaceMessageKey
-
hasArgs
public boolean hasArgs()
- Specified by:
hasArgsin interfaceMessageKeyWithArgs
-
getArgTypes
public String[] getArgTypes()
- Specified by:
getArgTypesin interfaceMessageKeyWithArgs
-
getArgNames
public String[] getArgNames()
- Specified by:
getArgNamesin interfaceMessageKeyWithArgs
-
getSourceType
public String getSourceType()
-
getLocalPart
public String getLocalPart()
-
getSourceElementType
public ElementType getSourceElementType()
-
getSourceElementName
public String getSourceElementName()
-
isDefaultMessageAvailable
public boolean isDefaultMessageAvailable()
Whether the module that declares the message key provides a locale-agnostic default message.- Returns:
- the module that declares the message key provides a locale-agnostic default message
-
compareTo
public int compareTo(MessageKeyWithSourceLocation o)
- Specified by:
compareToin interfaceComparable<MessageKeyWithSourceLocation>
-
-