com.togethersoft.openapi.model.elements
Interface Element
- All Known Subinterfaces:
- Entity, Model, ReferenceCollection
- public interface Element
- extends PropertyMap
This interface represents a basic element of the model. The main
characteristics of the elements are:
- Unique name (unique inside one model)
- Ability to form backward-traversable tree (although forward traversal,
i.e. ability to have child elements is supported not for all elements)
- Ability to be cut and copied to the clipboard
- Ability to participate in links and to be referenced from reference
collections
IMPORTANT IMPLEMENTATION ISSUE: implementation of the model interfaces
in Together core is not thread safe. Access to all methods of this
interface implementation should be performed in command thread
- Author:
- TogetherSoft
| Methods inherited from interface com.togethersoft.openapi.model.elements.PropertyMap |
addProperty, canAddProperty, canSetPropertyValue, canSetPropertyValue, getProperty, getPropertyValue, hasProperty, hasPropertyValue, isPropertyReadable, isPropertyWritable, properties, properties, setPropertyValue, setPropertyValue |
canCopy
public boolean canCopy()
canCut
public boolean canCut()
canDelete
public boolean canDelete()
copy
public Element copy()
- Makes a copy of
this element. It is not specified whether
the copy is "deep" and whether it resides in the same model where
this element does.- Returns: Copy of
this element.
cut
public Element cut()
delete
public void delete()
getParent
public Entity getParent()
- Returns: Parent entity of this element.
getUniqueName
public String getUniqueName()
- Returns: Unique name of
this element.
isDeleted
public boolean isDeleted()
resetParent
public void resetParent()
- Clears internal cache of parent element. Call this method if parent of
element has accidentally changed and you want providers to be called again
to determine new parent.