@Test public void testSomePropertyRange() throws Exception { PropertyEditor<? extends BioPAXElement,?> entityReferencePropEditor = SimpleEditorMap.L3.getEditorForProperty("entityReference", Protein.class); assertEquals(EntityReference.class, entityReferencePropEditor.getRange()); entityReferencePropEditor = SimpleEditorMap.L3.getEditorForProperty("entityReference", Gene.class); assertNull(entityReferencePropEditor); }
public <D extends BioPAXElement> PropertyEditor<? super D, ?> getEditorForProperty(String property, Class<D> javaClass) { Map<String, PropertyEditor> classEditors = this.classToEditorMap.get(javaClass); PropertyEditor<? super D, ?> result = null; if (classEditors != null) { result = classEditors.get(property); if (result == null) { if (log.isDebugEnabled()) log.debug("Could not locate controller for " + property + " | " + javaClass); } } return result; }
EditorMapImpl implements EditorMap { public <D extends BioPAXElement> PropertyEditor<? super D, ?> getEditorForProperty(String property, Class<D> javaClass) { Map<String, PropertyEditor> classEditors = this.classToEditorMap.get(javaClass); PropertyEditor<? super D, ?> result = null; if (classEditors != null) { result = classEditors.get(property); if (result == null) { if (log.isDebugEnabled()) log.debug("Could not locate controller for " + property + " | " + javaClass); } } return result; } }
EditorMapImpl implements EditorMap { public <D extends BioPAXElement> PropertyEditor<? super D, ?> getEditorForProperty(String property, Class<D> javaClass) { Map<String, PropertyEditor> classEditors = this.classToEditorMap.get(javaClass); PropertyEditor<? super D, ?> result = null; if (classEditors != null) { result = classEditors.get(property); if (result == null) { if (log.isDebugEnabled()) log.debug("Could not locate controller for " + property + " | " + javaClass); } } return result; } EditorMapImpl(BioPAXLevel level); }
EditorMapImpl implements EditorMap { public <D extends BioPAXElement> PropertyEditor<? super D, ?> getEditorForProperty(String property, Class<D> javaClass) { Map<String, PropertyEditor> classEditors = this.classToEditorMap.get(javaClass); PropertyEditor<? super D, ?> result = null; if (classEditors != null) { result = classEditors.get(property); if (result == null) { if (log.isDebugEnabled()) log.debug("Could not locate controller for " + property + " | " + javaClass); } } return result; } EditorMapImpl(BioPAXLevel level); Set<PropertyEditor> getEditorsOf(BioPAXElement bpe); Set<PropertyEditor> getEditorsOf(Class<? extends BioPAXElement> domain); Set<ObjectPropertyEditor> getInverseEditorsOf(BioPAXElement bpe); Set<ObjectPropertyEditor> getInverseEditorsOf(Class<? extends BioPAXElement> domain); PropertyEditor<? super D, ?> getEditorForProperty(String property,
                                                                                       Class<D> javaClass); Set<PropertyEditor<? extends D, ?>> getSubclassEditorsForProperty(String
                                                                                                               property,
                                                                                                       Class<D> domain); Set<PropertyEditor> getEditorsForProperty(String property); Set<? extends Class<E>> getKnownSubClassesOf(Class<E> javaClass); Iterator<PropertyEditor> iterator(); BioPAXLevel getLevel(); }
EditorMapImpl implements EditorMap { public <D extends BioPAXElement> PropertyEditor<? super D, ?> getEditorForProperty(String property, Class<D> javaClass) { Map<String, PropertyEditor> classEditors = this.classToEditorMap.get(javaClass); PropertyEditor<? super D, ?> result = null; if (classEditors != null) { result = classEditors.get(property); if (result == null) { if (log.isDebugEnabled()) log.debug("Could not locate controller for " + property + " | " + javaClass); } } return result; } EditorMapImpl(BioPAXLevel level); Set<PropertyEditor> getEditorsOf(BioPAXElement bpe); Set<PropertyEditor> getEditorsOf(Class<? extends BioPAXElement> domain); Set<ObjectPropertyEditor> getInverseEditorsOf(BioPAXElement bpe); Set<ObjectPropertyEditor> getInverseEditorsOf(Class<? extends BioPAXElement> domain); PropertyEditor<? super D, ?> getEditorForProperty(String property,
                                                                                       Class<D> javaClass); Set<PropertyEditor<? extends D, ?>> getSubclassEditorsForProperty(String
                                                                                                               property,
                                                                                                       Class<D> domain); Set<PropertyEditor> getEditorsForProperty(String property); Set<? extends Class<E>> getKnownSubClassesOf(Class<E> javaClass); Iterator<PropertyEditor> iterator(); BioPAXLevel getLevel();  }