static ConcreteNumericRDFDatatype createConcreteNumericTermType(IRI datatypeIRI, ConcreteNumericRDFDatatype parentDatatype, boolean appendToPromotedHierarchy) { return new ConcreteNumericRDFDatatypeImpl(datatypeIRI, parentDatatype.getAncestry(), parentDatatype.getPromotionSubstitutionHierarchy(), appendToPromotedHierarchy); }
@Override public ConcreteNumericRDFDatatype getCommonPropagatedOrSubstitutedType(ConcreteNumericRDFDatatype otherType){ if (equals(otherType)) return this; if (promotedHierarchy.contains(otherType)) return otherType; TypePropagationSubstitutionHierarchy otherHierarchy = otherType.getPromotionSubstitutionHierarchy(); if (otherHierarchy.contains(this)) return this; return promotedHierarchy.getClosestCommonType(otherHierarchy); }
xsdDoubleDatatype.getPromotionSubstitutionHierarchy(),true); registerDatatype(xsdFloatDatatype); xsdFloatDatatype.getPromotionSubstitutionHierarchy(), true); registerDatatype(owlRationalDatatype); xsdDecimalDatatype = createConcreteNumericTermType(XSD.DECIMAL, owlRationalDatatype, true);