Package org.forgerock.api.models
Class Paths
- java.lang.Object
-
- org.forgerock.api.models.Paths
-
public final class Paths extends Object
Class that represents the Paths type in API descriptor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Paths.Builder
Builder to help construct the Paths.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
VersionedPath
get(String name)
Gets the Path for a given Path-name.Set<String>
getNames()
Returns all Path names.protected Map<String,VersionedPath>
getPaths()
Gets aMap
of path-names to Paths.int
hashCode()
static Paths.Builder
paths()
Create a new Builder for Paths.
-
-
-
Method Detail
-
getPaths
protected Map<String,VersionedPath> getPaths()
Gets aMap
of path-names to Paths. This method is currently only used for JSON serialization.- Returns:
Map
of path-names to Paths.
-
get
public VersionedPath get(String name)
Gets the Path for a given Path-name.- Parameters:
name
- Path name- Returns:
- Path or
null
if does-not-exist.
-
paths
public static Paths.Builder paths()
Create a new Builder for Paths.- Returns:
- Builder
-
-