Package systems.dmx.core
Interface ChildTopics
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
get(String compDefUri)
boolean
getBoolean(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child.boolean
getBoolean(String compDefUri, boolean defaultValue)
ChildTopics
getChildTopics(String compDefUri)
Convenience accessor for the *composite* value of a single-valued child.double
getDouble(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child.double
getDouble(String compDefUri, double defaultValue)
int
getInt(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child.int
getInt(String compDefUri, int defaultValue)
long
getLong(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child.long
getLong(String compDefUri, long defaultValue)
ChildTopicsModel
getModel()
String
getString(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child.String
getString(String compDefUri, String defaultValue)
RelatedTopic
getTopic(String compDefUri)
Accesses a single-valued child.RelatedTopic
getTopicOrNull(String compDefUri)
List<RelatedTopic>
getTopics(String compDefUri)
Accesses a multiple-valued child.List<RelatedTopic>
getTopicsOrNull(String compDefUri)
Object
getValue(String compDefUri)
Convenience accessor for the *simple* value of a single-valued child.Object
getValue(String compDefUri, Object defaultValue)
boolean
has(String compDefUri)
Checks if a child is contained in this ChildTopics.int
size()
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.
-
-