// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// Contact: phylosoft @ gmail . com
-// WWW: www.phylosoft.org/forester
+// WWW: https://sites.google.com/site/cmzmasek/home/software/forester
package org.forester.go;
else if ( type.toLowerCase().equals( POSITIVELY_REGULATES_STR ) ) {
_type = Type.POSITIVELY_REGULATES;
}
+ else if ( type.toLowerCase().equals( HAS_PART_STR ) ) {
+ _type = Type.HAS_PART;
+ }
else {
throw new IllegalArgumentException( "unknown GO relationship type: " + type );
}
case REGULATES:
sb.append( REGULATES_STR );
break;
+ case HAS_PART:
+ sb.append( HAS_PART_STR );
+ break;
default:
- new AssertionError( "unknown type: " + getType() );
+ new IllegalStateException( "unknown type: " + getType() );
}
sb.append( ": " );
sb.append( getGoId().toString() );