|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.deepamehta.core.model.CompositeValueModel
de.deepamehta.plugins.facets.model.FacetValue
public class FacetValue
A facet value as used in update facet calls. Used for both, single-valued facets and multiple-valued facets.
Field Summary | |
---|---|
private String |
childTypeUri
|
Constructor Summary | |
---|---|
FacetValue(JSONObject obj)
|
|
FacetValue(String childTypeUri)
|
Method Summary | |
---|---|
FacetValue |
addDeletionRef(long refTopicId)
Adds a by-ID topic deletion reference to a multiple-valued facet. |
FacetValue |
addRef(long refTopicId)
Adds a by-ID topic reference to a multiple-valued facet. |
FacetValue |
addRef(String refTopicUri)
Adds a by-URI topic reference to a multiple-valued facet. |
TopicModel |
getTopic()
Accesses a single-valued facet. |
List<TopicModel> |
getTopics()
Accesses a multiple-valued facet. |
FacetValue |
put(CompositeValueModel value)
Convenience method to put a *composite* value in a single-valued facet. |
FacetValue |
put(List<TopicModel> values)
Adds all the values to a multiple-valued facet. |
FacetValue |
put(Object value)
Convenience method to put a *simple* value in a single-valued facet. |
FacetValue |
put(TopicModel value)
Puts a value in a single-valued facet. |
Methods inherited from class de.deepamehta.core.model.CompositeValueModel |
---|
add, addDeletionRef, addRef, addRef, clone, get, getBoolean, getBoolean, getCompositeValueModel, getCompositeValueModel, getDouble, getDouble, getInt, getInt, getLong, getLong, getObject, getObject, getString, getString, getTopic, getTopic, getTopics, getTopics, has, iterator, put, put, put, put, putRef, putRef, remove, size, throwInvalidAccess, toJSON, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private String childTypeUri
Constructor Detail |
---|
public FacetValue(String childTypeUri)
public FacetValue(JSONObject obj)
Method Detail |
---|
public TopicModel getTopic()
public List<TopicModel> getTopics()
public FacetValue put(TopicModel value)
public FacetValue put(Object value)
public FacetValue put(CompositeValueModel value)
public FacetValue put(List<TopicModel> values)
public FacetValue addRef(long refTopicId)
public FacetValue addRef(String refTopicUri)
public FacetValue addDeletionRef(long refTopicId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |