|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.sswap.api.input.impl.AbstractInput
public abstract class AbstractInput
| Field Summary | |
|---|---|
protected java.lang.String |
description
|
protected java.lang.String |
label
|
protected PropertyInput |
propertyInput
|
protected java.net.URI |
type
|
protected InputValue |
value
|
| Constructor Summary | |
|---|---|
AbstractInput(java.net.URI type)
|
|
| Method Summary | |
|---|---|
protected boolean |
genericEqualTo(Input that)
Checks the equality of generic fields value, label, description. |
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. |
protected java.lang.String |
toStringLabel()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface info.sswap.api.input.Input |
|---|
accept |
| Field Detail |
|---|
protected final java.net.URI type
protected InputValue value
protected java.lang.String label
protected java.lang.String description
protected PropertyInput propertyInput
| Constructor Detail |
|---|
public AbstractInput(java.net.URI type)
| Method Detail |
|---|
protected boolean genericEqualTo(Input that)
public PropertyInput getPropertyInput()
getPropertyInput in interface Inputpublic void setPropertyInput(PropertyInput propertyInput)
setPropertyInput in interface Inputpublic java.net.URI getType()
getType in interface Inputpublic java.lang.String getDescription()
Inputrdfs:comment for that class. If the input is a property
input, comment of the property is used.
getDescription in interface Inputnull if there is no descriptionpublic void setDescription(java.lang.String description)
Input
setDescription in interface Inputpublic java.lang.String getLabel()
Inputrdfs: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.
getLabel in interface Inputnull if there is no labelpublic void setLabel(java.lang.String label)
Input
setLabel in interface Inputpublic InputValue getValue()
getValue in interface Inputpublic void setValue(InputValue value)
setValue in interface Inputpublic boolean isUnrestricted()
true if there are no restrictions on the input. This is the case for owl:Thing
and rdfs:Literal.
isUnrestricted in interface Inputprotected java.lang.String toStringLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||