|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biopax.paxtools.controller.EditorMapAdapter
public abstract class EditorMapAdapter
This is the base adapter for all editor maps. A PropertyEditor is an object that can
manipulate a certain property. Editor maps are responsible for initializing these editors and
providing them. The default level is the latest official release of BioPAX.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.Class<? extends BioPAXElement>,java.util.Map<java.lang.String,PropertyEditor>> |
classToEditorMap
|
protected java.util.Map<java.lang.Class<? extends BioPAXElement>,java.util.Set<PropertyEditor>> |
classToEditorSet
|
protected java.util.Map<java.lang.Class<? extends BioPAXElement>,java.util.Set<ObjectPropertyEditor>> |
classToInverseEditorMap
|
protected java.util.Map<java.lang.String,java.util.Set<PropertyEditor>> |
propertyToEditorMap
|
| Constructor Summary | |
|---|---|
EditorMapAdapter()
|
|
| Method Summary | ||
|---|---|---|
protected PropertyEditor |
createAndRegisterBeanEditor(java.lang.String pName,
java.lang.Class domain,
java.util.Map<java.lang.Class<? extends BioPAXElement>,java.util.Set<java.lang.Class<? extends BioPAXElement>>> rRestrictions)
|
|
|
getEditorForProperty(java.lang.String property,
java.lang.Class<D> javaClass)
This method returns the editor intended to handle property named property of a class (javaClass). |
|
java.util.Set<PropertyEditor> |
getEditorsForProperty(java.lang.String property)
This method returns the set of editors intended to handle property named property. |
|
java.util.Set<PropertyEditor> |
getEditorsOf(BioPAXElement bpe)
This method returns the set of editors whose domain contains the class of given BioPAX element. |
|
java.util.Set<PropertyEditor> |
getEditorsOf(java.lang.Class<? extends BioPAXElement> domain)
|
|
java.util.Set<ObjectPropertyEditor> |
getInverseEditorsOf(BioPAXElement bpe)
|
|
java.util.Set<ObjectPropertyEditor> |
getInverseEditorsOf(java.lang.Class<? extends BioPAXElement> domain)
|
|
|
getKnownSubClassesOf(java.lang.Class<E> javaClass)
Returns a set of sub classes of a given class. |
|
protected java.lang.Class<? extends BioPAXElement> |
getModelInterface(java.lang.String localName)
|
|
|
getSubclassEditorsForProperty(java.lang.String property,
java.lang.Class<D> domain)
This method returns the set of editors intended to handle property named property. |
|
protected boolean |
isInBioPAXNameSpace(java.lang.String nameSpace)
|
|
protected void |
registerEditorsWithSubClasses(PropertyEditor editor,
java.lang.Class<? extends BioPAXElement> domain)
|
|
protected void |
registerModelClass(java.lang.String localName)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.biopax.paxtools.controller.EditorMap |
|---|
getLevel |
| Field Detail |
|---|
protected final java.util.Map<java.lang.String,java.util.Set<PropertyEditor>> propertyToEditorMap
protected final java.util.Map<java.lang.Class<? extends BioPAXElement>,java.util.Map<java.lang.String,PropertyEditor>> classToEditorMap
protected final java.util.Map<java.lang.Class<? extends BioPAXElement>,java.util.Set<ObjectPropertyEditor>> classToInverseEditorMap
protected final java.util.Map<java.lang.Class<? extends BioPAXElement>,java.util.Set<PropertyEditor>> classToEditorSet
| Constructor Detail |
|---|
public EditorMapAdapter()
| Method Detail |
|---|
public java.util.Set<PropertyEditor> getEditorsOf(BioPAXElement bpe)
EditorMap
getEditorsOf in interface EditorMapbpe - BioPAX element for which the avaliable editors will be returned
public java.util.Set<PropertyEditor> getEditorsOf(java.lang.Class<? extends BioPAXElement> domain)
getEditorsOf in interface EditorMappublic java.util.Set<ObjectPropertyEditor> getInverseEditorsOf(BioPAXElement bpe)
getInverseEditorsOf in interface EditorMappublic java.util.Set<ObjectPropertyEditor> getInverseEditorsOf(java.lang.Class<? extends BioPAXElement> domain)
getInverseEditorsOf in interface EditorMap
public <D extends BioPAXElement> PropertyEditor<? super D,?> getEditorForProperty(java.lang.String property,
java.lang.Class<D> javaClass)
EditorMap
getEditorForProperty in interface EditorMapproperty - name of the property for which editor will be calledjavaClass - class of the element
public <D extends BioPAXElement> java.util.Set<PropertyEditor<? extends D,?>> getSubclassEditorsForProperty(java.lang.String property,
java.lang.Class<D> domain)
EditorMap
getSubclassEditorsForProperty in interface EditorMapproperty - name of the property for which editor will be called
public java.util.Set<PropertyEditor> getEditorsForProperty(java.lang.String property)
EditorMap
getEditorsForProperty in interface EditorMapproperty - name of the property for which editor will be called
public <E extends BioPAXElement> java.util.Set<java.lang.Class<E>> getKnownSubClassesOf(java.lang.Class<E> javaClass)
EditorMap
getKnownSubClassesOf in interface EditorMapjavaClass - the class whose subclasses will be returned
protected boolean isInBioPAXNameSpace(java.lang.String nameSpace)
protected PropertyEditor createAndRegisterBeanEditor(java.lang.String pName,
java.lang.Class domain,
java.util.Map<java.lang.Class<? extends BioPAXElement>,java.util.Set<java.lang.Class<? extends BioPAXElement>>> rRestrictions)
protected void registerEditorsWithSubClasses(PropertyEditor editor,
java.lang.Class<? extends BioPAXElement> domain)
protected void registerModelClass(java.lang.String localName)
protected java.lang.Class<? extends BioPAXElement> getModelInterface(java.lang.String localName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||