Package pl.edu.icm.unity.types.basic
Class Attribute
java.lang.Object
pl.edu.icm.unity.types.basic.Attribute
- All Implemented Interfaces:
NamedObject
- Direct Known Subclasses:
AttributeExt
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 Summary
ConstructorDescriptionAttribute
(com.fasterxml.jackson.databind.node.ObjectNode src) Full deserialization from JSONAttribute
(String name, String valueSyntax, String groupPath, com.fasterxml.jackson.databind.node.ObjectNode src) Partial deserialization from JSONAttribute
(String name, String valueSyntax, String groupPath, List<String> values, String remoteIdp, String translationProfile) Full constructor -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
protected final void
fromJson
(com.fasterxml.jackson.databind.node.ObjectNode main) protected final void
fromJsonBase
(com.fasterxml.jackson.databind.node.ObjectNode main) getName()
int
hashCode()
void
setGroupPath
(String groupPath) void
void
setRemoteIdp
(String remoteIdp) void
setTranslationProfile
(String translationProfile) void
void
void
setValueSyntax
(String valueSyntax) com.fasterxml.jackson.databind.node.ObjectNode
toJson()
protected com.fasterxml.jackson.databind.node.ObjectNode
toString()
-
Constructor Details
-
Attribute
-
Attribute
public Attribute(String name, String valueSyntax, String groupPath, List<String> values, String remoteIdp, String translationProfile) Full constructor -
Attribute
-
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 Details
-
getGroupPath
-
getValues
-
getName
- Specified by:
getName
in interfaceNamedObject
- Returns:
- human readable name of the object. Must be unique for the object class.
-
getTranslationProfile
-
getRemoteIdp
-
getValueSyntax
-
setName
-
setValueSyntax
-
setGroupPath
-
setValues
-
setValues
-
setTranslationProfile
-
setRemoteIdp
-
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() -
clone
-
toString
-
hashCode
public int hashCode() -
equals
-