Class DynamicAttribute
java.lang.Object
pl.edu.icm.unity.engine.api.attributes.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
(pl.edu.icm.unity.base.attribute.Attribute attribute) DynamicAttribute
(pl.edu.icm.unity.base.attribute.Attribute attribute, String displayedName, String description, boolean mandatory) DynamicAttribute
(pl.edu.icm.unity.base.attribute.Attribute attribute, pl.edu.icm.unity.base.attribute.AttributeType attributeType) DynamicAttribute
(pl.edu.icm.unity.base.attribute.Attribute attribute, pl.edu.icm.unity.base.attribute.AttributeType attributeType, String displayedName, String description, boolean mandatory) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
pl.edu.icm.unity.base.attribute.Attribute
pl.edu.icm.unity.base.attribute.AttributeType
getDescription
(pl.edu.icm.unity.base.attribute.AttributeType t) boolean
void
setAttribute
(pl.edu.icm.unity.base.attribute.Attribute attribute) void
setAttributeType
(pl.edu.icm.unity.base.attribute.AttributeType attributeType) void
setDescription
(String description) void
setDisplayedName
(String displayedName) void
setMandatory
(boolean mandatory) toString()
-
Constructor Details
-
DynamicAttribute
-
DynamicAttribute
-
DynamicAttribute
public DynamicAttribute(pl.edu.icm.unity.base.attribute.Attribute attribute) -
DynamicAttribute
public DynamicAttribute(pl.edu.icm.unity.base.attribute.Attribute attribute, pl.edu.icm.unity.base.attribute.AttributeType attributeType)
-
-
Method Details
-
getAttribute
public pl.edu.icm.unity.base.attribute.Attribute getAttribute() -
setAttribute
public void setAttribute(pl.edu.icm.unity.base.attribute.Attribute attribute) -
getDisplayedName
-
setDisplayedName
-
getDescription
-
getDescription
-
setDescription
-
isMandatory
public boolean isMandatory() -
setMandatory
public void setMandatory(boolean mandatory) -
getAttributeType
public pl.edu.icm.unity.base.attribute.AttributeType getAttributeType() -
setAttributeType
public void setAttributeType(pl.edu.icm.unity.base.attribute.AttributeType attributeType) -
clone
-
toString
-
equals
-