Пример #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);
 }
Пример #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);
    }