if ( name.equals( NONE.name ) ) {
return NONE;
}
else if ( name.equals( FULL.name ) ) {
return FULL;
}
else if ( name.equals( PARTIAL.name ) ) {
return PARTIAL;
}
else {
throw new StreamCorruptedException( "unrecognized value inclusion [" + name + "]" );
}