public class Path extends Object
Request req=new Request(new Lighting(null));
req.put(Path.at(Lighting.PROP_CONTROLS).to(LightSource.PROP_HAS_TYPE), Arg.type(ElectricLight.MY_URI));
req.put(Path.at(Lighting.PROP_CONTROLS), Arg.in(new LightSource(desiredURI)));
req.put(Path.at(Lighting.PROP_CONTROLS).to(LightSource.PROP_SOURCE_BRIGHTNESS), Arg.change(new Integer(0)));
caller.call(req);
Modifier and Type | Field and Description |
---|---|
String[] |
path
Holds the value of the path.
|
Constructor and Description |
---|
Path(String path)
Main constructor.
|
Path(String[] path)
Additional constructor if you already have a property path but want to
turn it into a Path object.
|
Modifier and Type | Method and Description |
---|---|
static Path |
at(String to)
Return a new instance of Path starting its branch path at parameter to.
|
static Path |
parse(String path)
Get a Path object with the given property path.
|
static Path |
parse(String[] path)
Get a Path object with the given property path.
|
static Path |
start(String to)
Deprecated.
|
Path |
to(String to)
Puts a new step (a new property) in the branch path.
|
public String[] path
public Path(String path)
new Path(firstproperty)...
instead of
Path.at(firstproperty)...
path
- The first property of the path, coming from the service rootpublic Path(String[] path)
path
- The property path, coming from the service root@Deprecated public static Path start(String to)
to
- The first property of the path, coming from the service rootpublic static Path at(String to)
to
- The first property of the path, coming from the service rootpublic Path to(String to)
to
- The next property in the path, coming from a previous call to
.startpublic static Path parse(String[] path)
path
- The property pathCopyright © 2018 universAAL Consortium. All rights reserved.