|
||||||||||
| 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.DatatypeRestrictionAnyURI
public class DatatypeRestrictionAnyURI
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.semanticweb.HermiT.model.dataranges.DatatypeRestriction |
|---|
DatatypeRestriction.DT, DatatypeRestriction.Facets |
| Field Summary | |
|---|---|
protected boolean |
facetsChanged
|
protected java.math.BigInteger |
maxLength
|
protected java.math.BigInteger |
minLength
|
protected java.lang.String |
pattern
|
protected dk.brics.automaton.Automaton |
patternMatcher
|
protected boolean |
patternMatcherContainsAllFacets
|
| Fields inherited from class org.semanticweb.HermiT.model.dataranges.DatatypeRestriction |
|---|
datatype, isBottom, isNegated, notOneOf, oneOf, supportedFacets, uris |
| Constructor Summary | |
|---|---|
DatatypeRestrictionAnyURI(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. |
protected void |
compileAllFacetsIntoPattern()
|
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 |
java.math.BigInteger |
getEnumerationSize()
Compute the set of String representations of the allowed values for this data range, provided it is finite. |
CanonicalDataRange |
getNewInstance()
|
java.lang.String |
getPattern()
|
dk.brics.automaton.Automaton |
getPatternMatcher()
|
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 |
isFinite()
Checks whether the interpretation of this data range is necessarily finite. |
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 |
| Methods inherited from class org.semanticweb.HermiT.model.dataranges.DatatypeRestriction |
|---|
addOneOf, getArity, getDatatype, getDatatypeURI, getOneOf, isBottom, isNegated, negate, notOneOf, setNotOneOf, setOneOf, supports, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.math.BigInteger minLength
protected java.math.BigInteger maxLength
protected java.lang.String pattern
protected dk.brics.automaton.Automaton patternMatcher
protected boolean patternMatcherContainsAllFacets
protected boolean facetsChanged
| Constructor Detail |
|---|
public DatatypeRestrictionAnyURI(DatatypeRestriction.DT datatype)
| Method Detail |
|---|
public CanonicalDataRange getNewInstance()
public boolean isFinite()
CanonicalDataRange
protected void compileAllFacetsIntoPattern()
public void addFacet(DatatypeRestriction.Facets facet,
java.lang.String value)
DataRange
facet - A facet.value - A String representation of the facet value.public boolean facetsAccept(DataConstant constant)
CanonicalDataRange
facetsAccept in interface CanonicalDataRangefacetsAccept in class DatatypeRestrictionpublic void conjoinFacetsFrom(DataRange range)
CanonicalDataRange
range - a data range that is of the same concrete implementation as
this.public boolean accepts(DataConstant constant)
CanonicalDataRange
constant - A String representation of a constant for this data range.
public boolean hasMinCardinality(java.math.BigInteger n)
CanonicalDataRange
public java.math.BigInteger getEnumerationSize()
CanonicalDataRange
public DataConstant getSmallestAssignment()
CanonicalDataRange
protected java.lang.String printExtraInfo(Namespaces namespaces)
DatatypeRestriction
printExtraInfo in class DatatypeRestrictionpublic dk.brics.automaton.Automaton getPatternMatcher()
public java.lang.String getPattern()
public boolean datatypeAccepts(DataConstant constant)
CanonicalDataRange
constant - a constant
public boolean canHandleAll(java.util.Set<DatatypeRestriction.DT> datatypes)
CanonicalDataRange
datatypes - a set of datatypes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||