else if ( type.toLowerCase().equals( HAS_PART_STR ) ) {
_type = Type.HAS_PART;
}
+ else if ( type.toLowerCase().equals( OCCURS_IN_STR ) ) {
+ _type = Type.OCCURS_IN;
+ }
else {
throw new IllegalArgumentException( "unknown GO relationship type: " + type );
}
case HAS_PART:
sb.append( HAS_PART_STR );
break;
+ case OCCURS_IN:
+ sb.append( OCCURS_IN_STR );
+ break;
default:
new IllegalStateException( "unknown type: " + getType() );
}
public static final String NEGATIVELY_REGULATES_STR = "negatively_regulates";
public static final String POSITIVELY_REGULATES_STR = "positively_regulates";
public static final String HAS_PART_STR = "has_part";
+ public static final String OCCURS_IN_STR ="occurs_in";
public GoId getGoId();
public Type getType();
public static enum Type {
- PART_OF, REGULATES, NEGATIVELY_REGULATES, POSITIVELY_REGULATES, HAS_PART;
+ PART_OF, REGULATES, NEGATIVELY_REGULATES, POSITIVELY_REGULATES, HAS_PART, OCCURS_IN;
}
}