|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttemplates.model.v3.Component
public class Component
Implementation of TemplateComponent.
| Field Summary | |
|---|---|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
annotations
A map with the annotations of this element. |
protected ides.api.model.fsa.FSAModel |
fsa
The FSAModel associated with the component. |
protected long |
id
The id of the component. |
protected int |
type
The type of the component. |
| Fields inherited from interface templates.model.TemplateComponent |
|---|
TYPE_CHANNEL, TYPE_MODULE |
| Fields inherited from interface ides.api.core.Annotable |
|---|
COMPOSED_OF, COMPOSED_OF_NAMES, CONTROL_MAP, FILE, LAYOUT, TEXT_ANNOTATION |
| Constructor Summary | |
|---|---|
Component(long id)
Construct a new component with the given parameters. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAnnotation(java.lang.String key)
|
long |
getId()
|
ides.api.model.fsa.FSAModel |
getModel()
Retrieve the FSAModel associated with the component. |
int |
getType()
Retrieve the type of the component. |
boolean |
hasAnnotation(java.lang.String key)
|
boolean |
hasModel()
Checks if there is an FSAModel associated with the component. |
void |
removeAnnotation(java.lang.String key)
|
void |
setAnnotation(java.lang.String key,
java.lang.Object annotation)
|
void |
setId(long id)
|
void |
setModel(ides.api.model.fsa.FSAModel fsa)
Assign the FSAModel to be associated with the component. |
void |
setType(int type)
Sets the type of the component. |
| 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 int type
protected ides.api.model.fsa.FSAModel fsa
FSAModel associated with the component.
| Constructor Detail |
|---|
public Component(long id)
id - the id of the component| 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 ides.api.model.fsa.FSAModel getModel()
TemplateComponentFSAModel associated with the component.
getModel in interface TemplateComponentFSAModel associated with the component;
null if no FSAModel is associatedpublic boolean hasModel()
TemplateComponentFSAModel associated with the component.
hasModel in interface TemplateComponenttrue if the associated FSAModel is not
null; false otherwisepublic void setModel(ides.api.model.fsa.FSAModel fsa)
TemplateComponentFSAModel to be associated with the component.
setModel in interface TemplateComponentfsa - the FSAModel to be associated with the componentpublic int getType()
TemplateComponent
getType in interface TemplateComponentTemplateComponent.TYPE_MODULE or TemplateComponent.TYPE_CHANNELpublic void setType(int type)
TemplateComponent
setType in interface TemplateComponenttype - the type of the component (TemplateComponent.TYPE_MODULE or
TemplateComponent.TYPE_CHANNEL)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||