public class FacetValue extends ChildTopicsModel
Modifier and Type | Field and Description |
---|---|
private String |
childTypeUri |
Constructor and Description |
---|
FacetValue(org.codehaus.jettison.json.JSONObject obj) |
FacetValue(String childTypeUri) |
Modifier and Type | Method and Description |
---|---|
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.
|
RelatedTopicModel |
getTopic()
Accesses a single-valued facet.
|
List<RelatedTopicModel> |
getTopics()
Accesses a multiple-valued facet.
|
FacetValue |
put(ChildTopicsModel value)
Convenience method to put a *composite* value in a single-valued facet.
|
FacetValue |
put(List<RelatedTopicModel> values)
Sets the values of a multiple-valued facet.
|
FacetValue |
put(Object value)
Convenience method to put a *simple* value in a single-valued facet.
|
FacetValue |
put(RelatedTopicModel value)
Puts a value in a single-valued facet.
|
FacetValue |
putRef(long refTopicId)
Puts a by-ID topic reference in a single-valued facet.
|
FacetValue |
putRef(String refTopicUri)
Puts a by-URI topic reference in a single-valued facet.
|
add, add, addDeletionRef, addRef, addRef, clone, get, getBoolean, getBoolean, getChildTopicsModel, getChildTopicsModel, getDouble, getDouble, getInt, getInt, getLong, getLong, getObject, getObject, getString, getString, getTopic, getTopic, getTopics, getTopics, has, iterator, put, put, put, put, put, putRef, putRef, remove, remove, size, throwInvalidAccess, toJSON, toString
private String childTypeUri
public FacetValue(String childTypeUri)
public FacetValue(org.codehaus.jettison.json.JSONObject obj)
public RelatedTopicModel getTopic()
public List<RelatedTopicModel> getTopics()
public FacetValue put(RelatedTopicModel value)
public FacetValue put(Object value)
public FacetValue put(ChildTopicsModel value)
public FacetValue putRef(long refTopicId)
public FacetValue putRef(String refTopicUri)
public FacetValue put(List<RelatedTopicModel> values)
public FacetValue addRef(long refTopicId)
public FacetValue addRef(String refTopicUri)
public FacetValue addDeletionRef(long refTopicId)
Copyright © 2015. All Rights Reserved.