Added organizazionOrganization to RELTYPE
This commit is contained in:
parent
3e0159dcd4
commit
2d0c317137
|
@ -19,9 +19,8 @@ public class Relation extends Oaf implements Serializable {
|
||||||
resultProject,
|
resultProject,
|
||||||
resultOrganization,
|
resultOrganization,
|
||||||
projectOrganization,
|
projectOrganization,
|
||||||
datasourceOrganization
|
datasourceOrganization,
|
||||||
|
organizationOrganization;
|
||||||
//TODO organizationOrganization ????
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum SUBRELTYPE {
|
public enum SUBRELTYPE {
|
||||||
|
@ -97,6 +96,7 @@ public class Relation extends Oaf implements Serializable {
|
||||||
Obsoletes,
|
Obsoletes,
|
||||||
Reviews,
|
Reviews,
|
||||||
isSimilarTo,
|
isSimilarTo,
|
||||||
|
isDifferentFrom,
|
||||||
produces;
|
produces;
|
||||||
|
|
||||||
public static boolean exists(String relclass) {
|
public static boolean exists(String relclass) {
|
||||||
|
@ -119,6 +119,7 @@ public class Relation extends Oaf implements Serializable {
|
||||||
case isMergedIn:
|
case isMergedIn:
|
||||||
case merges:
|
case merges:
|
||||||
case isSimilarTo:
|
case isSimilarTo:
|
||||||
|
case isDifferentFrom:
|
||||||
return SUBRELTYPE.dedup;
|
return SUBRELTYPE.dedup;
|
||||||
case isProducedBy:
|
case isProducedBy:
|
||||||
case produces:
|
case produces:
|
||||||
|
@ -180,7 +181,7 @@ public class Relation extends Oaf implements Serializable {
|
||||||
/**
|
/**
|
||||||
* This mehtod is an implementation of the valueOF case insensitive
|
* This mehtod is an implementation of the valueOF case insensitive
|
||||||
* @param value the input Value
|
* @param value the input Value
|
||||||
* @return the RELCLASS
|
* @return the RELCLASS
|
||||||
*/
|
*/
|
||||||
public static RELCLASS lookUp(String value) {
|
public static RELCLASS lookUp(String value) {
|
||||||
Optional<RELCLASS> rvlaue = Arrays.stream(RELCLASS.values()).filter(e -> e.name().equalsIgnoreCase(value)).findAny();
|
Optional<RELCLASS> rvlaue = Arrays.stream(RELCLASS.values()).filter(e -> e.name().equalsIgnoreCase(value)).findAny();
|
||||||
|
@ -288,6 +289,10 @@ public class Relation extends Oaf implements Serializable {
|
||||||
return IsReviewedBy;
|
return IsReviewedBy;
|
||||||
case produces:
|
case produces:
|
||||||
return isProducedBy;
|
return isProducedBy;
|
||||||
|
case isSimilarTo:
|
||||||
|
return isSimilarTo;
|
||||||
|
case isDifferentFrom:
|
||||||
|
return isDifferentFrom;
|
||||||
}
|
}
|
||||||
// makes the compiler happy
|
// makes the compiler happy
|
||||||
throw new IllegalArgumentException("missing inverse mapping for" + this);
|
throw new IllegalArgumentException("missing inverse mapping for" + this);
|
||||||
|
|
Loading…
Reference in New Issue