Class AttributeExt

java.lang.Object
pl.edu.icm.unity.types.basic.Attribute
pl.edu.icm.unity.types.basic.AttributeExt
All Implemented Interfaces:
NamedObject

public class AttributeExt extends Attribute
Extends the basic Attribute with metadata which is set by the server when returning attributes.
Author:
K. Benedyczak
  • Constructor Details

    • AttributeExt

      public AttributeExt(Attribute baseAttribute, boolean isDirect, Date creationTs, Date updateTs)
    • AttributeExt

      public AttributeExt(AttributeExt source, Date creationTs, Date updateTs)
      Cloning constructor. Deep cloning is performed.
    • AttributeExt

      public AttributeExt(Attribute baseAttribute, boolean isDirect)
      Upcasts Attribute to AttributeExt, creation and update dates are set to current time.
    • AttributeExt

      public AttributeExt(AttributeExt source)
      Cloning constructor. Deep cloning is performed.
    • AttributeExt

      public AttributeExt(com.fasterxml.jackson.databind.node.ObjectNode src)
    • AttributeExt

      public AttributeExt(String name, String valueSyntax, String groupPath, com.fasterxml.jackson.databind.node.ObjectNode src)
  • Method Details

    • isDirect

      public boolean isDirect()
      Returns:
      if true, the attribute is direclt defined in the group of its scope. If false it is an implied attribute, assigned by group's attribute statements.
    • setDirect

      public void setDirect(boolean direct)
    • getCreationTs

      public Date getCreationTs()
    • setCreationTs

      public void setCreationTs(Date creationTs)
    • getUpdateTs

      public Date getUpdateTs()
    • setUpdateTs

      public void setUpdateTs(Date updateTs)
    • toJson

      public com.fasterxml.jackson.databind.node.ObjectNode toJson()
      Overrides:
      toJson in class Attribute
    • toJsonBase

      public com.fasterxml.jackson.databind.node.ObjectNode toJsonBase()
      Overrides:
      toJsonBase in class Attribute
    • toJsonExt

      protected com.fasterxml.jackson.databind.node.ObjectNode toJsonExt(com.fasterxml.jackson.databind.node.ObjectNode root)
    • fromJsonExt

      protected final void fromJsonExt(com.fasterxml.jackson.databind.node.ObjectNode main)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Attribute
    • equals

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