Class ResourceId

    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceId()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract ContinuousResourceId child​(java.lang.Class<?> child)
      Returns a resource ID of a child of this resource based on the specified object.
      abstract DiscreteResourceId child​(java.lang.Object child)
      Returns a resource ID of a child of this resource based on the specified object.
      abstract java.util.Optional<DiscreteResourceId> parent()
      Returns the parent resource ID of this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceId

        public ResourceId()
    • Method Detail

      • parent

        public abstract java.util.Optional<DiscreteResourceId> parent()
        Returns the parent resource ID of this instance.
        Returns:
        the parent resource ID of this instance. If there is no parent, empty instance will be returned.
      • child

        public abstract DiscreteResourceId child​(java.lang.Object child)
        Returns a resource ID of a child of this resource based on the specified object. If the given object is a Class instance, IllegalArgumentException is thrown.
        Parameters:
        child - the last component of the child
        Returns:
        a child resource ID
      • child

        public abstract ContinuousResourceId child​(java.lang.Class<?> child)
        Returns a resource ID of a child of this resource based on the specified object.
        Parameters:
        child - the last component of the child
        Returns:
        a child resource ID