|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.HermiT.model.dataranges.DatatypeRestriction
org.semanticweb.HermiT.model.dataranges.DatatypeRestrictionLiteral
public class DatatypeRestrictionLiteral
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.semanticweb.HermiT.model.dataranges.DatatypeRestriction |
|---|
DatatypeRestriction.DT, DatatypeRestriction.Facets |
| Field Summary |
|---|
| Fields inherited from class org.semanticweb.HermiT.model.dataranges.DatatypeRestriction |
|---|
datatype, isBottom, isNegated, notOneOf, oneOf, supportedFacets, uris |
| Constructor Summary | |
|---|---|
DatatypeRestrictionLiteral(DatatypeRestriction.DT datatype)
|
|
| 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. |
void |
addFacet(DatatypeRestriction.Facets facet,
java.lang.String value)
Adds a facet, if it is supported by the implementation that implements the data range. |
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. |
java.math.BigInteger |
getEnumerationSize()
Compute the set of String representations of the allowed values for this data range, provided it is finite. |
CanonicalDataRange |
getNewInstance()
|
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. |
| Methods inherited from class org.semanticweb.HermiT.model.dataranges.DatatypeRestriction |
|---|
addOneOf, facetsAccept, getArity, getDatatype, getDatatypeURI, getOneOf, isNegated, negate, notOneOf, printExtraInfo, setNotOneOf, setOneOf, supports, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.semanticweb.HermiT.model.dataranges.DataRange |
|---|
addOneOf, getDatatype, getDatatypeURI, getOneOf, isNegated, negate, supports |
| Constructor Detail |
|---|
public DatatypeRestrictionLiteral(DatatypeRestriction.DT datatype)
| Method Detail |
|---|
public CanonicalDataRange getNewInstance()
getNewInstance in interface DataRangepublic boolean isBottom()
CanonicalDataRange
isBottom in interface CanonicalDataRangeisBottom in interface DataRangeisBottom in class DatatypeRestrictionpublic boolean isFinite()
CanonicalDataRange
isFinite in interface CanonicalDataRange
public void addFacet(DatatypeRestriction.Facets facet,
java.lang.String value)
DataRange
addFacet in interface DataRangefacet - A facet.value - A String representation of the facet value.public void conjoinFacetsFrom(DataRange range)
CanonicalDataRange
conjoinFacetsFrom in interface CanonicalDataRangerange - a data range that is of the same concrete implementation as
this.public boolean accepts(DataConstant constant)
CanonicalDataRange
accepts in interface CanonicalDataRangeconstant - A String representation of a constant for this data range.
public boolean hasMinCardinality(java.math.BigInteger n)
CanonicalDataRange
hasMinCardinality in interface CanonicalDataRangepublic java.math.BigInteger getEnumerationSize()
CanonicalDataRange
getEnumerationSize in interface CanonicalDataRangepublic DataConstant getSmallestAssignment()
CanonicalDataRange
getSmallestAssignment in interface CanonicalDataRangepublic boolean datatypeAccepts(DataConstant constant)
CanonicalDataRange
datatypeAccepts in interface CanonicalDataRangeconstant - a constant
public boolean canHandleAll(java.util.Set<DatatypeRestriction.DT> datatypes)
CanonicalDataRange
canHandleAll in interface CanonicalDataRangedatatypes - a set of datatypes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||