de.deepamehta.core
Interface CompositeValue

Show UML class diagram
All Known Implementing Classes:
AttachedCompositeValue

public interface CompositeValue


Method Summary
 Iterable<String> childTypeUris()
           
 Object get(String childTypeUri)
           
 boolean getBoolean(String childTypeUri)
          Convenience accessor for the *simple* value of a single-valued child.
 boolean getBoolean(String childTypeUri, boolean defaultValue)
          Convenience accessor for the *simple* value of a single-valued child.
 CompositeValue getCompositeValue(String childTypeUri)
          Convenience accessor for the *composite* value of a single-valued child.
 CompositeValue getCompositeValue(String childTypeUri, CompositeValue defaultValue)
          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.
 double getDouble(String childTypeUri, double defaultValue)
          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.
 int getInt(String childTypeUri, int defaultValue)
          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.
 long getLong(String childTypeUri, long defaultValue)
          Convenience accessor for the *simple* value of a single-valued child.
 CompositeValueModel getModel()
           
 Object getObject(String childTypeUri)
          Convenience accessor for the *simple* value of a single-valued child.
 Object getObject(String childTypeUri, Object defaultValue)
          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.
 String getString(String childTypeUri, String defaultValue)
          Convenience accessor for the *simple* value of a single-valued child.
 Topic getTopic(String childTypeUri)
          Accesses a single-valued child.
 Topic getTopic(String childTypeUri, Topic defaultTopic)
          Accesses a single-valued child.
 List<Topic> getTopics(String childTypeUri)
          Accesses a multiple-valued child.
 List<Topic> getTopics(String childTypeUri, List<Topic> defaultValue)
          Accesses a multiple-valued child.
 boolean has(String childTypeUri)
           
 CompositeValue remove(String childTypeUri, long topicId, ClientState clientState, Directives directives)
           
 CompositeValue set(String childTypeUri, CompositeValueModel value, ClientState clientState, Directives directives)
          Convenience method to set the composite value of a child.
 CompositeValue set(String childTypeUri, Object value, ClientState clientState, Directives directives)
          Convenience method to set the simple value of a child.
 CompositeValue set(String childTypeUri, TopicModel value, ClientState clientState, Directives directives)
          Sets a child.
 CompositeValue setRef(String childTypeUri, long refTopicId, ClientState clientState, Directives directives)
           
 CompositeValue setRef(String childTypeUri, String refTopicUri, ClientState clientState, Directives directives)
           
 int size()
           
 

Method Detail

getTopic

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


getTopic

Topic getTopic(String childTypeUri,
               Topic defaultTopic)
Accesses a single-valued child. Returns a default value if there is no such child.


getTopics

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


getTopics

List<Topic> getTopics(String childTypeUri,
                      List<Topic> defaultValue)
Accesses a multiple-valued child. Returns a default value if there is no such child.


get

Object get(String childTypeUri)

has

boolean has(String childTypeUri)

childTypeUris

Iterable<String> childTypeUris()

size

int size()

getModel

CompositeValueModel getModel()

getString

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


getString

String getString(String childTypeUri,
                 String defaultValue)
Convenience accessor for the *simple* value of a single-valued child. Returns a default value 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.


getInt

int getInt(String childTypeUri,
           int defaultValue)
Convenience accessor for the *simple* value of a single-valued child. Returns a default value 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.


getLong

long getLong(String childTypeUri,
             long defaultValue)
Convenience accessor for the *simple* value of a single-valued child. Returns a default value 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.


getDouble

double getDouble(String childTypeUri,
                 double defaultValue)
Convenience accessor for the *simple* value of a single-valued child. Returns a default value 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.


getBoolean

boolean getBoolean(String childTypeUri,
                   boolean defaultValue)
Convenience accessor for the *simple* value of a single-valued child. Returns a default value 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.


getObject

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


getCompositeValue

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


getCompositeValue

CompositeValue getCompositeValue(String childTypeUri,
                                 CompositeValue defaultValue)
Convenience accessor for the *composite* value of a single-valued child. Returns a default value if the child doesn't exist.


set

CompositeValue set(String childTypeUri,
                   TopicModel value,
                   ClientState clientState,
                   Directives directives)
Sets a child. Works for both, single-valued child and multiple-valued child (cardinality "many").


set

CompositeValue set(String childTypeUri,
                   Object value,
                   ClientState clientState,
                   Directives directives)
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

CompositeValue set(String childTypeUri,
                   CompositeValueModel value,
                   ClientState clientState,
                   Directives directives)
Convenience method to set the composite value of a child. Works for both, single-valued child and multiple-valued child (cardinality "many").


setRef

CompositeValue setRef(String childTypeUri,
                      long refTopicId,
                      ClientState clientState,
                      Directives directives)

setRef

CompositeValue setRef(String childTypeUri,
                      String refTopicUri,
                      ClientState clientState,
                      Directives directives)

remove

CompositeValue remove(String childTypeUri,
                      long topicId,
                      ClientState clientState,
                      Directives directives)


Copyright © 2014. All Rights Reserved.