1 18 19 package com.hp.hpl.jena.ontology.daml.impl; 22 23 24 import com.hp.hpl.jena.enhanced.*; 27 import com.hp.hpl.jena.graph.*; 28 import com.hp.hpl.jena.ontology.*; 29 import com.hp.hpl.jena.ontology.daml.*; 30 import com.hp.hpl.jena.vocabulary.DAML_OIL; 31 32 33 34 42 public class DAMLDatatypePropertyImpl 43 extends DAMLPropertyImpl 44 implements DAMLDatatypeProperty 45 { 46 49 50 53 58 public static Implementation factory = new Implementation() { 59 public EnhNode wrap( Node n, EnhGraph eg ) { 60 if (canWrap( n, eg )) { 61 return new DAMLDatatypePropertyImpl( n, eg ); 62 } 63 else { 64 throw new ConversionException( "Cannot convert node " + n.toString() + " to DAMLDatatypeProperty" ); 65 } 66 } 67 68 public boolean canWrap( Node n, EnhGraph g ) { 69 return hasType( n, g, DAML_OIL.DatatypeProperty ); 70 } 71 }; 72 73 74 77 78 79 82 90 public DAMLDatatypePropertyImpl( Node n, EnhGraph g ) { 91 super( n, g ); 92 } 93 94 95 98 99 100 101 102 103 106 107 108 109 110 114 115 } 116 117 118 147 148 | Popular Tags |