Class HookConfigImpl

    • Constructor Detail

      • HookConfigImpl

        public HookConfigImpl()
        Constructor
      • HookConfigImpl

        public HookConfigImpl​(java.lang.Object config)
        Constructor providing a TreeMap of attribute/value pairs.
        Parameters:
        config - initial config
      • HookConfigImpl

        public HookConfigImpl​(java.lang.Object name,
                              java.lang.String script)
        Constructor providing hook name and script. Creates enabled hook.
        Parameters:
        name -
        script -
    • Method Detail

      • getHookName

        public java.lang.Object getHookName()
        Specified by:
        getHookName in interface HookConfig
        Returns:
        Hook name
      • setHookName

        public void setHookName​(java.lang.Object name)
        Sets hook name.
        Specified by:
        setHookName in interface HookConfig
        Parameters:
        name -
      • couldInherit

        public boolean couldInherit()
        Could this hook inherit data from some other place, if it did not have local data?
        Specified by:
        couldInherit in interface HookConfig
        Returns:
        true if there is data that could be inherited
      • flatten

        public boolean flatten​(java.util.List<java.lang.String> excludedNS)
                        throws java.lang.Exception
        This method combines all values from this object and its inherited objects into one single config object. After flattening, the object is a complete object with no inherited values except those from the excludedNS list.
        Specified by:
        flatten in interface BaseConfiguration
        Overrides:
        flatten in class BaseConfigurationImpl
        Parameters:
        excludedNS - List of namespaces to exclude from flattening
        Returns:
        true if object attempted flattening, FALSE is this object inherits from an excluded namespace or has no inheritance
        Throws:
        java.lang.Exception
      • detachFromParent

        public boolean detachFromParent()
        This method removes this objects from its parent container. If this cannot be removed from the parent the contents should be cleared (default implementation) and true be returned as if it were removed. If the object cannot be cleared or removed it should return false.
        Specified by:
        detachFromParent in interface BaseConfiguration
        Overrides:
        detachFromParent in class BaseConfigurationImpl
        Returns:
        true if this object was removed; false if it could not be removed.
      • getShortName

        public java.lang.String getShortName()
        Description copied from class: BaseConfigurationImpl
        Gets the shortName attribute of the BaseConfiguration object. The short name is the last component in a multi component name. E.g.: AssemblyLines/MyName --> "MyName"
        Specified by:
        getShortName in interface BaseConfiguration
        Overrides:
        getShortName in class BaseConfigurationImpl
        Returns:
        The shortName value