info.sswap.api.input
Interface Input

All Known Subinterfaces:
AtomicInput, EnumeratedInput, IntersectionInput, NaryInput, PropertyInput, UnionInput
All Known Implementing Classes:
AbstractInput, AtomicInputImpl, EnumeratedInputImpl, IntersectionInputImpl, PropertyInputImpl, UnionInputImpl

public interface Input

Represents the input specification for an OWL class or datatype expression. The purpose of this presentation is to provide an easy way to create an input form for the associated class expression. The hierarchy of this class is based on OWL expressions but is significantly simplified to make input form creation easy.

Author:
Evren Sirin

Method Summary
 void accept(InputVisitor visitor)
          Visitor function.
 java.lang.String getDescription()
          Returns the description of this input.The description of the input is application-dependent.
 java.lang.String getLabel()
          Returns the label of this input.
 PropertyInput getPropertyInput()
           
 java.net.URI getType()
          Returns the type of the input.
 InputValue getValue()
          Returns the value associated with this input object.
 boolean isUnrestricted()
          Returns true if there are no restrictions on the input.
 void setDescription(java.lang.String description)
          Sets the description of this input.
 void setLabel(java.lang.String label)
          Sets the label for this input.
 void setPropertyInput(PropertyInput propertyInput)
           
 void setValue(InputValue value)
          Sets the value for this input object.
 

Method Detail

getType

java.net.URI getType()
Returns the type of the input.


isUnrestricted

boolean isUnrestricted()
Returns true if there are no restrictions on the input. This is the case for owl:Thing and rdfs:Literal.


getValue

InputValue getValue()
Returns the value associated with this input object.


setValue

void setValue(InputValue value)
Sets the value for this input object.


getLabel

java.lang.String getLabel()
Returns the label of this input. The label of the input is application-dependent. Typically, if the input represent a class label will be the rdfs:label for that class. If the input is a property input, label of the property is used. If there is no rdfs:label for the class or property then the local name of the URI is used.

Returns:
the label for this input or null if there is no label

setLabel

void setLabel(java.lang.String label)
Sets the label for this input.


getDescription

java.lang.String getDescription()
Returns the description of this input.The description of the input is application-dependent. Typically, if the input represent a class label will be the rdfs:comment for that class. If the input is a property input, comment of the property is used.

Returns:
the description of this input or null if there is no description

setDescription

void setDescription(java.lang.String description)
Sets the description of this input.


accept

void accept(InputVisitor visitor)
Visitor function.


getPropertyInput

PropertyInput getPropertyInput()

setPropertyInput

void setPropertyInput(PropertyInput propertyInput)


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.