Beispiel #1
0
 public Profile cast(final OWLObject object, final boolean strictConversion) {
   if (canCast(object, strictConversion)) return new ExtendedProfile((OWLIndividual) object);
   throw CastingException.create(object, ExtendedProfile.class);
 }
Beispiel #2
0
    public OwnerEntity cast(final OWLObject object, final boolean strictConversion) {
      if (canCast(object, strictConversion)) return new OwnerEntity((OWLIndividual) object);

      throw CastingException.create(object, OwnerEntity.class);
    }