コード例 #1
0
ファイル: OWLSExtensions.java プロジェクト: adelfi43/visko
 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
ファイル: OWLSExtensions.java プロジェクト: adelfi43/visko
    public OwnerEntity cast(final OWLObject object, final boolean strictConversion) {
      if (canCast(object, strictConversion)) return new OwnerEntity((OWLIndividual) object);

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