|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uka.ipd.consensus.impl.TM4JObjectWrapper
de.uka.ipd.consensus.impl.TM4JTopicWrapper
de.uka.ipd.consensus.impl.AttributeImpl
TODO
| Field Summary |
| Fields inherited from class de.uka.ipd.consensus.impl.TM4JObjectWrapper |
EMPTY_SCOPE |
| Constructor Summary | |
protected |
AttributeImpl(OntologyManagerImpl omi,
org.tm4j.topicmap.Topic tmTopic)
|
| Method Summary | |
Rating |
addRating(User rater,
double value)
Adds a rating for the given user to this element. |
Attributeable |
getAttributeable()
Returns the element which this attribute belongs to. |
double |
getAverageRatingValue()
Returns the average value (the arithmetic mean) of all current ratings for this element. |
Rating |
getRating(User user)
Returns the rating of the given user for this element. |
Collection |
getRatings()
Returns a collection of all current Rating objects (from different users) for this element. |
int |
getRatingsCount()
Returns the number of ratings for this element. |
Topic |
getType()
Returns the type of the attribute. |
String |
getValue()
Returns the attribute's value. |
protected void |
initValue(String value)
|
boolean |
isOfType(Topic type)
Checks if this concept is of the given type. |
void |
setType(User setter,
Topic type)
Sets the type of the attribute. |
void |
setValue(User setter,
String value)
Changes the attribute's value. |
String |
toString()
|
| Methods inherited from class de.uka.ipd.consensus.impl.TM4JTopicWrapper |
compareTo, getComment, getCreator, getId, getName, getOccurrence, getVersion, getWrappedTopic, incVersion, setComment, setName |
| Methods inherited from class de.uka.ipd.consensus.impl.TM4JObjectWrapper |
equals, getCache, getLoggingManager, getObjectId, getOccurrence, getOntologyManager, getWrappedObject, hashCode, putCache, wrap, wrap, wrap, wrap, wrap, wrap, wrap |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Concept |
getId, getName, setName |
| Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Versionable |
getVersion |
| Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Commentatable |
getComment, setComment |
| Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Createable |
getCreator |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Constructor Detail |
protected AttributeImpl(OntologyManagerImpl omi,
org.tm4j.topicmap.Topic tmTopic)
| Method Detail |
public String getValue()
Attribute
getValue in interface Attributenull)
protected void initValue(String value)
throws Exception
Exception
public void setValue(User setter,
String value)
throws OntologyManagerException,
DynamicRightsManagerException
Attribute
setValue in interface Attributesetter - the user who wants to change the valuevalue - the new value (null is treated as an empty string)
OntologyManagerException - if the value could not be changed
DynamicRightsManagerException - if the user is not allowed to change the valueDynamicRightsManager.mayChangeAttributeValue(User, Attribute)public Topic getType()
Attribute
getType in interface Attributenull if the attribute does not have a type
public void setType(User setter,
Topic type)
throws OntologyManagerException,
DynamicRightsManagerException
Attribute
setType in interface Attributesetter - the user who wants to set the typetype - the type topic (or null to remove the type)
OntologyManagerException - if the type could not be set
DynamicRightsManagerException - if the user is not allowed to change the typeTopic.isClassTopic()public boolean isOfType(Topic type)
Concept
isOfType in interface Concepttype - the type topic, including null for typeless concepts
true if the concept is of the specified type, false otherwisepublic Attributeable getAttributeable()
Attribute
getAttributeable in interface AttributeTopic
public Rating addRating(User rater,
double value)
throws RatingManagerException,
DynamicRightsManagerException
RateableRatingManager methods.
addRating in interface Rateablerater - the user who wants to add or change the ratingvalue - the new value
DynamicRightsManagerException - if the user is not allowed to rate this element
RatingManagerException - if the rating could not be created/changedRatingManager,
DynamicRightsManager.mayAddRating(Rating, Rateable)public Collection getRatings()
RateablegetRatings() methods of RatingManager.
getRatings in interface RateablenullRating,
RatingManagerpublic double getAverageRatingValue()
Rateable
getAverageRatingValue in interface Rateablepublic int getRatingsCount()
Rateable
getRatingsCount in interface Rateablepublic Rating getRating(User user)
RateablegetRatings() methods of RatingManager.
getRating in interface Rateableuser - the user who's rating shall be returned
null if the user hasn't rated this element yetRatingManagerpublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||