@Override public OWLDatatype getOWLDatatype(IRI iri) { return new OWLDatatypeImpl(iri); }
/** * Gets an entity that has the same IRI as this entity but is of the specified type. * @param entityType The type of the entity to obtain. This entity is not affected in any way. * @return An entity that has the same IRI as this entity and is of the specified type */ public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType) { return getOWLDataFactory().getOWLEntity(entityType, getIRI()); }
/** * Tests to see if this entity is of the specified type * @param entityType The entity type * @return <code>true</code> if this entity is of the specified type, otherwise <code>false</code>. */ public boolean isType(EntityType entityType) { return getEntityType().equals(entityType); }
public boolean equals(Object obj) { if (super.equals(obj)) { if (obj instanceof OWLDatatype) { return ((OWLDatatype) obj).getIRI().equals(getIRI()); } } return false; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof OWLDatatype) { return ((OWLDatatype) obj).getIRI().equals(getIRI()); } return false; }
@Override public OWLDatatype getOWLDatatype(IRI iri) { return new OWLDatatypeImpl(iri); }
public static void serialize(SerializationStreamWriter streamWriter, OWLDatatypeImpl instance) throws SerializationException { streamWriter.writeString(instance.getIRI().toString()); }
@Override public boolean isType(EntityType<?> entityType) { return getEntityType().equals(entityType); }
@Override public OWLDatatype getOWLDatatype(IRI iri) { return new OWLDatatypeImpl(iri); }
@Override public boolean equals(Object obj) { if (super.equals(obj) && obj instanceof OWLDatatype) { return ((OWLDatatype) obj).getIRI().equals(getIRI()); } return false; }
@Override public boolean isType(EntityType<?> entityType) { return getEntityType().equals(entityType); }
@Override public OWLDatatype getOWLDatatype(IRI iri) { return new OWLDatatypeImpl(iri); }
@Override public OWLDatatype getOWLDatatype(IRI iri) { return new OWLDatatypeImpl(iri); }
@Override public OWLDatatype getOWLDatatype(IRI iri) { return new OWLDatatypeImpl(iri); }
public OWLDatatype getOWLDatatype(IRI iri) { OWLDatatype dt = datatypesByURI.get(iri); if (dt == null) { dt = new OWLDatatypeImpl(this, iri); datatypesByURI.put(iri, dt); } return dt; }
@NonNull @Override public OWLDatatype getURIDatatype() { IRI iri = XSDVocabulary.ANY_URI.getIRI(); return new OWLDatatypeImpl(iri); }
@NonNull @Override public OWLDatatype getDateDatatype() { IRI iri = XSDVocabulary.DATE.getIRI(); return new OWLDatatypeImpl(iri); }
@NonNull @Override public OWLDatatype getBooleanDatatype() { IRI iri = XSDVocabulary.BOOLEAN.getIRI(); return new OWLDatatypeImpl(iri); }