public static Set getBiopaxPropertyValues ( BioPAXElement bpe , String property ) { // get the BioPAX L3 property editors map EditorMap em = SimpleEditorMap . L3 ; // get the 'organism' biopax property editor, // if exists for this type of bpe @ SuppressWarnings ( "unchecked" ) PropertyEditor < BioPAXElement , Object > editor = ( PropertyEditor < BioPAXElement , Object > ) em . getEditorForProperty ( property , bpe . getModelInterface ( ) ) ; // if the biopax object does have such property, get values if ( editor != null ) { return editor . getValueFromBean ( bpe ) ; } else return null ; }
Example 2 .