public class ProcessParameter extends Variable
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
.
Variable.VariableHandler
Modifier and Type | Field and Description |
---|---|
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 |
VAR_ACCESSING_BUS_MEMBER, VAR_ACCESSING_HUMAN_USER, VAR_CURRENT_DATETIME, VAR_SERVICE_TO_SELECT
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, NAMESPACE_PREFIX, ns_delim_index, PROP_INVOLVED_HUMAN_USER, 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, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, SERVICE_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uri, VOCABULARY_NAMESPACE
Constructor and Description |
---|
ProcessParameter(String uri,
String subType) |
Modifier and Type | Method and Description |
---|---|
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
|
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
|
boolean |
isWellFormed()
return true iff this process parameter is well formed (the properties
have consistent values)
|
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
|
checkDeserialization, isVarRef, register, resolveVarRef
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
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
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 propertyCopyright © 2018 universAAL Consortium. All rights reserved.