java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.thing.Thing
Direct Known Subclasses:
ContactPoint, Organization, Person

public sealed class Thing extends Object permits ContactPoint, Organization, Person
Base type for the schema.org-style Thing entities referenced by search results.

This sealed class models the fields common to all entity results — type, name, url, and thumbnail — and permits exactly the subtypes Person, Organization, and ContactPoint.

  • Field Details

    • type

      protected final String type
      The thing type.
    • name

      protected final String name
      The thing name.
    • url

      protected final String url
      The thing URL.
    • thumbnail

      protected final Thumbnail thumbnail
      The thing thumbnail.
  • Method Details

    • getType

      public String getType()
      Returns the thing type.
      Returns:
      the thing type
    • getName

      public String getName()
      Returns the thing name.
      Returns:
      the thing name
    • getUrl

      public String getUrl()
      Returns the thing URL.
      Returns:
      the URL
    • getThumbnail

      public Thumbnail getThumbnail()
      Returns the thumbnail.
      Returns:
      the thumbnail