public class NumberDBTermType extends DBTermTypeImpl
DBTermType.Category| Modifier | Constructor and Description |
|---|---|
protected |
NumberDBTermType(String name,
String castName,
TermTypeAncestry parentAncestry,
RDFDatatype rdfDatatype,
DBTermType.Category category) |
protected |
NumberDBTermType(String name,
TermTypeAncestry parentAncestry,
RDFDatatype rdfDatatype,
DBTermType.Category category) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqualitiesBetweenTwoDBAttributesStrict()
Returns true if the non-strict equality between two attributes of the same database
of this type is equivalent to a strict equality.
|
boolean |
areEqualitiesStrict()
NB: here we ignore the presence of + and 0s on the left (for the sake of simplicity)
TODO: stop ignoring this presence
|
Optional<Boolean> |
areEqualitiesStrict(DBTermType otherType)
Returns true if the non-strict equality between terms of these two types
are equivalent to a strict equality
|
String |
getCastName()
Default implementation, can be overridden
|
Optional<RDFDatatype> |
getNaturalRDFDatatype() |
boolean |
isNeedingIRISafeEncoding()
False by default as the vast majority of number formats are not sensible to IRI safe encoding.
|
getCategory, getName, isValidLexicalValueequals, getAncestry, getCommonDenominator, hashCode, isA, isAbstract, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAncestry, getCommonDenominator, isA, isAbstractprotected NumberDBTermType(String name, String castName, TermTypeAncestry parentAncestry, RDFDatatype rdfDatatype, DBTermType.Category category)
protected NumberDBTermType(String name, TermTypeAncestry parentAncestry, RDFDatatype rdfDatatype, DBTermType.Category category)
public Optional<RDFDatatype> getNaturalRDFDatatype()
public boolean isNeedingIRISafeEncoding()
public boolean areEqualitiesStrict()
public Optional<Boolean> areEqualitiesStrict(DBTermType otherType)
DBTermTypepublic boolean areEqualitiesBetweenTwoDBAttributesStrict()
DBTermTypepublic String getCastName()
DBTermTypeImplgetCastName in interface DBTermTypegetCastName in class DBTermTypeImplCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.