Class ObjectDescriptor

java.lang.Object
org.djutils.metadata.ObjectDescriptor
All Implemented Interfaces:
Serializable

public class ObjectDescriptor extends Object implements Serializable
ObjectDescriptor: wrapper for name, description and class of one object.

Copyright (c) 2020-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
Author:
Alexander Verbraeck, Peter Knoppers
See Also:
  • Constructor Details

    • ObjectDescriptor

      public ObjectDescriptor(String name, String description, Class<?> objectClass)
      Construct a new FieldDescription object.
      Parameters:
      name - String; name of the object
      description - String; description of the object
      objectClass - Class<?>; class of the object
  • Method Details

    • getName

      public String getName()
      Retrieve the name of the object.
      Returns:
      String; description of the object
    • getDescription

      public String getDescription()
      Retrieve the description of the object.
      Returns:
      String; description of the object
    • getObjectClass

      public Class<?> getObjectClass()
      Retrieve the Class of the object.
      Returns:
      String; class name of the object
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object