Java 类org.semanticweb.owlapi.model.EntityType 实例源码

项目:binaryowl    文件:OWLEntitySerializer.java   
@SuppressWarnings("unchecked")
@Override
protected E readObject(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException {
    if(entityType == EntityType.CLASS) {
        return (E) inputStream.readClassIRI();
    }
    else if(entityType == EntityType.OBJECT_PROPERTY) {
        return (E) inputStream.readObjectPropertyIRI();
    }
    else if(entityType == EntityType.ANNOTATION_PROPERTY) {
        return (E) inputStream.readAnnotationPropertyIRI();
    }
    else if(entityType == EntityType.DATA_PROPERTY) {
        return (E) inputStream.readDataPropertyIRI();
    }
    else if(entityType == EntityType.DATATYPE) {
        return (E) inputStream.readDatatypeIRI();
    }
    else if(entityType == EntityType.NAMED_INDIVIDUAL) {
        return (E) inputStream.readIndividualIRI();
    }
    IRI iri = inputStream.readIRI();
    return inputStream.getDataFactory().getOWLEntity(entityType, iri);
}
项目:owlapi-gwt    文件:OWLDataPropertyImpl.java   
@Override
public EntityType<?> getEntityType() {
    return EntityType.DATA_PROPERTY;
}
项目:owlapi-gwt    文件:OWLDataPropertyImpl.java   
@Override
public boolean isType(EntityType<?> entityType) {
    return getEntityType().equals(entityType);
}
项目:owlapi-gwt    文件:OWLDatatypeImpl.java   
@Override
public EntityType<?> getEntityType() {
    return EntityType.DATATYPE;
}
项目:owlapi-gwt    文件:OWLDatatypeImpl.java   
@Override
public boolean isType(EntityType<?> entityType) {
    return getEntityType().equals(entityType);
}
项目:owlapi-gwt    文件:OWLClassImpl.java   
@Override
public EntityType<?> getEntityType() {
    return EntityType.CLASS;
}
项目:owlapi-gwt    文件:OWLClassImpl.java   
@Override
public boolean isType(EntityType<?> entityType) {
    return getEntityType().equals(entityType);
}
项目:binaryowl    文件:OWLEntitySerializer.java   
public OWLEntitySerializer(EntityType<E> entityType) {
    this.entityType = entityType;
}