org.omwg.ontology
Interface Parameter


public interface Parameter

Defines WSMO parameter of a relation.

Version:
$Revision: 1946 $Date:
Author:
not attributable, not attributable
See Also:
Relation

Method Summary
 void addType(Type type)
          Adds a new Type as range for this parameter.
 Relation getRelation()
          Returns the Relation to which this parameter is assigned.
 boolean isConstraining()
          Returns the type of this parameter.
 Set<Type> listTypes()
          Returns the list of allowed Type for the current parameter.
 void removeType(Type type)
          Removes a Type for this parameter.
 void setConstraining(boolean constraining)
          Sets the type of this parameter.
 

Method Detail

isConstraining

boolean isConstraining()
Returns the type of this parameter.

Returns:
true (constraining) / false (inferring)

setConstraining

void setConstraining(boolean constraining)
Sets the type of this parameter.

Parameters:
constraining - true (constraining) / false (inferring)

getRelation

Relation getRelation()
Returns the Relation to which this parameter is assigned.

Returns:

addType

void addType(Type type)
             throws InvalidModelException
Adds a new Type as range for this parameter.

Parameters:
type - the Type to be added
Throws:
InvalidModelException

removeType

void removeType(Type type)
Removes a Type for this parameter.

Parameters:
type - the Type to be removed
Throws:
InvalidModelException

listTypes

Set<Type> listTypes()
Returns the list of allowed Type for the current parameter.

Returns:
Set of Type objects


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.