de.deepamehta.plugins.topicmaps.model
Class TopicmapViewmodel

java.lang.Object
  extended by 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.


Nested Class Summary
 class TopicmapViewmodel.GridPositioning
           
 
Constructor Summary
TopicmapViewmodel(de.deepamehta.core.model.TopicModel topicmapTopic, Map<Long,TopicViewmodel> topics, Map<Long,AssociationViewmodel> assocs)
           
 
Method Summary
 AssociationViewmodel getAssociation(long id)
           
 Iterable<AssociationViewmodel> getAssociations()
           
 long getId()
           
 TopicViewmodel getTopic(long id)
           
 Iterable<TopicViewmodel> getTopics()
           
 org.codehaus.jettison.json.JSONObject toJSON()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopicmapViewmodel

public TopicmapViewmodel(de.deepamehta.core.model.TopicModel topicmapTopic,
                         Map<Long,TopicViewmodel> topics,
                         Map<Long,AssociationViewmodel> assocs)
Method Detail

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.