ontopoly.models
Class TopicModel<T extends Topic>

java.lang.Object
  extended by ontopoly.models.MutableLoadableDetachableModel<T>
      extended by ontopoly.models.TopicModel<T>
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<T>

public class TopicModel<T extends Topic>
extends MutableLoadableDetachableModel<T>

See Also:
Serialized Form

Field Summary
static int TYPE_ASSOCIATION_TYPE
           
static int TYPE_NAME_TYPE
           
static int TYPE_OCCURRENCE_TYPE
           
static int TYPE_ROLE_TYPE
           
static int TYPE_TOPIC
           
static int TYPE_TOPIC_TYPE
           
 
Constructor Summary
TopicModel(java.lang.String topicMapId, java.lang.String topicId)
           
TopicModel(T topic)
           
TopicModel(T topic, int returnType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Topic getTopic()
           
 int hashCode()
           
protected  T load()
           
 void setObject(T object)
           
 
Methods inherited from class ontopoly.models.MutableLoadableDetachableModel
detach, getObject, isAttached, onAttach, onDetach, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_TOPIC

public static final int TYPE_TOPIC
See Also:
Constant Field Values

TYPE_ASSOCIATION_TYPE

public static final int TYPE_ASSOCIATION_TYPE
See Also:
Constant Field Values

TYPE_ROLE_TYPE

public static final int TYPE_ROLE_TYPE
See Also:
Constant Field Values

TYPE_NAME_TYPE

public static final int TYPE_NAME_TYPE
See Also:
Constant Field Values

TYPE_OCCURRENCE_TYPE

public static final int TYPE_OCCURRENCE_TYPE
See Also:
Constant Field Values

TYPE_TOPIC_TYPE

public static final int TYPE_TOPIC_TYPE
See Also:
Constant Field Values
Constructor Detail

TopicModel

public TopicModel(T topic)

TopicModel

public TopicModel(T topic,
                  int returnType)

TopicModel

public TopicModel(java.lang.String topicMapId,
                  java.lang.String topicId)
Method Detail

getTopic

public Topic getTopic()

load

protected T load()
Specified by:
load in class MutableLoadableDetachableModel<T extends Topic>

setObject

public void setObject(T object)
Specified by:
setObject in interface org.apache.wicket.model.IModel<T extends Topic>
Overrides:
setObject in class MutableLoadableDetachableModel<T extends Topic>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2012 Ontopia.