org.topbraid.spin.model
Interface Attribute

All Superinterfaces:
AbstractAttribute

public interface Attribute
extends AbstractAttribute

Jena wrapper for spl:Attribute.

Author:
Holger Knublauch

Method Summary
 RDFNode getDefaultValue()
          Gets the declared default value of this attribute, as defined using spl:defaultValue.
 java.lang.Integer getMaxCount()
          Gets the maximum cardinality of this attribute, if specified.
 int getMinCount()
          Gets the minimum cardinality of this attribute.
 
Methods inherited from interface org.topbraid.spin.model.AbstractAttribute
getComment, getPredicate, getValueType, isOptional
 

Method Detail

getDefaultValue

RDFNode getDefaultValue()
Gets the declared default value of this attribute, as defined using spl:defaultValue. Might be null.

Returns:
the default value

getMaxCount

java.lang.Integer getMaxCount()
Gets the maximum cardinality of this attribute, if specified. This is based on spl:maxCount. Null if unspecified.

Returns:
the maximum cardinality or null if none is given

getMinCount

int getMinCount()
Gets the minimum cardinality of this attribute. This is based on spl:minCount. Default value is 0.

Returns:
the minimum cardinality