Interface ChildTopics

    • Method Detail

      • getTopic

        RelatedTopic getTopic​(String compDefUri)
        Accesses a single-valued child. Throws if there is no such child.
      • 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
      • 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.
      • 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.