de.deepamehta.plugins.topicmaps.model
Class TopicmapViewmodel
java.lang.Object
de.deepamehta.plugins.topicmaps.model.TopicmapViewmodel
- All Implemented Interfaces:
- de.deepamehta.core.JSONEnabled
public class TopicmapViewmodel
- extends Object
- implements de.deepamehta.core.JSONEnabled
A topicmap viewmodel: a collection of topics and associations plus their view properties.
Features:
- Serialization to JSON.
TopicmapViewmodel
public TopicmapViewmodel(de.deepamehta.core.model.TopicModel topicmapTopic,
Map<Long,TopicViewmodel> topics,
Map<Long,AssociationViewmodel> assocs)
getId
public long getId()
getTopics
public Iterable<TopicViewmodel> getTopics()
getAssociations
public Iterable<AssociationViewmodel> getAssociations()
getTopic
public TopicViewmodel getTopic(long id)
getAssociation
public AssociationViewmodel getAssociation(long id)
toJSON
public org.codehaus.jettison.json.JSONObject toJSON()
- Specified by:
toJSON in interface de.deepamehta.core.JSONEnabled
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2015. All rights reserved.