Class JsMessage.StringPart

  • All Implemented Interfaces:
    JsMessage.Part
    Enclosing class:
    JsMessage

    public abstract static class JsMessage.StringPart
    extends java.lang.Object
    implements JsMessage.Part
    Represents a literal string part of a message.
    • Constructor Summary

      Constructors 
      Constructor Description
      StringPart()  
    • Constructor Detail

      • StringPart

        public StringPart()
    • Method Detail

      • isPlaceholder

        public boolean isPlaceholder()
        Description copied from interface: JsMessage.Part
        True for placeholders, false for literal string parts.
        Specified by:
        isPlaceholder in interface JsMessage.Part
      • getJsPlaceholderName

        public java.lang.String getJsPlaceholderName()
        Description copied from interface: JsMessage.Part
        Gets the name of the placeholder as it would appear in JS code.

        In JS code placeholders are in lower camel case with zero or more trailing numeric suffixes (e.g. myPlaceholderName_123_456).

        Specified by:
        getJsPlaceholderName in interface JsMessage.Part
        Returns:
        the name for a placeholder
      • getCanonicalPlaceholderName

        public java.lang.String getCanonicalPlaceholderName()
        Description copied from interface: JsMessage.Part
        Gets the name of the placeholder as it would appear in XMB or XTB files, and also the form it takes when generating message IDs.

        This format is UPPER_SNAKE_CASE.

        Specified by:
        getCanonicalPlaceholderName in interface JsMessage.Part
        Returns:
        the name for a placeholder