Class SubResources

java.lang.Object
org.forgerock.api.models.SubResources

public final class SubResources extends Object
Sub-resources of a resource are declared here.
  • Method Details

    • getSubResources

      public Map<String,Resource> getSubResources()
      Gets a Map of paths to Resources.
      Returns:
      The Map.
    • get

      public Resource get(String name)
      Gets the Resource for a given sub-resource name.
      Parameters:
      name - Sub-resource name
      Returns:
      Resource or null if does-not-exist.
    • getNames

      public Set<String> getNames()
      Returns all sub-resource names.
      Returns:
      The names.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public static SubResources.Builder subresources()
      Create a new Builder for sub-resources.
      Returns:
      Builder