|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.HermiT.model.dataranges.DatatypeRestriction
public abstract class DatatypeRestriction
| Nested Class Summary | |
|---|---|
static class |
DatatypeRestriction.DT
|
static class |
DatatypeRestriction.Facets
|
| Field Summary | |
|---|---|
protected DatatypeRestriction.DT |
datatype
|
protected boolean |
isBottom
|
protected boolean |
isNegated
|
protected java.util.Set<DataConstant> |
notOneOf
|
protected java.util.Set<DataConstant> |
oneOf
|
protected java.util.Set<DatatypeRestriction.Facets> |
supportedFacets
|
protected static java.util.Map<java.lang.String,java.lang.String> |
uris
|
| Constructor Summary | |
|---|---|
DatatypeRestriction()
|
|
| Method Summary | |
|---|---|
boolean |
addOneOf(DataConstant constant)
Adds constant to the values that represent this data range. |
boolean |
facetsAccept(DataConstant constant)
Checks if the constant conforms to the facets |
int |
getArity()
|
DatatypeRestriction.DT |
getDatatype()
The datatype implements this DataRange instance |
java.net.URI |
getDatatypeURI()
The URI of the datatype that implements this DataRange instance |
java.util.Set<DataConstant> |
getOneOf()
Constants that are representing the allowed assignments for this datatype restriction. |
boolean |
isBottom()
Checks whether this data range cannot contain values |
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. |
protected java.lang.String |
printExtraInfo(Namespaces namespaces)
Can be overwritten by the sub-classes, to print something between the datatype restriction and the list of oneOfs/notOneOfs |
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. |
boolean |
supports(DatatypeRestriction.Facets facet)
Checks whether the given facet is supported by the concrete implementation of this data range. |
java.lang.String |
toString()
|
java.lang.String |
toString(Namespaces namespaces)
|
| 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 |
|---|
addFacet, getNewInstance |
| Methods inherited from interface org.semanticweb.HermiT.model.dataranges.CanonicalDataRange |
|---|
accepts, canHandleAll, conjoinFacetsFrom, datatypeAccepts, getEnumerationSize, getSmallestAssignment, hasMinCardinality, isFinite |
| Field Detail |
|---|
protected java.util.Set<DatatypeRestriction.Facets> supportedFacets
protected static final java.util.Map<java.lang.String,java.lang.String> uris
protected DatatypeRestriction.DT datatype
protected java.util.Set<DataConstant> oneOf
protected java.util.Set<DataConstant> notOneOf
protected boolean isNegated
protected boolean isBottom
| Constructor Detail |
|---|
public DatatypeRestriction()
| Method Detail |
|---|
public int getArity()
getArity in interface DLPredicatepublic DatatypeRestriction.DT getDatatype()
CanonicalDataRange
getDatatype in interface CanonicalDataRangegetDatatype in interface DataRangepublic java.net.URI getDatatypeURI()
CanonicalDataRange
getDatatypeURI in interface CanonicalDataRangegetDatatypeURI in interface DataRangepublic boolean isNegated()
CanonicalDataRange
isNegated in interface CanonicalDataRangeisNegated in interface DataRangepublic void negate()
CanonicalDataRange
negate in interface CanonicalDataRangenegate in interface DataRangepublic boolean isBottom()
CanonicalDataRange
isBottom in interface CanonicalDataRangeisBottom in interface DataRangepublic java.util.Set<DataConstant> getOneOf()
CanonicalDataRange
getOneOf in interface CanonicalDataRangegetOneOf in interface DataRangepublic void setOneOf(java.util.Set<DataConstant> oneOf)
CanonicalDataRange
setOneOf in interface CanonicalDataRangeoneOf - 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 DataRangepublic boolean addOneOf(DataConstant constant)
DataRange
addOneOf in interface DataRangeconstant - 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
public void setNotOneOf(java.util.Set<DataConstant> notOneOf)
CanonicalDataRange
setNotOneOf in interface CanonicalDataRangenotOneOf - 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 DataRangepublic boolean notOneOf(DataConstant constant)
CanonicalDataRange
notOneOf in interface CanonicalDataRangeconstant - 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
public boolean facetsAccept(DataConstant constant)
CanonicalDataRange
facetsAccept in interface CanonicalDataRangepublic boolean supports(DatatypeRestriction.Facets facet)
DataRange
supports in interface DataRangefacet - a facet.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(Namespaces namespaces)
toString in interface DLPredicateprotected java.lang.String printExtraInfo(Namespaces namespaces)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||