Class RootObject

java.lang.Object
io.micronaut.eclipsestore.rest.RootObject

public class RootObject extends Object
This object represents a root object for the EclipseStore REST api.
Since:
1.0.0
Author:
Tim Yates
  • Constructor Details

    • RootObject

      public RootObject(@NonNull @NonNull String name, @NonNull @NonNull String objectId)
      Construct a root object from a name and id.
      Parameters:
      name - the name of the root object
      objectId - the id of the root object
    • RootObject

      public RootObject(@NonNull @NonNull org.eclipse.store.storage.restadapter.types.ViewerRootDescription userRoot)
      Construct a root object from the EclipseStore description.
      Parameters:
      userRoot - the root description from EclipseStore
  • Method Details

    • getName

      @NonNull public @NonNull String getName()
      Returns:
      the name of the root object
    • getObjectId

      @NonNull public @NonNull String getObjectId()
      Returns:
      the id of the root object