public enum SimpleEditorMap extends Enum<SimpleEditorMap> implements EditorMap
get(org.biopax.paxtools.model.BioPAXLevel)
method.Modifier and Type | Method and Description |
---|---|
static EditorMap |
buildCustomEditorMap(BioPAXLevel level,
InputStream stream) |
static SimpleEditorMap |
get(BioPAXLevel level)
To obtain a copy of the editor map for the corresponding level, use the
|
<D extends BioPAXElement> |
getEditorForProperty(String property,
Class<D> javaClass)
This method returns the editor intended to handle
property named property of a class (javaClass).
|
Set<PropertyEditor> |
getEditorsForProperty(String property)
This method returns the set of editors intended to handle
property named property.
|
Set<PropertyEditor> |
getEditorsOf(BioPAXElement bpe)
This method returns the set of editors whose domain
subsumes the class of given BioPAX element.
|
Set<PropertyEditor> |
getEditorsOf(Class<? extends BioPAXElement> domain)
This method returns the set of editors whose domain
subsumes the given class
|
Set<ObjectPropertyEditor> |
getInverseEditorsOf(BioPAXElement bpe)
Properties in BioPAX specification is unidirectional.
|
Set<ObjectPropertyEditor> |
getInverseEditorsOf(Class<? extends BioPAXElement> domain)
Properties in BioPAX specification is unidirectional.
|
<E extends BioPAXElement> |
getKnownSubClassesOf(Class<E> javaClass)
Returns a set of sub classes of a given class.
|
BioPAXLevel |
getLevel()
Returns the BioPAX level for which editor map is created.
|
<D extends BioPAXElement> |
getSubclassEditorsForProperty(String property,
Class<D> domain)
This method returns the set of editors intended to handle
property named property.
|
Iterator<PropertyEditor> |
iterator() |
static SimpleEditorMap |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleEditorMap[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleEditorMap L1
public static final SimpleEditorMap L2
public static final SimpleEditorMap L3
public static SimpleEditorMap[] values()
for (SimpleEditorMap c : SimpleEditorMap.values()) System.out.println(c);
public static SimpleEditorMap valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static SimpleEditorMap get(BioPAXLevel level)
level
- the BioPAX levelpublic <D extends BioPAXElement> PropertyEditor<? super D,?> getEditorForProperty(String property, Class<D> javaClass)
EditorMap
getEditorForProperty
in interface EditorMap
D
- domainproperty
- name of the property for which editor will be calledjavaClass
- class of the elementpublic Set<PropertyEditor> getEditorsForProperty(String property)
EditorMap
getEditorsForProperty
in interface EditorMap
property
- name of the property for which editor will be calledpublic <D extends BioPAXElement> Set<PropertyEditor<? extends D,?>> getSubclassEditorsForProperty(String property, Class<D> domain)
EditorMap
getSubclassEditorsForProperty
in interface EditorMap
D
- domain biopax typeproperty
- name of the property for which editor will be calleddomain
- biopax type/class the property belongs topublic Set<PropertyEditor> getEditorsOf(BioPAXElement bpe)
EditorMap
getEditorsOf
in interface EditorMap
bpe
- BioPAX element for which the available editors will be returnedpublic Set<ObjectPropertyEditor> getInverseEditorsOf(BioPAXElement bpe)
EditorMap
getInverseEditorsOf
in interface EditorMap
bpe
- BioPAX element for which the available inverse editors will be returned.public <E extends BioPAXElement> Set<? extends Class<E>> getKnownSubClassesOf(Class<E> javaClass)
EditorMap
getKnownSubClassesOf
in interface EditorMap
E
- biopax type (biopax object model interface)javaClass
- the class whose subclasses will be returnedpublic BioPAXLevel getLevel()
EditorMap
public Set<PropertyEditor> getEditorsOf(Class<? extends BioPAXElement> domain)
EditorMap
getEditorsOf
in interface EditorMap
domain
- BioPAX model interface for which the available editors will be returnedpublic Set<ObjectPropertyEditor> getInverseEditorsOf(Class<? extends BioPAXElement> domain)
EditorMap
getInverseEditorsOf
in interface EditorMap
domain
- of the inverse propertypublic Iterator<PropertyEditor> iterator()
public static EditorMap buildCustomEditorMap(BioPAXLevel level, InputStream stream)
Copyright © 2015 BioPAX. All rights reserved.