Class EdgeTransformer.Label

  • All Implemented Interfaces:
    org.apache.commons.collections15.Transformer
    Enclosing class:
    EdgeTransformer

    public static final class EdgeTransformer.Label
    extends java.lang.Object
    implements org.apache.commons.collections15.Transformer
    A Transformer for creating labels for message groups.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean enabled
      If the label transformer is enabled.
    • Constructor Summary

      Constructors 
      Constructor Description
      Label()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEnabled()  
      void setEnabled​(boolean enabled)
      Enable/disable the transformer.
      java.lang.Object transform​(java.lang.Object group)
      Transform an message group into a String.
      • Methods inherited from class java.lang.Object

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

      • enabled

        protected boolean enabled
        If the label transformer is enabled.
    • Constructor Detail

      • Label

        public Label()
    • Method Detail

      • transform

        public java.lang.Object transform​(java.lang.Object group)
        Transform an message group into a String. Returns the size of the message group.
        Specified by:
        transform in interface org.apache.commons.collections15.Transformer
        Parameters:
        group - The message group.
        Returns:
        The String for the label.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enable/disable the transformer.
        Parameters:
        enabled - true if the transformer ought to be enabled.
      • isEnabled

        public boolean isEnabled()
        Returns:
        true if the transformer is enabled.