@OpenApi
public interface BaseElement
extends java.lang.Comparable, java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
void |
accept(AbstractVisitor visitor)
Method accepts visitor, and calls method visit < class name > ( this ) of visitor .
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers the listener to the element.
|
boolean |
canAdd(BaseElement element)
Checks if this element can add given element.
|
boolean |
canAdd(BaseElement element,
boolean checkPermissions)
Checks if this element can add given element.
|
boolean |
canAddChild()
Checks if new elements can be added to this element
|
boolean |
canBeDeleted()
Checks if element can be deleted from project.
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Delegates
firePropertyChange to the
PropertyChangeSupport , the member of this class,
which reports a bound property update to any registered listeners. |
java.lang.Class |
getClassType()
Gets the type of the element class.
|
java.lang.String |
getHumanName()
Returns human representation of the element.
|
java.lang.String |
getHumanType()
Returns human representation of the element type.
|
java.lang.String |
getID()
Returns the ID of the
Element . |
BaseElement |
getObjectParent()
Returns the element parent.
|
boolean |
isEditable()
Checks if element can be edited.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters the given listener from the element.
|
void |
setID(java.lang.String id)
Sets the specified ID to the
Element . |
java.lang.String |
sGetID()
Returns the actual ID of the
Element . |
@OpenApi java.lang.String getID()
Element
.
If the ID is null
, new id for element is generated.
Element id is persistence and do not changes during project save/load.Element
.@OpenApi java.lang.String sGetID()
Element
. May return null if ID was not generated
or set for this element.Element
.getID()
@OpenApi void setID(java.lang.String id)
Element
.id
- the id to be set.@OpenApi java.lang.Class getClassType()
@OpenApi void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener
to be added.PropertyChangeSupport
@OpenApi void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener to be removed.PropertyChangeSupport
@OpenApi void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
firePropertyChange
to the
PropertyChangeSupport
, the member of this class,
which reports a bound property update to any registered listeners.
No event is fired if old and new values are equal or null.propertyName
- the programmatic name of the property that was changed.oldValue
- the old value of the propertynewValue
- the new value of the propertyPropertyChangeSupport
@OpenApi void accept(AbstractVisitor visitor) throws java.lang.Exception
visitor
- which visits this element.java.lang.Exception
@OpenApi java.lang.String getHumanName()
@OpenApi java.lang.String getHumanType()
@OpenApi boolean canAdd(BaseElement element)
element
- the given element.canAdd(BaseElement, boolean)
@OpenApi boolean canAdd(BaseElement element, boolean checkPermissions)
element
- the element to add.checkPermissions
- check or not permissions.@OpenApi boolean canBeDeleted()
isEditable()
@OpenApi boolean isEditable()
@OpenApi boolean canAddChild()
@OpenApi BaseElement getObjectParent()