Package cdc.issues.locations
Class Locations
java.lang.Object
cdc.issues.locations.Locations
Factory of
Location.- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocationCreates a Location instance from its standard string representation.static LocationCreates a Location instance.static BiFunction<String,String, ? extends Location> getFactoryOrNull(String tag) Returns the factory associated to a tag.getTags()static void
-
Method Details
-
register
-
getTags
- Returns:
- The set of tags for which a factory has been registered.
-
getFactoryOrNull
Returns the factory associated to a tag.- Parameters:
tag- The tag.- Returns:
- The factory associated to
tagornull.
-
build
Creates a Location instance.If a factory is registered for
tag, uses it. Otherwise, creates aDefaultLocation.- Parameters:
tag- The tag.path- The path.anchor- The anchor.- Returns:
- A new Location instance.
-
build
Creates a Location instance from its standard string representation.- Parameters:
location- The standard string representation of the location, as defined inLocation.toString(Location).- Returns:
- A new Location instance.
- See Also:
-