projects
/
gpl
/
argeo-suite.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Massive Argeo APIs refactoring
[gpl/argeo-suite.git]
/
org.argeo.suite.core
/
src
/
org
/
argeo
/
suite
/
core
/
SuiteTerm.java
diff --git
a/org.argeo.suite.core/src/org/argeo/suite/core/SuiteTerm.java
b/org.argeo.suite.core/src/org/argeo/suite/core/SuiteTerm.java
index 0c03dc514826dae39dc2ed80cc10f782c2f37bfb..227b567c31f8b18248e80c0bd41effd65324cfef 100644
(file)
--- a/
org.argeo.suite.core/src/org/argeo/suite/core/SuiteTerm.java
+++ b/
org.argeo.suite.core/src/org/argeo/suite/core/SuiteTerm.java
@@
-3,10
+3,12
@@
package org.argeo.suite.core;
import java.util.ArrayList;
import java.util.List;
import java.util.ArrayList;
import java.util.List;
+import org.argeo.entity.Term;
+
/**
* A single term. Helper to optimise {@link SuiteTermsManager} implementation.
*/
/**
* A single term. Helper to optimise {@link SuiteTermsManager} implementation.
*/
-class SuiteTerm {
+class SuiteTerm
implements Term
{
private final String name;
private final String relativePath;
private final SuiteTypology typology;
private final String name;
private final String relativePath;
private final SuiteTypology typology;
@@
-21,13
+23,19
@@
class SuiteTerm {
this.relativePath = relativePath;
int index = relativePath.lastIndexOf('/');
if (index > 0) {
this.relativePath = relativePath;
int index = relativePath.lastIndexOf('/');
if (index > 0) {
- this.name = relativePath.substring(index);
+ this.name = relativePath.substring(index
+ 1
);
} else {
this.name = relativePath;
}
id = typology.getName() + '/' + relativePath;
}
} else {
this.name = relativePath;
}
id = typology.getName() + '/' + relativePath;
}
+ @Override
+ public String getId() {
+ return id;
+ }
+
+ @Override
public String getName() {
return name;
}
public String getName() {
return name;
}
@@
-36,19
+44,18
@@
class SuiteTerm {
return relativePath;
}
return relativePath;
}
- SuiteTypology getTypology() {
+ @Override
+ public SuiteTypology getTypology() {
return typology;
}
return typology;
}
- public String getId() {
- return id;
- }
-
- List<SuiteTerm> getSubTerms() {
+ @Override
+ public List<SuiteTerm> getSubTerms() {
return subTerms;
}
return subTerms;
}
- SuiteTerm getParentTerm() {
+ @Override
+ public SuiteTerm getParentTerm() {
return parentTerm;
}
return parentTerm;
}