Class EntityAttributesPredicate.EntityAttributesMatcher

    • Field Detail

      • attributes

        private final Collection<Attribute> attributes
        Population to evaluate for a match.
    • Constructor Detail

      • EntityAttributesMatcher

        public EntityAttributesMatcher​(@Nonnull @NonnullElements
                                       Collection<Attribute> attrs)
        Constructor.
        Parameters:
        attrs - population to evaluate for a match
    • Method Detail

      • getPossibleAttributeValuesAsStrings

        @Nonnull
        List<String> getPossibleAttributeValuesAsStrings​(@Nonnull
                                                         Attribute attribute)
        Get all possible strings values for the attribute. This copes with the fact that an attribute can return multiple values Attribute.getAttributeValues() and that some type of value can have multiple values (for instance a boolean can be 1/0/true/false).
        Parameters:
        attribute - what to inspect
        Returns:
        all possible values, as string.
      • xmlObjectToStrings

        @Nullable
        private List<String> xmlObjectToStrings​(@Nonnull
                                                org.opensaml.core.xml.XMLObject object)
        Convert an XMLObject to an array of String which can represent the type, if recognized.
        Parameters:
        object - object to convert
        Returns:
        the converted value, or null