java.lang.Objectjava.util.Observable
ucot.model.object.ObjectAnalyzeModel
public class ObjectAnalyzeModel
Model that contains representation of the AnalyzeModel. This implementation uses objects to contain the information of the model.
Field Summary | |
---|---|
private ObjectAnalyzeModelEditor |
editor
The editor that edits this model |
private java.util.Map<java.lang.String,Entity> |
entities
The entities that are containde by this model. |
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ObjectAnalyzeModel()
Creates empty model. |
Method Summary | |
---|---|
void |
addEntity(Entity entity)
Adds an entity to the model. |
void |
clear()
|
ModelEditor |
getEditor()
Returns editor for this analyze model. |
Entity |
getEntity(java.lang.String name)
Returns entity. |
java.util.Set<java.lang.String> |
getEntityNames()
Returns the names of the entities. |
void |
removeEntity(Entity removeEntity)
Removes entity. |
void |
removeEntity(java.lang.String name)
Removes entity. |
protected void |
setChanged()
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ucot.model.AnalyzeModel |
---|
addObserver |
Field Detail |
---|
public static final long serialVersionUID
private ObjectAnalyzeModelEditor editor
private java.util.Map<java.lang.String,Entity> entities
Constructor Detail |
---|
public ObjectAnalyzeModel()
Method Detail |
---|
public Entity getEntity(java.lang.String name)
name
-
public void removeEntity(java.lang.String name)
name
- The name of the entity.public void removeEntity(Entity removeEntity)
removeEntity
- The entity to be removoedpublic java.util.Set<java.lang.String> getEntityNames()
public void addEntity(Entity entity)
entity
- public void clear()
public ModelEditor getEditor()
AnalyzeModel
Returns editor for this analyze model.
getEditor
in interface AnalyzeModel
protected void setChanged()
setChanged
in class java.util.Observable