Class DynamicAttribute

java.lang.Object
pl.edu.icm.unity.types.basic.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(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 Details

    • 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()
      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