com.hp.hpl.jena.ontology.daml
Interface IntLiteralAccessor

All Superinterfaces:
LiteralAccessor, PropertyAccessor

public interface IntLiteralAccessor
extends LiteralAccessor

Encapsulates the standard methods of modifying a property on a DAML object, where the value of the property is an RDF literal (as opposed to another DAML value, see PropertyAccessor, and the literal is known to encapsulate an integer value.

Version:
CVS info: $Id: IntLiteralAccessor.java,v 1.5 2004/12/06 13:50:18 andy_seaborne Exp $
Author:
Ian Dickinson, HP Labs (email)

Method Summary
 void addInt(int value)
          Add a value to the encapsulated property.
 int getInt()
          Answer the integer value of the encapsulated property.
 boolean hasIntValue(int value)
          Answer true if the encapsulated property has the given value as one of its values.
 void removeInt(int value)
          Remove an integer value from the encapsulated property.
 
Methods inherited from interface com.hp.hpl.jena.ontology.daml.LiteralAccessor
addValue, getValue, hasValue, removeValue
 
Methods inherited from interface com.hp.hpl.jena.ontology.daml.PropertyAccessor
add, count, get, getAll, getDAMLValue, getList, getProperty, hasValue, remove
 

Method Detail

getInt

int getInt()

Answer the integer value of the encapsulated property.

Returns:
A value for the encapsulated property in the model, as an integer.

addInt

void addInt(int value)

Add a value to the encapsulated property.

Parameters:
value - The value to be added, as an int.

removeInt

void removeInt(int value)

Remove an integer value from the encapsulated property.

Parameters:
value - The value to be removed, as an int.

hasIntValue

boolean hasIntValue(int value)

Answer true if the encapsulated property has the given value as one of its values.

Parameters:
value - An int value to test for
Returns:
True if the RDF model contains a statement giving a value for the encapsulated property matching the given value.


Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP