org.universAAL.support.utils.service
Class Variable
java.lang.Object
org.universAAL.support.utils.service.Value
org.universAAL.support.utils.service.Variable
public class Variable
- extends Value
Class representing a Variable-Input-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
Variable-Input-type argument means that you intend to call a service that
"handles" the value represented by this argument. The value of the argument
is passed onto the service so it can "handle" it.
- Author:
- alfiva
Fields inherited from class org.universAAL.support.utils.service.Value |
isByURI, uri |
Constructor Summary |
Variable(Object byValue)
Recommended for use by SimpleRequests. |
Variable(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Variable
public Variable(Object byValue)
- Recommended for use by SimpleRequests. Value used to define
values to be used as variable inputs in arguments of a Request or
Profile. 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 required input.
- Parameters:
byValue
- An instance of a ManagedIndividual or native type representing
the value that must be passed as variable input to the service
Variable
public Variable(String byTypeURI)
- Recommended for use by SimpleProfiles. Value used to define
values to be used as variable inputs in arguments of a Profile.
- Parameters:
byTypeURI
- A type URI of a ManagedIndividual or native type representing
the type of value that must be passed as variable input to the
service. 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.
getObject
public Object getObject()
- This is only supposed to be used internally.
- Returns:
- The actual value of the variable
getURI
public String getURI()
- This is only supposed to be used internally.
- Returns:
- The type URI of the variable
Copyright © 2014 universAAL Consortium. All Rights Reserved.