org.topbraid.spin.model
Interface AbstractAttribute

All Known Subinterfaces:
Argument, Attribute

public interface AbstractAttribute

Shared base class for Argument and Attribute.

Author:
Holger Knublauch

Method Summary
 java.lang.String getComment()
          Gets the description (stored in rdfs:comment) of this.
 Property getPredicate()
          Gets the specified sp:argProperty (if any).
 Resource getValueType()
          Gets the specified spl:valueType (if any).
 boolean isOptional()
          Checks if this argument has been declared to be optional.
 

Method Detail

getComment

java.lang.String getComment()
Gets the description (stored in rdfs:comment) of this.

Returns:
the description (if any exists)

getPredicate

Property getPredicate()
Gets the specified sp:argProperty (if any).

Returns:
the argProperty

getValueType

Resource getValueType()
Gets the specified spl:valueType (if any).

Returns:
the value type

isOptional

boolean isOptional()
Checks if this argument has been declared to be optional. For Arguments this means spl:optional = true. For Attributes this means spl:minCardinality = 0

Returns:
true if optional