Constructor and Description |
---|
URIDistance()
Create a new
URIDistance . |
Modifier and Type | Method and Description |
---|---|
Iterable<String> |
apply(EObject input) |
int |
getUpperBoundDistance()
return the maximum value we can get for this distance.
|
int |
proximity(EObject a,
EObject b)
Return a metric result URI similarities.
|
int |
proximity(Iterable<String> aPath,
Iterable<String> bPath)
Return a metric result URI similarities.
|
String |
retrieveFragment(EObject input)
the containing fragment for a given
EObject . |
void |
setComparison(Comparison comparison)
Set an optional comparison used to retrieve matches already computed.
|
public URIDistance()
URIDistance
.public void setComparison(Comparison comparison)
comparison
- the comparison to use to retrieve the matches.public int proximity(EObject a, EObject b)
public int proximity(Iterable<String> aPath, Iterable<String> bPath)
public String retrieveFragment(EObject input)
EObject
.input
- an EObject.public int getUpperBoundDistance()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.