Package pl.edu.icm.unity.types.basic
Class DynamicAttribute
- java.lang.Object
-
- pl.edu.icm.unity.types.basic.DynamicAttribute
-
public class DynamicAttribute extends Object
Wrapper forAttribute
. 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
Constructors Constructor Description DynamicAttribute(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DynamicAttribute
clone()
boolean
equals(Object obj)
Attribute
getAttribute()
AttributeType
getAttributeType()
String
getDescription()
String
getDescription(AttributeType t)
String
getDisplayedName()
boolean
isMandatory()
void
setAttribute(Attribute attribute)
void
setAttributeType(AttributeType attributeType)
void
setDescription(String description)
void
setDisplayedName(String displayedName)
void
setMandatory(boolean mandatory)
String
toString()
-
-
-
Constructor Detail
-
DynamicAttribute
public DynamicAttribute(Attribute attribute, String displayedName, String description, boolean mandatory)
-
DynamicAttribute
public DynamicAttribute(Attribute attribute, AttributeType attributeType, String displayedName, String description, boolean mandatory)
-
DynamicAttribute
public DynamicAttribute(Attribute attribute)
-
DynamicAttribute
public DynamicAttribute(Attribute attribute, AttributeType attributeType)
-
-
Method Detail
-
getAttribute
public Attribute getAttribute()
-
setAttribute
public void setAttribute(Attribute attribute)
-
getDisplayedName
public String getDisplayedName()
-
setDisplayedName
public void setDisplayedName(String displayedName)
-
getDescription
public String getDescription()
-
getDescription
public String getDescription(AttributeType t)
-
setDescription
public void setDescription(String description)
-
isMandatory
public boolean isMandatory()
-
setMandatory
public void setMandatory(boolean mandatory)
-
getAttributeType
public AttributeType getAttributeType()
-
setAttributeType
public void setAttributeType(AttributeType attributeType)
-
clone
public DynamicAttribute clone()
-
-