Class NameConfigExample

  • All Implemented Interfaces:
    NameConfigPlugin, Plugin

    public class NameConfigExample
    extends Object
    implements NameConfigPlugin
    This NameConfigPlugin example checks the record names using a pattern loaded from an xml file. The file name is defined by VDCT_NAME_CONFIG_FILE filename located in user home directory (or in VDCT_CONFIG_DIR dir). Use VDCT_NAME_CONFIG_FILE_ENV environment variable to override this default setting. An example of XML file:
     
     <?xml version="1.0" encoding="UTF-8"?>
     
     <name pattern="VDCT_.*" default="VDCT_Name1" description="Must start with VDCT_"/>
     
     Default and description parameters are optional.
     
     
    Author:
    ssah
    • Constructor Detail

      • NameConfigExample

        public NameConfigExample()
    • Method Detail

      • checkValidity

        public String checkValidity​(String name)
        Description copied from interface: NameConfigPlugin
        If name is valid, the function returns null, otherwise it returns a String with the description of the error.
        Specified by:
        checkValidity in interface NameConfigPlugin
        Parameters:
        name - name
        Returns:
        something
      • isRunning

        public boolean isRunning()
        Description copied from interface: NameConfigPlugin
        Returns true if the plugin has not been stopped since the last start.
        Specified by:
        isRunning in interface NameConfigPlugin
        Returns:
        something
      • destroy

        public void destroy()
        Description copied from interface: Plugin
        Insert the method's description here. Creation date: (6.12.2001 22:04:45)
        Specified by:
        destroy in interface Plugin
      • getAuthor

        public String getAuthor()
        Description copied from interface: Plugin
        Insert the method's description here. Creation date: (6.12.2001 22:10:35)
        Specified by:
        getAuthor in interface Plugin
        Returns:
        java.lang.String
      • getDescription

        public String getDescription()
        Description copied from interface: Plugin
        Insert the method's description here. Creation date: (6.12.2001 22:09:48)
        Specified by:
        getDescription in interface Plugin
        Returns:
        java.lang.String
      • getName

        public String getName()
        Description copied from interface: Plugin
        Insert the method's description here. Creation date: (6.12.2001 22:04:45)
        Specified by:
        getName in interface Plugin
        Returns:
        something
      • getVersion

        public String getVersion()
        Description copied from interface: Plugin
        Insert the method's description here. Creation date: (6.12.2001 22:10:05)
        Specified by:
        getVersion in interface Plugin
        Returns:
        java.lang.String
      • init

        public void init​(Properties properties,
                         PluginContext context)
        Description copied from interface: Plugin
        Insert the method's description here. Creation date: (6.12.2001 22:04:45)
        Specified by:
        init in interface Plugin
        Parameters:
        properties - properties
        context - context
      • start

        public void start()
        Description copied from interface: Plugin
        Insert the method's description here. Creation date: (6.12.2001 22:04:45)
        Specified by:
        start in interface Plugin
      • stop

        public void stop()
        Description copied from interface: Plugin
        Insert the method's description here. Creation date: (6.12.2001 22:04:45)
        Specified by:
        stop in interface Plugin