Class AttributeMapConfigImpl

    • Constructor Detail

      • AttributeMapConfigImpl

        public AttributeMapConfigImpl()
        Constructor
      • AttributeMapConfigImpl

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

      • init

        public void init()
                  throws java.lang.Exception
        Called after internal data structure is set.
        Specified by:
        init in interface BaseConfiguration
        Overrides:
        init in class BaseConfigurationImpl
        Throws:
        java.lang.Exception - if the initialization fails.
      • newAttributeMapItem

        public AttributeMapItem newAttributeMapItem​(java.lang.Object name)
                                             throws java.lang.Exception
        Creates and adds a new attribute map item to this object.
        Specified by:
        newAttributeMapItem in interface AttributeMapConfig
        Parameters:
        name - The attribute name
        Returns:
        The newly created AttributeMapItem
        Throws:
        java.lang.Exception - Any errors encountered by the underlying driver
      • removeAttributeMapItem

        public void removeAttributeMapItem​(java.lang.Object attribute)
        Removes a named attribute from this map.
        Specified by:
        removeAttributeMapItem in interface AttributeMapConfig
        Parameters:
        attribute - The attribute name
      • renameAttributeMapItem

        public void renameAttributeMapItem​(java.lang.Object newName,
                                           AttributeMapItem map)
                                    throws java.lang.Exception
        Changes the name of an existing attributemapitem
        Specified by:
        renameAttributeMapItem in interface AttributeMapConfig
        Parameters:
        newName - The new name
        map - The existing AttributeMapItem
        Throws:
        java.lang.Exception - Any errors encountered by the underlying driver
      • getAttributeMapItem

        public AttributeMapItem getAttributeMapItem​(java.lang.Object attrName)
        Returns the AttributeMapItem for attribute
        Specified by:
        getAttributeMapItem in interface AttributeMapConfig
        Parameters:
        attrName - The attribute name
        Returns:
        The attributeMapItem value
      • hasAttributeMapItem

        public boolean hasAttributeMapItem​(java.lang.Object attribute)
        Checks if a named attribute is local (not inherited or null) to this object.
        Specified by:
        hasAttributeMapItem in interface AttributeMapConfig
        Parameters:
        attribute - The attribute name
        Returns:
        True if this object contains the attribute
      • getAttributeNames

        public java.util.List<java.lang.String> getAttributeNames()
        Returns a list of attribute names in this object.
        Specified by:
        getAttributeNames in interface AttributeMapConfig
        Returns:
        The list of attribute names including inherited attributes
      • 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