Package pl.edu.icm.unity.types.basic
Class DynamicAttribute
java.lang.Object
pl.edu.icm.unity.types.basic.DynamicAttribute
Wrapper for
Attribute
. Contains attribute and additional metadata: displayedName,
description and indicator whether attribute is mandatory.
This additional meta informations are filled after output translation profile processing
and used when attributes are showing on consent screen: displayName
as attribute name and description as tooltip. If attribute is mandatory user cannot hide it
on consent screen.- Author:
- P.Piernik
-
Constructor Summary
ConstructorDescriptionDynamicAttribute
(Attribute attribute) DynamicAttribute
(Attribute attribute, String displayedName, String description, boolean mandatory) DynamicAttribute
(Attribute attribute, AttributeType attributeType) DynamicAttribute
(Attribute attribute, AttributeType attributeType, String displayedName, String description, boolean mandatory) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
boolean
void
setAttribute
(Attribute attribute) void
setAttributeType
(AttributeType attributeType) void
setDescription
(String description) void
setDisplayedName
(String displayedName) void
setMandatory
(boolean mandatory) toString()
-
Constructor Details
-
DynamicAttribute
-
DynamicAttribute
public DynamicAttribute(Attribute attribute, AttributeType attributeType, String displayedName, String description, boolean mandatory) -
DynamicAttribute
-
DynamicAttribute
-
-
Method Details
-
getAttribute
-
setAttribute
-
getDisplayedName
-
setDisplayedName
-
getDescription
-
getDescription
-
setDescription
-
isMandatory
public boolean isMandatory() -
setMandatory
public void setMandatory(boolean mandatory) -
getAttributeType
-
setAttributeType
-
clone
-
toString
-
equals
-