Class Attribute

  • All Implemented Interfaces:
    NamedObject
    Direct Known Subclasses:
    AttributeExt

    public class Attribute
    extends Object
    implements NamedObject
    Represents an attribute instance. Attribute has a group where it is valid (or valid and defined depending on context) and list of values. Values type of this class are of String class. While for String attributes this is a natural encoding for some other the string is an effect of some sort of serialization as Base64. Values can be (de)serialized using proper value syntax object. The value syntax name is stored with an attribute for convenience, although it duplicates an information stored in AttributeType of this attribute.

    Author:
    K. Benedyczak
    • Constructor Detail

      • Attribute

        public Attribute​(Attribute toClone)
      • Attribute

        public Attribute​(com.fasterxml.jackson.databind.node.ObjectNode src)
        Full deserialization from JSON
      • Attribute

        public Attribute​(String name,
                         String valueSyntax,
                         String groupPath,
                         com.fasterxml.jackson.databind.node.ObjectNode src)
        Partial deserialization from JSON
    • Method Detail

      • getGroupPath

        public String getGroupPath()
      • getName

        public String getName()
        Specified by:
        getName in interface NamedObject
        Returns:
        human readable name of the object. Must be unique for the object class.
      • getTranslationProfile

        public String getTranslationProfile()
      • getRemoteIdp

        public String getRemoteIdp()
      • getValueSyntax

        public String getValueSyntax()
      • setName

        public void setName​(String name)
      • setValueSyntax

        public void setValueSyntax​(String valueSyntax)
      • setGroupPath

        public void setGroupPath​(String groupPath)
      • setValues

        public void setValues​(List<String> values)
      • setValues

        public void setValues​(String... values)
      • setTranslationProfile

        public void setTranslationProfile​(String translationProfile)
      • setRemoteIdp

        public void setRemoteIdp​(String remoteIdp)
      • toJson

        public com.fasterxml.jackson.databind.node.ObjectNode toJson()
      • fromJson

        protected final void fromJson​(com.fasterxml.jackson.databind.node.ObjectNode main)
      • fromJsonBase

        protected final void fromJsonBase​(com.fasterxml.jackson.databind.node.ObjectNode main)
      • toJsonBase

        protected com.fasterxml.jackson.databind.node.ObjectNode toJsonBase()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object