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:




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

Method Summary
 booleancanCopy()
           
 booleancanCut()
           
 booleancanDelete()
           
 Elementcopy()
          Makes a copy of this element.
 Elementcut()
           
 voiddelete()
           
 EntitygetParent()
           
 StringgetUniqueName()
           
 booleanisDeleted()
           
 voidresetParent()
          Clears internal cache of parent element.

Methods inherited from interface com.togethersoft.openapi.model.elements.PropertyMap
addProperty, canAddProperty, canSetPropertyValue, canSetPropertyValue, getProperty, getPropertyValue, hasProperty, hasPropertyValue, isPropertyReadable, isPropertyWritable, properties, properties, setPropertyValue, setPropertyValue

Method Detail

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.