@Override public String toString() { return toStringID(); }
@Override public boolean containsEntityInSignature(OWLEntity owlEntity) { return equals(owlEntity); }
@Override public int compareTo(@Nullable OWLObject o) { if (o == null) { throw new NullPointerException("o cannot be null in a compareTo call."); } int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } if (o instanceof OWLDatatype) { diff = getIRI().compareTo(((OWLDatatype) o).getIRI()); } return diff; }
public static OWLLiteralImplBoolean instantiate(SerializationStreamReader streamReader) throws SerializationException { return new OWLLiteralImplBoolean(streamReader.readBoolean(), new OWL2DatatypeImpl(OWL2Datatype.XSD_BOOLEAN)); }
@Override public int compareTo(OWLObject o) { if (!(o instanceof OWLDatatype)) { OWLObjectTypeIndexProvider provider = new OWLObjectTypeIndexProvider(); return provider.getTypeIndex(o); } OWLDatatype other = (OWLDatatype) o; return getIRI().compareTo(other.getIRI()); }
/** * Creates an instance of {@code OWLDatatypeImplForOWL2Datatype} for the specified * {@link OWL2Datatype}. * * @param owl2Datatype The datatype. Not {@code null}. * @throws NullPointerException if {@code owl2Datatype} is {@code null}. */ public OWL2DatatypeImpl(OWL2Datatype owl2Datatype) { this.owl2Datatype = checkNotNull(owl2Datatype, "owl2Datatype must not be null"); hashCode = initHashCode(); }
@Override public int compareTo(@Nullable OWLObject o) { if (o == null) { throw new NullPointerException("o cannot be null in a compareTo call."); } int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } if (o instanceof OWLDatatype) { diff = getIRI().compareTo(((OWLDatatype) o).getIRI()); } return diff; }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(OWL_THING, new OWLDataMaxCardinalityImpl(getProperty(), 1, new OWL2DatatypeImpl(RDFS_LITERAL)), NO_ANNOTATIONS); } }
@Override public int compareTo(OWLObject o) { if (!(o instanceof OWLDatatype)) { OWLObjectTypeIndexProvider provider = new OWLObjectTypeIndexProvider(); return provider.getTypeIndex(o); } OWLDatatype other = (OWLDatatype) o; return getIRI().compareTo(other.getIRI()); }
/** * Creates an instance of {@code OWLDatatypeImplForOWL2Datatype} for the specified * {@link OWL2Datatype}. * * @param owl2Datatype The datatype. Not {@code null}. * @throws NullPointerException if {@code owl2Datatype} is {@code null}. */ public OWL2DatatypeImpl(OWL2Datatype owl2Datatype) { this.owl2Datatype = checkNotNull(owl2Datatype, "owl2Datatype must not be null"); hashCode = initHashCode(); }
@Override public int compareTo(@Nullable OWLObject o) { if (o == null) { throw new NullPointerException("o cannot be null in a compareTo call."); } int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } if (o instanceof OWLDatatype) { diff = getIRI().compareTo(((OWLDatatype) o).getIRI()); } return diff; }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sub = new OWLDataSomeValuesFromImpl(getProperty(), new OWL2DatatypeImpl(RDFS_LITERAL)); return new OWLSubClassOfAxiomImpl(sub, getDomain(), NO_ANNOTATIONS); } }
@Override public String toString() { return toStringID(); }
@Override public boolean containsEntityInSignature(OWLEntity owlEntity) { return equals(owlEntity); }
/** * Creates an instance of {@code OWLDatatypeImplForOWL2Datatype} for the specified * {@link OWL2Datatype}. * * @param owl2Datatype The datatype. Not {@code null}. * @throws NullPointerException if {@code owl2Datatype} is {@code null}. */ public OWL2DatatypeImpl(OWL2Datatype owl2Datatype) { this.owl2Datatype = checkNotNull(owl2Datatype, "owl2Datatype must not be null"); hashCode = initHashCode(); }
@Override public int compareTo(@Nullable OWLObject o) { if (o == null) { throw new NullPointerException("o cannot be null in a compareTo call."); } int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } if (o instanceof OWLDatatype) { diff = getIRI().compareTo(((OWLDatatype) o).getIRI()); } return diff; }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sub = new OWLDataSomeValuesFromImpl(getProperty(), new OWL2DatatypeImpl(RDFS_LITERAL)); return new OWLSubClassOfAxiomImpl(sub, getDomain(), NO_ANNOTATIONS); } }
@Override public String toString() { return toStringID(); }
@Override public boolean containsEntityInSignature(OWLEntity owlEntity) { return equals(owlEntity); }
/** * Creates an instance of {@code OWLDatatypeImplForOWL2Datatype} for the specified * {@link OWL2Datatype}. * * @param owl2Datatype The datatype. Not {@code null}. * @throws NullPointerException if {@code owl2Datatype} is {@code null}. */ public OWL2DatatypeImpl(OWL2Datatype owl2Datatype) { this.owl2Datatype = checkNotNull(owl2Datatype, "owl2Datatype must not be null"); hashCode = initHashCode(); }