Package pl.edu.icm.unity.types
Class DescribedObjectROImpl
- java.lang.Object
-
- pl.edu.icm.unity.types.DescribedObjectROImpl
-
- All Implemented Interfaces:
DescribedObject
,NamedObject
- Direct Known Subclasses:
BaseForm
,CredentialType
,DescribedObjectImpl
public class DescribedObjectROImpl extends Object implements DescribedObject
Read only implementation ofDescribedObject
interface. Useful for extending- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description protected String
description
protected String
name
-
Constructor Summary
Constructors Modifier Constructor Description protected
DescribedObjectROImpl()
DescribedObjectROImpl(com.fasterxml.jackson.databind.node.ObjectNode root)
DescribedObjectROImpl(String name, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected void
fromJsonDescObj(com.fasterxml.jackson.databind.node.ObjectNode root)
String
getDescription()
String
getName()
int
hashCode()
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
String
toString()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedObject
- Returns:
- human readable name of the object. Must be unique for the object class.
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceDescribedObject
- Returns:
- human readable description of the object.
-
fromJsonDescObj
protected final void fromJsonDescObj(com.fasterxml.jackson.databind.node.ObjectNode root)
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()
-
-