AttributeValue
instead.@Deprecated @ThreadSafe public final class PersonalAttribute extends Object
Note that every iterator obtained from this class MUST synchronize around its iteration loop.
Modifier and Type | Class and Description |
---|---|
static class |
PersonalAttribute.Status
Deprecated.
|
Constructor and Description |
---|
PersonalAttribute(PersonalAttribute copy)
Deprecated.
Copy constructor which keeps the same name and copies all values.
|
PersonalAttribute(PersonalAttribute copy,
String newName,
String newFriendlyName)
Deprecated.
Copy constructor which can change the name and copies all values.
|
PersonalAttribute(String name,
String friendlyName)
Deprecated.
Default Constructor.
|
PersonalAttribute(String name,
String friendlyName,
boolean isRequired)
Deprecated.
|
PersonalAttribute(String attrName,
String friendlyName,
boolean attrIsRequired,
List<String> simpleValue)
Deprecated.
PersonalAttribute Constructor for complex values.
|
PersonalAttribute(String attrName,
String friendlyName,
boolean attrIsRequired,
Map<String,String> attrComplexValue)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PersonalAttribute |
copyOf(PersonalAttribute copy)
Deprecated.
Static factory to create a new copy of the given instance, including all values.
|
static PersonalAttribute |
copyOfWithNewName(PersonalAttribute copy,
String newName,
String newFriendlyName)
Deprecated.
Static factory to create a new copy of the given instance, including all values and which can change the name.
|
static PersonalAttribute |
copyOfWithNewNameWithoutValues(PersonalAttribute copy,
String newName,
String newFriendlyName)
Deprecated.
Static factory to create a new copy of the given instance, excluding all values and which can change the name.
|
static PersonalAttribute |
copyOfWithoutValues(PersonalAttribute copy)
Deprecated.
Static factory to create a new copy of the given instance, excluding all values.
|
boolean |
equals(Object o)
Deprecated.
|
static String |
extractFriendlyName(String name)
Deprecated.
Guesses the friendly name from the given full attribute name URI.
|
Map<String,String> |
getComplexValue()
Deprecated.
Getter for the complex value.
|
String |
getDisplayValue()
Deprecated.
|
String |
getFriendlyName()
Deprecated.
/** Friendly Name of this personal attribute.
|
String |
getName()
Deprecated.
Returns the name of this personal attribute as a URI.
|
PersonalAttribute.Status |
getStatus()
Deprecated.
Getter for the status.
|
List<String> |
getValue()
Deprecated.
Getter for the value.
|
int |
hashCode()
Deprecated.
|
boolean |
isEidasLegalPersonAttr()
Deprecated.
|
boolean |
isEidasNaturalPersonAttr()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
Returns
true if this attribute has no simple value and no complex value, false otherwise. |
boolean |
isEmptyComplexValue()
Deprecated.
Returns true if the Complex Value is empty.
|
boolean |
isEmptyValue()
Deprecated.
Return true the value is empty.
|
boolean |
isRequired()
Deprecated.
Getter for the required value.
|
void |
setComplexValue(Map<String,String> complexVal)
Deprecated.
Setter for the complex value.
|
void |
setEidasLegalPersonAttr(boolean eidasLegalPersonAttrArg)
Deprecated.
|
void |
setEidasNaturalPersonAttr(boolean eidasNaturalPersonAttrArg)
Deprecated.
|
void |
setIsRequired(boolean attrIsRequired)
Deprecated.
Setter for the required value.
|
void |
setValue(List<String> attrValue)
Deprecated.
Setter for the list of values.
|
String |
toString()
Deprecated.
Prints the PersonalAttribute in the following format.
|
public PersonalAttribute(@Nonnull PersonalAttribute copy, @Nonnull String newName, @Nonnull String newFriendlyName)
copy
- the instance to copynewName
- the new namenewFriendlyName
- the new friendly namepublic PersonalAttribute(@Nonnull PersonalAttribute copy)
copy
- the instance to copypublic PersonalAttribute(@Nonnull String name, @Nonnull String friendlyName)
name
- the namefriendlyName
- the firendly namepublic PersonalAttribute(@Nonnull String name, @Nonnull String friendlyName, boolean isRequired)
public PersonalAttribute(@Nonnull String attrName, @Nonnull String friendlyName, boolean attrIsRequired, @Nonnull List<String> simpleValue)
attrName
- The attribute name.friendlyName
- the friendly nameattrIsRequired
- The attribute type value.simpleValue
- The attribute's value.@Deprecated public PersonalAttribute(@Nonnull String attrName, @Nonnull String friendlyName, boolean attrIsRequired, @Nonnull Map<String,String> attrComplexValue)
attrName
- The attribute name.friendlyName
- the firendly nameattrIsRequired
- The attribute type value.attrComplexValue
- The attribute's complex value.@Nullable public static PersonalAttribute copyOf(@Nullable PersonalAttribute copy)
copy
- the instance to copy@Nullable public static PersonalAttribute copyOfWithoutValues(@Nullable PersonalAttribute copy)
copy
- the instance to copy without any value@Nullable public static PersonalAttribute copyOfWithNewName(@Nullable PersonalAttribute copy, @Nonnull String newName, @Nonnull String newFriendlyName)
copy
- the instance to copynewName
- the new namenewFriendlyName
- the new friendly name@Nullable public static PersonalAttribute copyOfWithNewNameWithoutValues(@Nullable PersonalAttribute copy, @Nonnull String newName, @Nonnull String newFriendlyName)
copy
- the instance to copy without any valuenewName
- the new namenewFriendlyName
- the new friendly namepublic static String extractFriendlyName(@Nonnull String name)
name
- the attribute name URIpublic boolean isRequired()
public void setIsRequired(boolean attrIsRequired)
attrIsRequired
- this attribute?public String getName()
This is the full name as in http://eidas.europa.eu/attributes/naturalperson/CurrentFamilyName
.
public String getFriendlyName()
For example, for http://eidas.europa.eu/attributes/naturalperson/CurrentFamilyName
, the friendly name is
CurrentFamilyName
.
@Nonnull public List<String> getValue()
public void setValue(@Nullable List<String> attrValue)
attrValue
- The personal attribute value.public PersonalAttribute.Status getStatus()
public boolean isEmpty()
true
if this attribute has no simple value and no complex value, false
otherwise.true
if this attribute has no simple value and no complex value, false
otherwise.@Nonnull public Map<String,String> getComplexValue()
public void setComplexValue(@Nullable Map<String,String> complexVal)
complexVal
- The personal attribute Complex value.public boolean isEmptyValue()
public boolean isEmptyComplexValue()
public boolean isEidasNaturalPersonAttr()
public void setEidasNaturalPersonAttr(boolean eidasNaturalPersonAttrArg)
public boolean isEidasLegalPersonAttr()
public void setEidasLegalPersonAttr(boolean eidasLegalPersonAttrArg)
Copyright © 2020. All Rights Reserved.