public class TransfService
extends java.lang.Object
Represents a tranformation service to transform the values of attributes.
In the specification a transf
is a local transformaion
function/service. The pov
specifies the parameters needed for the
function to compute the transformaion.
In the specification a service
is a remote transformaion
function/service. The id
distiguishes between multiple transformation
function at the given address. The pov
specifies the parameters
needed for the function to compute the transformaion.
Modifier and Type | Field and Description |
---|---|
private java.net.URI |
id
id of the transformation function (only used if it is a service)
|
private java.util.Set<Id> |
params
paramteters for the transformation
|
private java.net.URI |
res
resource (uri) to the service
|
Constructor and Description |
---|
TransfService(java.net.URI res,
java.util.Collection<Id> params)
Constructs a transf.
|
TransfService(java.net.URI res,
java.net.URI id,
java.util.Collection<Id> params)
Constructs a service.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.net.URI |
getId()
Returns the id of the transformation function.
|
java.util.Set<Id> |
getParameters()
Returns an unmodifiable set of parameters needed for the transformation.
|
java.net.URI |
getRes()
Returns the resource / uri to the transformation.
|
int |
hashCode() |
boolean |
hasId()
Returns whether there is a id.
|
java.lang.String |
toString()
Returns a short string description of this object.
|
private java.net.URI res
private java.net.URI id
private java.util.Set<Id> params
public TransfService(java.net.URI res, java.util.Collection<Id> params)
Constructs a transf.
res
- uri to the serviceparams
- parameters for the transformationjava.lang.NullPointerException
- if the res is null
public TransfService(java.net.URI res, java.net.URI id, java.util.Collection<Id> params)
Constructs a service.
res
- uri to the serviceid
- id of the transformation functionparams
- parameters for the transformationjava.lang.NullPointerException
- if the res is null
public java.net.URI getRes()
public java.net.URI getId()
null
) if it is a service.hasId()
public java.util.Set<Id> getParameters()
public boolean hasId()
true
if there is a usable id, otherwise false
getId()
public java.lang.String toString()
Returns a short string description of this object. The format of the returned string is undocumented and subject to change.
An example string could be:
transf: http://my/super/transf params: [dollar]
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
(C) INRIA & friends, 2003-2020