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 © 2018. All Rights Reserved.