- All Superinterfaces:
AbstractModelComponent
,ReadOnlyInterface
,WritableInterface
- All Known Subinterfaces:
AbstractBioNode
,AbstractEdge
,AbstractNode
,AbstractVisibleComponent
,Compartment
,Diagram
,EffectorEdge
,FluxEdge
,GraphicsBox
,GraphicsEdge
,GraphicsNode
,GraphicsPath
,Link
,LinkEdge
,Metabolite
,MetaboliteType
,Pathway
,Reaction
public interface AbstractModelComponent extends AbstractModelComponent, WritableInterface
-
Method Summary
Modifier and Type Method Description Field
getField(String fieldName)
Returns the field of the submitted network object defined in the document embedded OVL script.Field
getField(String namespace, String fieldName)
Returns the field of the submitted network object defined in the give namespace.boolean
isChangeable()
Checks if the given element can be changed.Model
model()
Reference to the model instance.AbstractModelComponent
toReadOnly()
Methods inherited from interface omix.plugin.model.AbstractModelComponent
addChangeListener, addPropertyChangeListener, fieldExists, getIdentifier, removeChangeListener, removePropertyChangeListener
-
Method Details
-
model
Model model()Description copied from interface:AbstractModelComponent
Reference to the model instance.- Specified by:
model
in interfaceAbstractModelComponent
- Returns:
- model
-
isChangeable
boolean isChangeable()Checks if the given element can be changed.- Returns:
- is changeable
-
toReadOnly
AbstractModelComponent toReadOnly()- Specified by:
toReadOnly
in interfaceWritableInterface
-
getField
Returns the field of the submitted network object defined in the document embedded OVL script.- Specified by:
getField
in interfaceAbstractModelComponent
- Parameters:
fieldName
-- Returns:
- reference object representing the field
- Throws:
IllegalAccessException
- if field is protectedNoSuchFieldException
- if field does not exist
-
getField
Field getField(String namespace, String fieldName) throws IllegalAccessException, NoSuchFieldExceptionReturns the field of the submitted network object defined in the give namespace.- Specified by:
getField
in interfaceAbstractModelComponent
- Parameters:
namespace
-fieldName
-- Returns:
- reference object representing the field
- Throws:
IllegalAccessException
- if field is protectedNoSuchFieldException
- if field does not exist
-