|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CanonicalDataRange
| Method Summary | |
|---|---|
boolean |
accepts(DataConstant constant)
Checks whether constant is the String representation of a value in the data range, where the string has to be interpreted according to the datatype URI. |
boolean |
canHandleAll(java.util.Set<DatatypeRestriction.DT> datatypes)
Can be used to check whether the implementation supports the given set of datatypes, e.g., the implementation for integers supports long, unsignedByte, etc. |
void |
conjoinFacetsFrom(DataRange range)
Conjoins the facet restrictions from the given data range, provided it is of the same concrete implementation, i.e., we can conjoins the facets of an instance of DatatypeRestrictionString to another instance of DatatypeRestrictionString. |
boolean |
datatypeAccepts(DataConstant constant)
Can be used to check whether a given constant is in principle in the range of this implementation. |
boolean |
facetsAccept(DataConstant constant)
Checks if the constant conforms to the facets |
DatatypeRestriction.DT |
getDatatype()
The datatype implements this DataRange instance |
java.net.URI |
getDatatypeURI()
The URI of the datatype that implements this DataRange instance |
java.math.BigInteger |
getEnumerationSize()
Compute the set of String representations of the allowed values for this data range, provided it is finite. |
java.util.Set<DataConstant> |
getOneOf()
Constants that are representing the allowed assignments for this datatype restriction. |
DataConstant |
getSmallestAssignment()
Computes the lexicographically smallest assignment given the restrictions. |
boolean |
hasMinCardinality(java.math.BigInteger n)
Checks whether the interpretation of this data range consists of at least n values. |
boolean |
isBottom()
Checks whether this data range cannot contain values |
boolean |
isFinite()
Checks whether the interpretation of this data range is necessarily finite. |
boolean |
isNegated()
Checks whether this data range is negated. |
void |
negate()
Negate this data range, i.e., if the range was negated it is no longer negated afterwards and if it was not negated it will be negated afterwards. |
boolean |
notOneOf(DataConstant constant)
Adds constant to the values that are not allowed in this data range. |
void |
setNotOneOf(java.util.Set<DataConstant> notOneOf)
A set of values that are not in the interpretation of this datatype restriction. |
void |
setOneOf(java.util.Set<DataConstant> oneOf)
Defines the datatype restriction in terms of a set of constants. |
| Method Detail |
|---|
java.net.URI getDatatypeURI()
DatatypeRestriction.DT getDatatype()
boolean isNegated()
void negate()
boolean isBottom()
boolean isFinite()
java.util.Set<DataConstant> getOneOf()
void setOneOf(java.util.Set<DataConstant> oneOf)
oneOf - A set of constants that are String representations of values
that are to be interpreted according to the datatype URI of the
concrete implementation of the DataRangevoid setNotOneOf(java.util.Set<DataConstant> notOneOf)
notOneOf - A set of constants that are String representations of
values that are to be interpreted according to the datatype URI of
the concrete implementation of the DataRangeboolean notOneOf(DataConstant constant)
constant - A constants that is a String representation of a value
that is to be interpreted according to the datatype URI of the
concrete implementation of the DataRange
void conjoinFacetsFrom(DataRange range)
throws java.lang.IllegalArgumentException
range - a data range that is of the same concrete implementation as
this.
java.lang.IllegalArgumentException - if the concrete realisation of the given
data range is different from the one for this data range.boolean facetsAccept(DataConstant constant)
constant -
boolean accepts(DataConstant constant)
constant - A String representation of a constant for this data range.
boolean canHandleAll(java.util.Set<DatatypeRestriction.DT> datatypes)
datatypes - a set of datatypes
boolean datatypeAccepts(DataConstant constant)
constant - a constant
boolean hasMinCardinality(java.math.BigInteger n)
n -
java.math.BigInteger getEnumerationSize()
DataConstant getSmallestAssignment()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||