|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.rdf.Resource
org.universAAL.middleware.rdf.FinalizedResource
org.universAAL.middleware.rdf.Variable
org.universAAL.middleware.service.owls.process.ProcessParameter
public class ProcessParameter
Implementation of process:Parameter (xmlns:process="http://www.daml.org/services/owl-s/1.1/Process.owl#"). A parameter has an overall type and a value that can be set differently in different utilization contexts, unless it is a constant.
This implementation of process:Parameter, however, differs from the OWL-S process ontology in the following way:
cardinality
for specifying a precise cardinality, maxCardinality
for
specifying the maximum number of values assignable to the parameter, and
minCardinality
for specifying the minimum number of values to be
assigned to the parameter. The cardinality
property is not
visible at the programming level and is only used in serializations, when
both maxCardinality
and minCardinality
have the
same value in order to produce shorter serializations. If no value is
specified for maxCardinality
, Integer.MAX_VALUE
is
assumed; in case of minCardinality
, zero is assumed, which means
that the parameter is an optional parameter. Hence, the original
process:parameterType specifies the type of a single value and the above
cardinality specifications determine how many of such values can be assigned
to process:parameterValue.
defaultValue
.
Field Summary | |
---|---|
static String |
MY_URI
|
static String |
OWLS_PROCESS_NAMESPACE
|
static String |
PROP_OWLS_PROCESS_PARAMETER_TYPE
|
static String |
PROP_OWLS_PROCESS_PARAMETER_VALUE
|
static String |
PROP_OWLS_VALUE_FROM_PROCESS
|
static String |
PROP_OWLS_VALUE_OF_THE_VAR
|
static String |
PROP_PARAMETER_CARDINALITY
|
static String |
PROP_PARAMETER_DEFAULT_VALUE
|
static String |
PROP_PARAMETER_MAX_CARDINALITY
|
static String |
PROP_PARAMETER_MIN_CARDINALITY
|
static String |
TYPE_OWLS_VALUE_OF
|
Fields inherited from class org.universAAL.middleware.rdf.Variable |
---|
VAR_uAAL_ACCESSING_BUS_MEMBER, VAR_uAAL_ACCESSING_HUMAN_USER, VAR_uAAL_CURRENT_DATETIME, VAR_uAAL_SERVICE_TO_SELECT |
Fields inherited from class org.universAAL.middleware.rdf.Resource |
---|
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri |
Constructor Summary | |
---|---|
ProcessParameter(String uri,
String subType)
|
Method Summary | |
---|---|
Resource |
asVariableReference()
Create a variable reference (a resource of OWL-S http://www.daml.org/services/owl-s/1.1/Process.owl#ValueOf class) from this ProcessParameter |
static boolean |
checkDeserialization(Object o)
|
Object |
getDefaultValue()
Returns the default value of this parameter |
int |
getMaxCardinality()
Returns the maximal cardinality of this parameter |
int |
getMinCardinality()
Returns the minimal cardinality of this parameter |
String |
getParameterType()
Returns the parameter type of this parameter |
Object |
getParameterValue()
Returns the value of this parameter |
static boolean |
isVarRef(Object o)
Return true iff the object is Variable Reference (a resource of OWL-S http://www.daml.org/services/owl-s/1.1/Process.owl#ValueOf class) |
boolean |
isWellFormed()
return true iff this process parameter is well formed (the properties have consistent values) |
static Object |
resolveVarRef(Object o,
HashMap context)
Return the variable from the variable reference, either by the property PROP_OWLS_VALUE_OF_THE_VAR
(http://www.daml.org/services/owl-s/1.1/Process.owl#theVar) or from the
context. |
boolean |
setCardinality(int max,
int min)
Set cardinality of the process parameter |
boolean |
setDefaultValue(Object value)
Set the default value of this parameter |
boolean |
setParameterType(String typeURI)
Set the parameter type of this parameter |
boolean |
setParameterValue(Object value)
Set the value of this parameter |
boolean |
setProperty(String prop,
Object val)
Set a value of a property for this process parameter |
Methods inherited from class org.universAAL.middleware.rdf.Variable |
---|
register |
Methods inherited from class org.universAAL.middleware.rdf.FinalizedResource |
---|
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties |
Methods inherited from class org.universAAL.middleware.rdf.Resource |
---|
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String OWLS_PROCESS_NAMESPACE
public static final String MY_URI
public static final String PROP_OWLS_PROCESS_PARAMETER_TYPE
public static final String PROP_OWLS_PROCESS_PARAMETER_VALUE
public static final String PROP_PARAMETER_DEFAULT_VALUE
public static final String PROP_PARAMETER_CARDINALITY
public static final String PROP_PARAMETER_MAX_CARDINALITY
public static final String PROP_PARAMETER_MIN_CARDINALITY
public static final String PROP_OWLS_VALUE_OF_THE_VAR
public static final String PROP_OWLS_VALUE_FROM_PROCESS
public static final String TYPE_OWLS_VALUE_OF
Constructor Detail |
---|
public ProcessParameter(String uri, String subType)
Method Detail |
---|
public static final boolean checkDeserialization(Object o)
public static final boolean isVarRef(Object o)
o
- - the object to test
public static final Object resolveVarRef(Object o, HashMap context)
PROP_OWLS_VALUE_OF_THE_VAR
(http://www.daml.org/services/owl-s/1.1/Process.owl#theVar) or from the
context.
o
- - the variable referencecontext
- - the context
public Resource asVariableReference()
public int getMaxCardinality()
public int getMinCardinality()
getMinCardinality
in class Variable
public Object getDefaultValue()
getDefaultValue
in class Variable
public String getParameterType()
getParameterType
in class Variable
public Object getParameterValue()
public boolean isWellFormed()
isWellFormed
in class Resource
public final boolean setCardinality(int max, int min)
max
- - maximal cardinalitymin
- - minimal cardinalitypublic final boolean setDefaultValue(Object value)
value
- - the object representing the default valuepublic final boolean setParameterType(String typeURI)
typeURI
- - the URI of the parameter typepublic final boolean setParameterValue(Object value)
value
- - the object representing the valuepublic boolean setProperty(String prop, Object val)
setProperty
in class Resource
prop
- - the property to setval
- - the value to set for the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |