Package org.forgerock.api.models
Class SubResources
- java.lang.Object
-
- org.forgerock.api.models.SubResources
-
public final class SubResources extends Object
Sub-resources of a resource are declared here.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubResources.Builder
Builder to help construct the SubResources.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Resource
get(String name)
Gets theResource
for a given sub-resource name.Set<String>
getNames()
Returns all sub-resource names.Map<String,Resource>
getSubResources()
Gets aMap
of paths toResource
s.int
hashCode()
static SubResources.Builder
subresources()
Create a new Builder for sub-resources.
-
-
-
Method Detail
-
getSubResources
public Map<String,Resource> getSubResources()
Gets aMap
of paths toResource
s.- Returns:
- The
Map
.
-
get
public Resource get(String name)
Gets theResource
for a given sub-resource name.- Parameters:
name
- Sub-resource name- Returns:
Resource
ornull
if does-not-exist.
-
subresources
public static SubResources.Builder subresources()
Create a new Builder for sub-resources.- Returns:
- Builder
-
-