|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MinCardinalityRestriction
A property restriction that requires the named property to have have at least the given number of values for a given instance to be a member of the class defined by the restriction.
Method Summary | |
---|---|
int |
getMinCardinality()
Answer the minimum cardinality of the restricted property. |
boolean |
hasMinCardinality(int cardinality)
Answer true if this property restriction has the given minimum cardinality. |
void |
removeMinCardinality(int cardinality)
Remove the statement that this restriction has the given minimum cardinality for the restricted property. |
void |
setMinCardinality(int cardinality)
Assert that this restriction restricts the property to have the given minimum cardinality. |
Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource |
---|
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getPropertyResourceValue, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
---|
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isURIResource, visitWith |
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode |
---|
asNode |
Method Detail |
---|
void setMinCardinality(int cardinality)
Assert that this restriction restricts the property to have the given
minimum cardinality. Any existing statements for minCardinality
will be removed.
cardinality
- The minimum cardinality of the restricted property
OntProfileException
- If the Profile.MIN_CARDINALITY()
property is not supported in the current language profile.int getMinCardinality()
Answer the minimum cardinality of the restricted property.
OntProfileException
- If the Profile.MIN_CARDINALITY()
property is not supported in the current language profile.boolean hasMinCardinality(int cardinality)
Answer true if this property restriction has the given minimum cardinality.
cardinality
- The cardinality to test against
OntProfileException
- If the Profile.MIN_CARDINALITY()
property is not supported in the current language profile.void removeMinCardinality(int cardinality)
Remove the statement that this restriction has the given minimum cardinality for the restricted property. If this statement is not true of the current model, nothing happens.
cardinality
- A min cardinality value to be removed from this restriction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |