Interface Attributes
- 
 public interface AttributesHolds 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). - Author:
- Pedro Igor
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classAttributes.EntryHolds an attribute and its values, providing useful methods for obtaining and formatting values.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancontainsValue(String name, String value)Checks if there is an attribute with the givennameandvalue.default booleanexists(String name)Checks if there is an attribute with the givenname.static Attributesfrom(Map<String,Collection<String>> attributes)default Attributes.EntrygetValue(String name)Returns aAttributes.Entryfrom where values can be obtained and parsed accordingly.Map<String,Collection<String>>toMap()Converts to aMap.
 
- 
- 
- 
Method Detail- 
fromstatic Attributes from(Map<String,Collection<String>> attributes) 
 - 
toMapMap<String,Collection<String>> toMap() Converts to aMap.- Returns:
 
 - 
existsdefault boolean exists(String name) Checks if there is an attribute with the givenname.- Parameters:
- name- the attribute name
- Returns:
- true if any attribute with nameexist. Otherwise, returns false.
 
 - 
containsValuedefault boolean containsValue(String name, String value) Checks if there is an attribute with the givennameandvalue.- Parameters:
- name- the attribute name
- value- the attribute value
- Returns:
- true if any attribute with nameandvalueexist. Otherwise, returns false.
 
 - 
getValuedefault Attributes.Entry getValue(String name) Returns aAttributes.Entryfrom where values can be obtained and parsed accordingly.- Parameters:
- name- the attribute name
- Returns:
- an Attributes.Entryholding the values for an attribute
 
 
- 
 
-