- All Superinterfaces:
AbstractItem
,AbstractItem
,AbstractModelItem
,ReadOnlyInterface
,WritableInterface
- All Known Subinterfaces:
AbstractBioNodeItem
,AbstractEdgeItem
,AbstractNodeItem
,CompartmentItem
,EffectorEdgeItem
,FluxEdgeItem
,GraphicsBoxItem
,GraphicsEdgeItem
,GraphicsNodeItem
,GraphicsPathItem
,LinkEdgeItem
,LinkItem
,MetaboliteItem
,PathwayItem
,ReactionItem
public interface AbstractModelItem extends AbstractItem, AbstractModelItem
-
Method Summary
Modifier and Type Method Description default AccessoryItem
getAccessoryItem(String accessoryName)
Returns the accessory item of the submitted name defined in the namespace.AccessoryItem
getAccessoryItem(String namespace, String accessoryName)
Returns the accessory item of the submitted name defined in the namespace.List<? extends AccessoryItem>
getAccessoryItems()
Returns all accessory items defined in the document embedded OVL script.List<? extends AccessoryItem>
getAccessoryItems(String namespace)
Returns all accessory items defined in the given namespace.List<? extends AccessoryItem>
getAllAccessoryItems()
Returns all accessory items defined in the document embedded OVL script and all namespaces.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.AbstractModelComponent
modelComponent()
AbstractModelItem
toReadOnly()
Methods inherited from interface omix.plugin.diagram.AbstractItem
addChangeListener, addPropertyChangeListener, getIdentifier, removeChangeListener, removePropertyChangeListener
Methods inherited from interface omix.plugin.diagram.AbstractModelItem
getAccessoryItem, getAccessoryItem
-
Method Details
-
modelComponent
AbstractModelComponent modelComponent()- Specified by:
modelComponent
in interfaceAbstractModelItem
-
getAccessoryItem
AccessoryItem getAccessoryItem(String namespace, String accessoryName) throws IllegalAccessException, NoSuchFieldExceptionReturns the accessory item of the submitted name defined in the namespace.- Specified by:
getAccessoryItem
in interfaceAbstractModelItem
- Parameters:
namespace
-accessoryName
-- Returns:
- accessory item
- Throws:
IllegalAccessException
- if accessory item is protectedNoSuchFieldException
- if accessory item does not exist
-
getAccessoryItem
default AccessoryItem getAccessoryItem(String accessoryName) throws IllegalAccessException, NoSuchFieldExceptionReturns the accessory item of the submitted name defined in the namespace.- Specified by:
getAccessoryItem
in interfaceAbstractModelItem
- Parameters:
accessoryName
-- Returns:
- accessory item
- Throws:
IllegalAccessException
- if accessory is protectedNoSuchFieldException
- if accessory does not exist
-
getAllAccessoryItems
List<? extends AccessoryItem> getAllAccessoryItems()Returns all accessory items defined in the document embedded OVL script and all namespaces.- Specified by:
getAllAccessoryItems
in interfaceAbstractModelItem
- Returns:
- unmodifiable list of accessory items
-
getAccessoryItems
List<? extends AccessoryItem> getAccessoryItems()Returns all accessory items defined in the document embedded OVL script.- Specified by:
getAccessoryItems
in interfaceAbstractModelItem
- Returns:
- unmodifiable list of accessory items
- Throws:
IllegalArgumentException
- if object is not a network item
-
getAccessoryItems
Returns all accessory items defined in the given namespace.- Specified by:
getAccessoryItems
in interfaceAbstractModelItem
- Parameters:
namespace
-- Returns:
- unmodifiable list of accessory items
- Throws:
IllegalArgumentException
- if object is not a network item
-
getField
Returns the field of the submitted network object defined in the document embedded OVL script.- Specified by:
getField
in interfaceAbstractModelItem
- 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 interfaceAbstractModelItem
- Parameters:
namespace
-fieldName
-- Returns:
- reference object representing the field
- Throws:
IllegalAccessException
- if field is protectedNoSuchFieldException
- if field does not exist
-
toReadOnly
AbstractModelItem toReadOnly()- Specified by:
toReadOnly
in interfaceAbstractItem
- Specified by:
toReadOnly
in interfaceWritableInterface
-