|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttemplates.model.v3.Link
public class Link
Implementation of TemplateLink.
| Field Summary | |
|---|---|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
annotations
A map with the annotations of this element. |
protected long |
id
The id of the link. |
protected TemplateComponent |
left
The first TemplateComponent linked by the link. |
protected java.lang.String |
leftEvent
The event (of the first TemplateComponent) which is linked by the
link. |
protected TemplateComponent |
right
The second TemplateComponent linked by the link. |
protected java.lang.String |
rightEvent
The event (of the second TemplateComponent) which is linked by
the link. |
| Fields inherited from interface ides.api.core.Annotable |
|---|
COMPOSED_OF, COMPOSED_OF_NAMES, CONTROL_MAP, FILE, LAYOUT, TEXT_ANNOTATION |
| Constructor Summary | |
|---|---|
Link(long id,
TemplateComponent left,
TemplateComponent right)
Construct a new link with the given parameters. |
|
| Method Summary | |
|---|---|
boolean |
existsLeftEvent()
Checks if the FSAModel of the first TemplateComponent
contains the linked event. |
boolean |
existsRightEvent()
Checks if the FSAModel of the second TemplateComponent
contains the linked event. |
java.lang.Object |
getAnnotation(java.lang.String key)
|
TemplateComponent |
getChannel()
Retrieve the channel linked by the link, if any. |
TemplateComponent[] |
getComponents()
Retrieve the two TemplateComponents linked by the link. |
long |
getId()
|
TemplateComponent |
getLeftComponent()
Retrieve the first TemplateComponent linked by the link. |
ides.api.plugin.model.DESEvent |
getLeftEvent()
Retrieves the linked DESEvent from the first
TemplateComponent. |
java.lang.String |
getLeftEventName()
Retrieve the name of the linked event from the first TemplateComponent. |
TemplateComponent |
getModule()
Retrieve the module linked by the link, if any. |
TemplateComponent |
getRightComponent()
Retrieve the second TemplateComponent linked by the link. |
ides.api.plugin.model.DESEvent |
getRightEvent()
Retrieves the linked DESEvent from the second
TemplateComponent. |
java.lang.String |
getRightEventName()
Retrieve the name of the linked event from the second TemplateComponent. |
boolean |
hasAnnotation(java.lang.String key)
|
void |
removeAnnotation(java.lang.String key)
|
void |
setAnnotation(java.lang.String key,
java.lang.Object annotation)
|
void |
setId(long id)
|
void |
setLeftEventName(java.lang.String name)
Set the name of the linked event from the first TemplateComponent
. |
void |
setRightEventName(java.lang.String name)
Set the name of the linked event from the second TemplateComponent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable<java.lang.String,java.lang.Object> annotations
protected long id
protected TemplateComponent left
TemplateComponent linked by the link.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
protected TemplateComponent right
TemplateComponent linked by the link.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
protected java.lang.String leftEvent
TemplateComponent) which is linked by the
link.
A link is symmetric. "Left" and "right" are used only to enable addressing the two events separately.
protected java.lang.String rightEvent
TemplateComponent) which is linked by
the link.
A link is symmetric. "Left" and "right" are used only to enable addressing the two events separately.
| Constructor Detail |
|---|
public Link(long id,
TemplateComponent left,
TemplateComponent right)
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
id - the id of the linkleft - the first TemplateComponent linked by the linkright - the second TemplateComponent linked by the link| Method Detail |
|---|
public java.lang.Object getAnnotation(java.lang.String key)
getAnnotation in interface ides.api.core.Annotablepublic boolean hasAnnotation(java.lang.String key)
hasAnnotation in interface ides.api.core.Annotablepublic void removeAnnotation(java.lang.String key)
removeAnnotation in interface ides.api.core.Annotable
public void setAnnotation(java.lang.String key,
java.lang.Object annotation)
setAnnotation in interface ides.api.core.Annotablepublic long getId()
getId in interface ides.api.plugin.model.DESElementpublic void setId(long id)
setId in interface ides.api.plugin.model.DESElementpublic TemplateComponent getChannel()
TemplateLink
getChannel in interface TemplateLinkTemplateComponents are channels, returns
arbitrarily one of them); null if no channel
is linkedpublic ides.api.plugin.model.DESEvent getRightEvent()
TemplateLinkDESEvent from the second
TemplateComponent.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
getRightEvent in interface TemplateLinkDESEvent from the FSAModel of the
second TemplateComponent, if the
TemplateComponent has an assigned FSAModel and if
this FSAModel contains the linked event;
null otherwisepublic java.lang.String getRightEventName()
TemplateLinkTemplateComponent.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
getRightEventName in interface TemplateLinkTemplateComponentpublic TemplateComponent getModule()
TemplateLink
getModule in interface TemplateLinkTemplateComponents are modules, returns
arbitrarily one of them); null if no module
is linkedpublic ides.api.plugin.model.DESEvent getLeftEvent()
TemplateLinkDESEvent from the first
TemplateComponent.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
getLeftEvent in interface TemplateLinkDESEvent from the FSAModel of the
first TemplateComponent, if the TemplateComponent
has an assigned FSAModel and if this FSAModel
contains the linked event; null otherwisepublic java.lang.String getLeftEventName()
TemplateLinkTemplateComponent.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
getLeftEventName in interface TemplateLinkTemplateComponentpublic boolean existsRightEvent()
TemplateLinkFSAModel of the second TemplateComponent
contains the linked event.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
existsRightEvent in interface TemplateLinktrue if the second linked TemplateComponent
has an assigned FSAModel and if this FSAModel
contains the linked event; false otherwisepublic boolean existsLeftEvent()
TemplateLinkFSAModel of the first TemplateComponent
contains the linked event.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
existsLeftEvent in interface TemplateLinktrue if the first linked TemplateComponent
has an assigned FSAModel and if this FSAModel
contains the linked event; false otherwisepublic void setRightEventName(java.lang.String name)
TemplateLinkTemplateComponent.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
setRightEventName in interface TemplateLinkname - the name of the linked event from the second
TemplateComponentpublic void setLeftEventName(java.lang.String name)
TemplateLinkTemplateComponent
.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
setLeftEventName in interface TemplateLinkname - the name of the linked event from the first
TemplateComponentpublic TemplateComponent[] getComponents()
TemplateLinkTemplateComponents linked by the link.
getComponents in interface TemplateLinkTemplateComponents linked by the linkpublic TemplateComponent getLeftComponent()
TemplateLinkTemplateComponent linked by the link.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
getLeftComponent in interface TemplateLinkTemplateComponent linked by the linkpublic TemplateComponent getRightComponent()
TemplateLinkTemplateComponent linked by the link.
A link is symmetric. "Left" and "right" are used only to enable
addressing the two TemplateComponents separately.
getRightComponent in interface TemplateLinkTemplateComponent linked by the link
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||