Class DefaultTreeCollectionContextStrategy

    • Constructor Detail

      • DefaultTreeCollectionContextStrategy

        public DefaultTreeCollectionContextStrategy()
    • Method Detail

      • setTypeFacade

        public void setTypeFacade​(TypeFacade typeFacade)
      • getParentContexts

        public java.util.List<java.lang.String> getParentContexts​(java.lang.String context)
        context is in the following form: Type1.att1.attr2.attrN
        parent context will be:
        • SuperType1.attr1.attr2.attrN, if SuperType1 is super type of Type1
        • Attr1Type.attr2.attrN where Attr1Type is type of attr1
        • _root_ otherwise
        Specified by:
        getParentContexts in interface CockpitConfigurationContextStrategy
        Parameters:
        context -
        Returns:
      • valueMatches

        public boolean valueMatches​(java.lang.String contextValue,
                                    java.lang.String value)
        Description copied from interface: CockpitConfigurationContextStrategy
        Checks if provided value matches the one defined in configuration context.
        Specified by:
        valueMatches in interface CockpitConfigurationContextStrategy
        Parameters:
        contextValue - value defined in configuration context
        value - value to be checked
        Returns:
        true if provided value matches the one defined in configuration context