public interface Attributes
Holds attributes, their values and provides utlity methods to manage them.
In the future, it may be useful to provide different implementations for this interface in order to plug or integrate with different Policy Information Point (PIP).
Modifier and Type | Interface and Description |
---|---|
static class |
Attributes.Entry
Holds an attribute and its values, providing useful methods for obtaining and formatting values.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
containsValue(String name,
String value)
Checks if there is an attribute with the given
name and value . |
default boolean |
exists(String name)
Checks if there is an attribute with the given
name . |
static Attributes |
from(Map<String,Collection<String>> attributes) |
default Attributes.Entry |
getValue(String name)
Returns a
Attributes.Entry from where values can be obtained and parsed accordingly. |
Map<String,Collection<String>> |
toMap()
Converts to a
Map . |
static Attributes from(Map<String,Collection<String>> attributes)
Map<String,Collection<String>> toMap()
Map
.default boolean exists(String name)
name
.name
- the attribute namename
exist. Otherwise, returns false.default boolean containsValue(String name, String value)
name
and value
.name
- the attribute namevalue
- the attribute valuename
and value
exist. Otherwise, returns false.default Attributes.Entry getValue(String name)
Attributes.Entry
from where values can be obtained and parsed accordingly.name
- the attribute nameAttributes.Entry
holding the values for an attributeCopyright © 2020 JBoss by Red Hat. All rights reserved.