|
||||||||||
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 Input
public void setPropertyInput(PropertyInput propertyInput)
setPropertyInput
in interface Input
public java.net.URI getType()
getType
in interface Input
public java.lang.String getDescription()
Input
rdfs:comment
for that class. If the input is a property
input, comment of the property is used.
getDescription
in interface Input
null
if there is no descriptionpublic void setDescription(java.lang.String description)
Input
setDescription
in interface Input
public java.lang.String getLabel()
Input
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.
getLabel
in interface Input
null
if there is no labelpublic void setLabel(java.lang.String label)
Input
setLabel
in interface Input
public InputValue getValue()
getValue
in interface Input
public void setValue(InputValue value)
setValue
in interface Input
public boolean isUnrestricted()
true
if there are no restrictions on the input. This is the case for owl:Thing
and rdfs:Literal
.
isUnrestricted
in interface Input
protected java.lang.String toStringLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |