コード例 #1
0
 static CuisineCodeImpl getCuisineCode(Resource resource, Model model) throws JastorException {
   if (!model.contains(resource, RDF.type, CuisineCode.TYPE)) return null;
   return new CuisineCodeImpl(resource, model);
 }
コード例 #2
0
 static ClassificationImpl getClassification(Resource resource, Model model)
     throws JastorException {
   if (!model.contains(resource, RDF.type, Classification.TYPE)) return null;
   return new ClassificationImpl(resource, model);
 }
コード例 #3
0
 static ExtendedUserBehaviourImpl getExtendedUserBehaviour(Resource resource, Model model)
     throws JastorException {
   if (!model.contains(resource, RDF.type, ExtendedUserBehaviour.TYPE)) return null;
   return new ExtendedUserBehaviourImpl(resource, model);
 }
コード例 #4
0
 static AlcoholCodeImpl getAlcoholCode(Resource resource, Model model) throws JastorException {
   if (!model.contains(resource, RDF.type, AlcoholCode.TYPE)) return null;
   return new AlcoholCodeImpl(resource, model);
 }