org.universAAL.support.utils.service
Class Change

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

public class Change
extends Value

Class representing a Change-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. A Change-type argument means that the value represented by this argument must "replace" whatever old value was held by the the service you intend to call.

Author:
alfiva

Field Summary
 
Fields inherited from class org.universAAL.support.utils.service.Value
isByURI, uri
 
Constructor Summary
Change(Object byValue)
          Recommended for use by SimpleRequests.
Change(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

Change

public Change(Object byValue)
Recommended for use by SimpleRequests. Value used to define values to change 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 new value to set

Change

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

Parameters:
byTypeURI - A type URI of a ManagedIndividual or native type representing the type of new value to set. 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 change

getURI

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

Returns:
The type URI of the value to change


Copyright © 2014 universAAL Consortium. All Rights Reserved.