Package com.sodius.oslc.app.dng.requests
Class InsertRequirement.InsertLocation
- java.lang.Object
-
- com.sodius.oslc.app.dng.requests.InsertRequirement.InsertLocation
-
- Enclosing class:
- InsertRequirement
public static class InsertRequirement.InsertLocation extends Object
Describes the location at which a requirement is to insert within a module hierarchy. An instance of this class can be reused to instantiate multiple InsertRequirement requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InsertRequirement.InsertLocation.InsertLocationBuilder
Builds an instance of InsertLocation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InsertRequirement.InsertLocation.InsertLocationBuilder
below(URI parent)
Creates a location builder to insert a requirement below the specified parent requirement.static InsertRequirement.InsertLocation.InsertLocationBuilder
root(Module module)
Creates a location builder to insert a requirement at the root of a module.static InsertRequirement.InsertLocation.InsertLocationBuilder
root(URI module)
Creates a location builder to insert a requirement at the root of a module.
-
-
-
Method Detail
-
root
public static InsertRequirement.InsertLocation.InsertLocationBuilder root(URI module)
Creates a location builder to insert a requirement at the root of a module. Unless additional location information is later provided, the requirement will be inserted as last root element of the module.- Parameters:
module
- the URI of a module where to insert a requirement.- Returns:
- a builder of InsertLocation.
- See Also:
InsertRequirement.InsertLocation.InsertLocationBuilder.before(URI)
,InsertRequirement.InsertLocation.InsertLocationBuilder.after(URI)
-
root
public static InsertRequirement.InsertLocation.InsertLocationBuilder root(Module module)
Creates a location builder to insert a requirement at the root of a module. Unless additional location information is later provided, the requirement will be inserted as last root element of the module.- Parameters:
module
- the module where to insert a requirement.- Returns:
- a builder of InsertLocation.
- See Also:
InsertRequirement.InsertLocation.InsertLocationBuilder.before(URI)
,InsertRequirement.InsertLocation.InsertLocationBuilder.after(URI)
-
below
public static InsertRequirement.InsertLocation.InsertLocationBuilder below(URI parent)
Creates a location builder to insert a requirement below the specified parent requirement. Unless additional location information is later provided, the requirement will be inserted as last child element of the parent requirement.- Parameters:
parent
- the URI of the parent requirement, as returned by module.getUses().- Returns:
- a builder of InsertLocation.
- See Also:
InsertRequirement.InsertLocation.InsertLocationBuilder.before(URI)
,InsertRequirement.InsertLocation.InsertLocationBuilder.after(URI)
-
-