public class TopicmapViewmodel extends Object implements JSONEnabled
Features: - Serialization to JSON.
Modifier and Type | Class and Description |
---|---|
class |
TopicmapViewmodel.GridPositioning |
Modifier and Type | Field and Description |
---|---|
private Map<Long,AssociationViewmodel> |
assocs |
private Logger |
logger |
private TopicModel |
topicmapTopic |
private Map<Long,TopicViewmodel> |
topics |
Constructor and Description |
---|
TopicmapViewmodel(TopicModel topicmapTopic,
Map<Long,TopicViewmodel> topics,
Map<Long,AssociationViewmodel> assocs) |
Modifier and Type | Method and Description |
---|---|
AssociationViewmodel |
getAssociation(long id) |
Iterable<AssociationViewmodel> |
getAssociations() |
long |
getId() |
TopicViewmodel |
getTopic(long id) |
Iterable<TopicViewmodel> |
getTopics() |
org.codehaus.jettison.json.JSONObject |
toJSON() |
String |
toString() |
private TopicModel topicmapTopic
private Map<Long,TopicViewmodel> topics
private Map<Long,AssociationViewmodel> assocs
public TopicmapViewmodel(TopicModel topicmapTopic, Map<Long,TopicViewmodel> topics, Map<Long,AssociationViewmodel> assocs)
public long getId()
public Iterable<TopicViewmodel> getTopics()
public Iterable<AssociationViewmodel> getAssociations()
public TopicViewmodel getTopic(long id)
public AssociationViewmodel getAssociation(long id)
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
Copyright © 2015. All Rights Reserved.