Package org.djutils.metadata
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-2021 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectDescriptor(String name, String description, Class<?> objectClass)
Construct a new FieldDescription object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
(package private) String
getDescription()
Retrieve the description of the object.(package private) String
getName()
Retrieve the name of the object.Class<?>
getObjectClass()
Retrieve the Class of the object.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getName
String getName()
Retrieve the name of the object.- Returns:
- String; description of the object
-
getDescription
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
-
-