Class DynamicAttribute

java.lang.Object
pl.edu.icm.unity.engine.api.attributes.DynamicAttribute

public class DynamicAttribute extends Object
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 Details

    • DynamicAttribute

      public DynamicAttribute(pl.edu.icm.unity.base.attribute.Attribute attribute, String displayedName, String description, boolean mandatory)
    • DynamicAttribute

      public DynamicAttribute(pl.edu.icm.unity.base.attribute.Attribute attribute, pl.edu.icm.unity.base.attribute.AttributeType attributeType, String displayedName, String description, boolean mandatory)
    • 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

      public String getDisplayedName()
    • setDisplayedName

      public void setDisplayedName(String displayedName)
    • getDescription

      public String getDescription()
    • getDescription

      public String getDescription(pl.edu.icm.unity.base.attribute.AttributeType t)
    • setDescription

      public void setDescription(String description)
    • 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

      public DynamicAttribute clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object