org.universAAL.support.utils.service
Class Add

Package class diagram package Add
java.lang.Object
  extended by org.universAAL.support.utils.service.Value
      extended by org.universAAL.support.utils.service.Add

public class Add
extends Value

Class representing an Add-type argument in a service request. Arguments are the "leaf" objects at the end of a property path and can be of several types depending on what you want to do with them. An Add-type argument means that the value represented by this argument must be "added" by the service you intend to call.

Author:
alfiva

Field Summary
 
Fields inherited from class org.universAAL.support.utils.service.Value
isByURI, uri
 
Constructor Summary
Add(Object byValue)
          Recommended for use by SimpleRequests.
Add(String byTypeURI)
          Recommended for use by SimpleProfiles.
 
Method Summary
 Object getObject()
          This is only supposed to be used internally.
 String getURI()
          This is only supposed to be used internally.
 
Methods inherited from class org.universAAL.support.utils.service.Value
byURI, createEmptyInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Add

public Add(Object byValue)
Recommended for use by SimpleRequests. Value used to define values to add as arguments of a Request. If this constructor is used by Simple Profiles with a specific instance value the input is not treated as a variable reference but as a explicit added value.

Parameters:
byValue - An instance of a ManagedIndividual or native type representing the value to add

Add

public Add(String byTypeURI)
Recommended for use by SimpleProfiles. Value used to define values to add as arguments of a Profile.

Parameters:
byTypeURI - A type URI of a ManagedIndividual or native type representing the type of value to add. However if the parameter is not a valid URI, it will be understood as an instance of a String, as if it used the "byValue" constructor instead.
Method Detail

getObject

public Object getObject()
This is only supposed to be used internally.

Returns:
The actual value of the value to add

getURI

public String getURI()
This is only supposed to be used internally.

Returns:
The type URI of the value to add


Copyright © 2014 universAAL Consortium. All Rights Reserved.