de.deepamehta.core
Interface ChildTopics

Show UML class diagram
All Known Implementing Classes:
AttachedChildTopics

public interface ChildTopics


Method Summary
 Iterable<String> childTypeUris()
           
 Object get(String childTypeUri)
           
 boolean getBoolean(String childTypeUri)
          Convenience accessor for the *simple* value of a single-valued child.
 ChildTopics getChildTopics(String childTypeUri)
          Convenience accessor for the *composite* value of a single-valued child.
 double getDouble(String childTypeUri)
          Convenience accessor for the *simple* value of a single-valued child.
 int getInt(String childTypeUri)
          Convenience accessor for the *simple* value of a single-valued child.
 long getLong(String childTypeUri)
          Convenience accessor for the *simple* value of a single-valued child.
 ChildTopicsModel getModel()
           
 Object getObject(String childTypeUri)
          Convenience accessor for the *simple* value of a single-valued child.
 String getString(String childTypeUri)
          Convenience accessor for the *simple* value of a single-valued child.
 Topic getTopic(String childTypeUri)
          Accesses a single-valued child.
 List<Topic> getTopics(String childTypeUri)
          Accesses a multiple-valued child.
 boolean has(String childTypeUri)
           
 ChildTopics remove(String childTypeUri, long topicId)
           
 ChildTopics set(String childTypeUri, ChildTopicsModel value)
          Convenience method to set the composite value of a child.
 ChildTopics set(String childTypeUri, Object value)
          Convenience method to set the simple value of a child.
 ChildTopics set(String childTypeUri, TopicModel value)
          Sets a child.
 ChildTopics setRef(String childTypeUri, long refTopicId)
           
 ChildTopics setRef(String childTypeUri, String refTopicUri)
           
 int size()
           
 

Method Detail

getTopic

Topic getTopic(String childTypeUri)
Accesses a single-valued child. Throws if there is no such child.


getTopics

List<Topic> getTopics(String childTypeUri)
Accesses a multiple-valued child. Throws if there is no such child.


get

Object get(String childTypeUri)

has

boolean has(String childTypeUri)

childTypeUris

Iterable<String> childTypeUris()

size

int size()

getModel

ChildTopicsModel getModel()

getString

String getString(String childTypeUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.


getInt

int getInt(String childTypeUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.


getLong

long getLong(String childTypeUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.


getDouble

double getDouble(String childTypeUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.


getBoolean

boolean getBoolean(String childTypeUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.


getObject

Object getObject(String childTypeUri)
Convenience accessor for the *simple* value of a single-valued child. Throws if the child doesn't exist.


getChildTopics

ChildTopics getChildTopics(String childTypeUri)
Convenience accessor for the *composite* value of a single-valued child. Throws if the child doesn't exist.


set

ChildTopics set(String childTypeUri,
                TopicModel value)
Sets a child. Works for both, single-valued child and multiple-valued child (cardinality "many").


set

ChildTopics set(String childTypeUri,
                Object value)
Convenience method to set the simple value of a child. Works for both, single-valued child and multiple-valued child (cardinality "many").

Parameters:
value - The simple value. Either String, Integer, Long, Double, or Boolean. Primitive values are auto-boxed.

set

ChildTopics set(String childTypeUri,
                ChildTopicsModel value)
Convenience method to set the composite value of a child. Works for both, single-valued child and multiple-valued child (cardinality "many").


setRef

ChildTopics setRef(String childTypeUri,
                   long refTopicId)

setRef

ChildTopics setRef(String childTypeUri,
                   String refTopicUri)

remove

ChildTopics remove(String childTypeUri,
                   long topicId)


Copyright © 2015. All Rights Reserved.