Class AdvancedMessageFormat.SimpleFieldPart

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String fieldName  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleFieldPart​(java.lang.String fieldName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isGenerated​(java.util.Map<java.lang.String,​java.lang.Object> params)
      Indicates whether there is any content that is generated by this message part.
      java.lang.String toString()
      void write​(java.lang.StringBuffer sb, java.util.Map<java.lang.String,​java.lang.Object> params)
      Writes the formatted part to a string buffer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • fieldName

        private java.lang.String fieldName
    • Constructor Detail

      • SimpleFieldPart

        public SimpleFieldPart​(java.lang.String fieldName)
    • Method Detail

      • write

        public void write​(java.lang.StringBuffer sb,
                          java.util.Map<java.lang.String,​java.lang.Object> params)
        Description copied from interface: AdvancedMessageFormat.Part
        Writes the formatted part to a string buffer.
        Specified by:
        write in interface AdvancedMessageFormat.Part
        Parameters:
        sb - the target string buffer
        params - the parameters to work with
      • isGenerated

        public boolean isGenerated​(java.util.Map<java.lang.String,​java.lang.Object> params)
        Description copied from interface: AdvancedMessageFormat.Part
        Indicates whether there is any content that is generated by this message part.
        Specified by:
        isGenerated in interface AdvancedMessageFormat.Part
        Parameters:
        params - the parameters to work with
        Returns:
        true if the part has content
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object