1 18 19 package com.hp.hpl.jena.ontology.daml.impl; 22 23 24 27 import com.hp.hpl.jena.rdf.model.*; 28 import com.hp.hpl.jena.ontology.*; 29 import com.hp.hpl.jena.ontology.daml.*; 30 31 32 40 public class IntLiteralAccessorImpl 41 extends LiteralAccessorImpl 42 implements IntLiteralAccessor 43 { 44 47 48 51 52 55 56 59 65 public IntLiteralAccessorImpl( Property property, OntResource val ) { 66 super( property, val ); 67 } 68 69 70 71 74 79 public int getInt() { 80 return getValue().getInt(); 81 } 82 83 84 89 public void addInt( int value ) { 90 add( m_val.getModel().createTypedLiteral( value ) ); 91 } 92 93 94 99 public void removeInt( int value ) { 100 remove( m_val.getModel().createTypedLiteral( value ) ); 101 } 102 103 104 112 public boolean hasIntValue( int value ) { 113 return hasValue( m_val.getModel().createTypedLiteral( value ) ); 114 } 115 116 117 120 121 122 123 127 128 } 129 130 159 160 | Popular Tags |