public interface ChildTopicsModel extends JSONEnabled, Iterable<String>
Keys are strings, values are non-null atomic (string, int, long, double, boolean)
or again a ChildTopicsModel
. ### FIXDOC
Modifier and Type | Method and Description |
---|---|
ChildTopicsModel |
add(String assocDefUri,
RelatedTopicModel value)
Adds a value to a multiple-valued child.
|
ChildTopicsModel |
add(String assocDefUri,
TopicModel value) |
ChildTopicsModel |
addDeletionRef(String assocDefUri,
long refTopicId)
Adds a by-ID topic deletion reference to a multiple-valued child.
|
ChildTopicsModel |
addDeletionRef(String assocDefUri,
String refTopicUri)
Adds a by-URI topic deletion reference to a multiple-valued child.
|
ChildTopicsModel |
addRef(String assocDefUri,
long refTopicId)
Adds a by-ID topic reference to a multiple-valued child.
|
ChildTopicsModel |
addRef(String assocDefUri,
String refTopicUri)
Adds a by-URI topic reference to a multiple-valued child.
|
ChildTopicsModel |
clone() |
Object |
get(String assocDefUri)
Accesses a child generically, regardless of single-valued or multiple-valued.
|
boolean |
getBoolean(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
boolean |
getBoolean(String assocDefUri,
boolean defaultValue)
Convenience accessor for the *simple* value of a single-valued child.
|
ChildTopicsModel |
getChildTopicsModel(String assocDefUri)
Convenience accessor for the *composite* value of a single-valued child.
|
ChildTopicsModel |
getChildTopicsModel(String assocDefUri,
ChildTopicsModel defaultValue)
Convenience accessor for the *composite* value of a single-valued child.
|
double |
getDouble(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
double |
getDouble(String assocDefUri,
double defaultValue)
Convenience accessor for the *simple* value of a single-valued child.
|
int |
getInt(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
int |
getInt(String assocDefUri,
int defaultValue)
Convenience accessor for the *simple* value of a single-valued child.
|
long |
getLong(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
long |
getLong(String assocDefUri,
long defaultValue)
Convenience accessor for the *simple* value of a single-valued child.
|
Object |
getObject(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
Object |
getObject(String assocDefUri,
Object defaultValue)
Convenience accessor for the *simple* value of a single-valued child.
|
String |
getString(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
String |
getString(String assocDefUri,
String defaultValue)
Convenience accessor for the *simple* value of a single-valued child.
|
RelatedTopicModel |
getTopic(String assocDefUri)
Accesses a single-valued child.
|
RelatedTopicModel |
getTopicOrNull(String assocDefUri)
Accesses a single-valued child.
|
List<? extends RelatedTopicModel> |
getTopics(String assocDefUri)
Accesses a multiple-valued child.
|
List<? extends RelatedTopicModel> |
getTopicsOrNull(String assocDefUri)
Accesses a multiple-valued child.
|
ChildTopicsModel |
put(String assocDefUri,
ChildTopicsModel value)
Convenience method to put a *composite* value in a single-valued child.
|
ChildTopicsModel |
put(String assocDefUri,
List<RelatedTopicModel> values)
Sets the values of a multiple-valued child.
|
ChildTopicsModel |
put(String assocDefUri,
Object value)
Convenience method to put a *simple* value in a single-valued child.
|
ChildTopicsModel |
put(String assocDefUri,
RelatedTopicModel value)
Puts a value in a single-valued child.
|
ChildTopicsModel |
put(String assocDefUri,
TopicModel value) |
ChildTopicsModel |
putDeletionRef(String assocDefUri,
long refTopicId)
Puts a by-ID topic deletion reference in a single-valued child.
|
ChildTopicsModel |
putDeletionRef(String assocDefUri,
String refTopicUri)
Puts a by-URI topic deletion reference in a single-valued child.
|
ChildTopicsModel |
putRef(String assocDefUri,
long refTopicId)
Puts a by-ID topic reference in a single-valued child.
|
ChildTopicsModel |
putRef(String assocDefUri,
String refTopicUri)
Puts a by-URI topic reference in a single-valued child.
|
ChildTopicsModel |
remove(String assocDefUri)
Removes a single-valued child.
|
ChildTopicsModel |
remove(String assocDefUri,
TopicModel value)
Removes a value from a multiple-valued child.
|
toJSON
forEach, iterator, spliterator
RelatedTopicModel getTopic(String assocDefUri)
RelatedTopicModel getTopicOrNull(String assocDefUri)
null
if there is no such child.List<? extends RelatedTopicModel> getTopics(String assocDefUri)
List<? extends RelatedTopicModel> getTopicsOrNull(String assocDefUri)
null
if there is no such child.
### TODO: drop this methodObject get(String assocDefUri)
String getString(String assocDefUri)
String getString(String assocDefUri, String defaultValue)
int getInt(String assocDefUri)
int getInt(String assocDefUri, int defaultValue)
long getLong(String assocDefUri)
long getLong(String assocDefUri, long defaultValue)
double getDouble(String assocDefUri)
double getDouble(String assocDefUri, double defaultValue)
boolean getBoolean(String assocDefUri)
boolean getBoolean(String assocDefUri, boolean defaultValue)
Object getObject(String assocDefUri)
Object getObject(String assocDefUri, Object defaultValue)
ChildTopicsModel getChildTopicsModel(String assocDefUri)
ChildTopicsModel getChildTopicsModel(String assocDefUri, ChildTopicsModel defaultValue)
ChildTopicsModel put(String assocDefUri, RelatedTopicModel value)
ChildTopicsModel put(String assocDefUri, TopicModel value)
ChildTopicsModel put(String assocDefUri, Object value)
value
- a String, Integer, Long, Double, or a Boolean.ChildTopicsModel put(String assocDefUri, ChildTopicsModel value)
ChildTopicsModel putRef(String assocDefUri, long refTopicId)
ChildTopicsModel putRef(String assocDefUri, String refTopicUri)
ChildTopicsModel putDeletionRef(String assocDefUri, long refTopicId)
ChildTopicsModel putDeletionRef(String assocDefUri, String refTopicUri)
ChildTopicsModel remove(String assocDefUri)
ChildTopicsModel add(String assocDefUri, RelatedTopicModel value)
ChildTopicsModel add(String assocDefUri, TopicModel value)
ChildTopicsModel put(String assocDefUri, List<RelatedTopicModel> values)
ChildTopicsModel remove(String assocDefUri, TopicModel value)
ChildTopicsModel addRef(String assocDefUri, long refTopicId)
ChildTopicsModel addRef(String assocDefUri, String refTopicUri)
ChildTopicsModel addDeletionRef(String assocDefUri, long refTopicId)
ChildTopicsModel addDeletionRef(String assocDefUri, String refTopicUri)
ChildTopicsModel clone()
Copyright © 2018. All Rights Reserved.