Class MVaultUtil


  • public class MVaultUtil
    extends Object
    • Constructor Detail

      • MVaultUtil

        public MVaultUtil()
    • Method Detail

      • loadDefault

        public static MVault loadDefault()
      • checkDefault

        public static void checkDefault​(MVault vault)
      • adaptTo

        public static <T> T adaptTo​(VaultEntry entry,
                                    Class<? extends T> ifc)
                             throws ParseException,
                                    de.mhus.lib.errors.NotSupportedException
        Try to adapt the entry to the given class or interface.
        Parameters:
        entry -
        ifc -
        Returns:
        The requested interface or class.
        Throws:
        de.mhus.lib.errors.NotSupportedException - Thrown if the entry can't be adapted to the interface.
        ParseException
      • getType

        public static String getType​(String content)