Package systems.dmx.core
Interface ChildTopics
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectget(String compDefUri)booleangetBoolean(String compDefUri)Convenience accessor for the *simple* value of a single-valued child.booleangetBoolean(String compDefUri, boolean defaultValue)ChildTopicsgetChildTopics(String compDefUri)Convenience accessor for the *composite* value of a single-valued child.doublegetDouble(String compDefUri)Convenience accessor for the *simple* value of a single-valued child.doublegetDouble(String compDefUri, double defaultValue)intgetInt(String compDefUri)Convenience accessor for the *simple* value of a single-valued child.intgetInt(String compDefUri, int defaultValue)longgetLong(String compDefUri)Convenience accessor for the *simple* value of a single-valued child.longgetLong(String compDefUri, long defaultValue)ChildTopicsModelgetModel()StringgetString(String compDefUri)Convenience accessor for the *simple* value of a single-valued child.StringgetString(String compDefUri, String defaultValue)RelatedTopicgetTopic(String compDefUri)Accesses a single-valued child.RelatedTopicgetTopicOrNull(String compDefUri)List<RelatedTopic>getTopics(String compDefUri)Accesses a multiple-valued child.List<RelatedTopic>getTopicsOrNull(String compDefUri)ObjectgetValue(String compDefUri)Convenience accessor for the *simple* value of a single-valued child.ObjectgetValue(String compDefUri, Object defaultValue)booleanhas(String compDefUri)Checks if a child is contained in this ChildTopics.intsize()Returns the number of children contained in this ChildTopics.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getTopic
RelatedTopic getTopic(String compDefUri)
Accesses a single-valued child. Throws if there is no such child.
-
getTopicOrNull
RelatedTopic getTopicOrNull(String compDefUri)
-
getTopics
List<RelatedTopic> getTopics(String compDefUri)
Accesses a multiple-valued child. Throws if there is no such child. ### TODO: explain why not return an empty list instead
-
getTopicsOrNull
List<RelatedTopic> getTopicsOrNull(String compDefUri)
-
has
boolean has(String compDefUri)
Checks if a child is contained in this ChildTopics.
-
size
int size()
Returns the number of children contained in this ChildTopics. Multiple-valued children count as one.
-
getModel
ChildTopicsModel getModel()
-
getString
String getString(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.
-
getInt
int getInt(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.
-
getInt
int getInt(String compDefUri, int defaultValue)
-
getLong
long getLong(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.
-
getLong
long getLong(String compDefUri, long defaultValue)
-
getDouble
double getDouble(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.
-
getDouble
double getDouble(String compDefUri, double defaultValue)
-
getBoolean
boolean getBoolean(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.
-
getBoolean
boolean getBoolean(String compDefUri, boolean defaultValue)
-
getValue
Object getValue(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.- Returns:
- String, Integer, Long, Double, or Boolean. Never null.
-
getValue
Object getValue(String compDefUri, Object defaultValue)
- Returns:
- String, Integer, Long, Double, or Boolean. Never null.
-
getChildTopics
ChildTopics getChildTopics(String compDefUri)
Convenience accessor for the *composite* value of a single-valued child. Throws if the child doesn't exist.
-
-