Class FAtiMAutils


  • public class FAtiMAutils
    extends java.lang.Object
    a collection of utility methods for handling the communication via the FAtiMA protocol
    • Constructor Summary

      Constructors 
      Constructor Description
      FAtiMAutils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static MindAction fatimaMessageToMindAction​(java.lang.String subject, java.lang.String msg)
      creates a new mindAction out of a FAtiMA string describing that action
      static java.lang.String getPropertiesString​(CmionStorageContainer entityContainer, boolean includePersistenceInformation)
      returns a String listing all properties of a storage container in the format specified by the FAtiMA protocol, which is for example "prop1:value1 prop2:value2 prop3:value3"
      static java.lang.String mindActiontoFatimaMessage​(MindAction mindAction)
      returns a FAtiMA message that represents the provided mind action
      • Methods inherited from class java.lang.Object

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

      • FAtiMAutils

        public FAtiMAutils()
    • Method Detail

      • getPropertiesString

        public static java.lang.String getPropertiesString​(CmionStorageContainer entityContainer,
                                                           boolean includePersistenceInformation)
        returns a String listing all properties of a storage container in the format specified by the FAtiMA protocol, which is for example "prop1:value1 prop2:value2 prop3:value3"
      • mindActiontoFatimaMessage

        public static java.lang.String mindActiontoFatimaMessage​(MindAction mindAction)
        returns a FAtiMA message that represents the provided mind action
      • fatimaMessageToMindAction

        public static MindAction fatimaMessageToMindAction​(java.lang.String subject,
                                                           java.lang.String msg)
        creates a new mindAction out of a FAtiMA string describing that action