Class ProcessableViewModel

  • Direct Known Subclasses:
    ClassViewModel, ConstantViewModel, MemberViewModel

    public abstract class ProcessableViewModel
    extends java.lang.Object
    A base ViewModel class for implementing classes of the Processable interface. This class takes care of rendering the processing flags.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.String> processingFlags  
      protected java.lang.Object processingInfo  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static <T extends ProcessingFlags>
      void
      addExtraProcessingFlags​(java.lang.Class<T> extraProcessingFlagsHolder)
      A utility method that allows for adding additional processing flags that can be rendered as strings.
      static java.util.List<java.lang.String> renderProcessingFlags​(int processingFlags)
      A utility method for rendering the processing flags of a processable instance.
      • Methods inherited from class java.lang.Object

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

      • processingFlags

        protected java.util.List<java.lang.String> processingFlags
      • processingInfo

        protected java.lang.Object processingInfo
    • Constructor Detail

      • ProcessableViewModel

        public ProcessableViewModel()
    • Method Detail

      • renderProcessingFlags

        public static java.util.List<java.lang.String> renderProcessingFlags​(int processingFlags)
        A utility method for rendering the processing flags of a processable instance.
        Parameters:
        processingFlags - The processing flags of a processable to be rendered.
        Returns:
        A list of strings containing rendered flags.
      • addExtraProcessingFlags

        protected static <T extends ProcessingFlags> void addExtraProcessingFlags​(java.lang.Class<T> extraProcessingFlagsHolder)
        A utility method that allows for adding additional processing flags that can be rendered as strings.
        Parameters:
        extraProcessingFlagsHolder - A sub class of ProcessingFlags that holds the additional flags.