com.hp.hpl.mesa.rdf.jena.common
Class EnhSeq

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.EnhResource
        |
        +--com.hp.hpl.mesa.rdf.jena.common.EnhContainer
              |
              +--com.hp.hpl.mesa.rdf.jena.common.EnhSeq
All Implemented Interfaces:
Container, com.hp.hpl.mesa.rdf.jena.common.ContainerI, RDFNode, Resource, ResourceI, Seq

public class EnhSeq
extends EnhContainer
implements Seq

A base class for supporting enhanced Seq's. An enhanced resource is a resource with extended functionality, provided either by the application or by the implementation. This class is a base class with Seq functionality which can be extended by the application.

Enhanced resources are implemented using encapsulation. An enhanced resource contains an embedded resource which provides the basic functionality of the resource. The application code provides any extended behaviour. This method was chosen, rather than subclassing, so as not to constrain the applications need to create its own class hierarchy.

This class is intended to be subclassed by the application to provide the specific enhanced behaviour. It provides Seq funcationality and some basic housekeeping functions to support the encapsulation.

Version:
Release='$Name: $' Revision='$Revision: 1.1 $' Date='$Date: 2001/01/05 14:14:51 $'
Author:
bwm

Constructor Summary
EnhSeq(Model m)
           
EnhSeq(java.lang.String uri, Model m)
           
 
Method Summary
 Seq add(int index, boolean o)
          Insert a new member into the sequence at the specified position.
 Seq add(int index, char o)
          Insert a new member into the sequence at the specified position.
 Seq add(int index, double o)
          Insert a new member into the sequence at the specified position.
 Seq add(int index, float o)
          Insert a new member into the sequence at the specified position.
 Seq add(int index, long o)
          Insert a new member into the sequence at the specified position.
 Seq add(int index, java.lang.Object o)
          Insert a new member into the sequence at the specified position.
 Seq add(int index, RDFNode o)
          Insert a new member into the sequence at the specified position.
 Seq add(int index, java.lang.String o)
          Insert a new member into the sequence at the specified position.
 Seq add(int index, java.lang.String o, java.lang.String l)
          Insert a new member into the sequence at the specified position.
 Alt getAlt(int index)
          Get the member at a given index.
 Bag getBag(int index)
          Get the member at a given index.
 boolean getBoolean(int index)
          Get the member at a given index.
 byte getByte(int index)
          Get the member at a given index.
 char getChar(int index)
          Get the member at a given index.
 double getDouble(int index)
          Get the member at a given index.
 float getFloat(int index)
          Get the member at a given index.
 int getInt(int index)
          Get the member at a given index.
 java.lang.String getLanguage(int index)
          Get the language of the member at a given index.
 Literal getLiteral(int index)
          Get the member at a given.
 long getLong(int index)
          Get the member at a given index.
 RDFNode getObject(int index)
          Get the member at a given index.
 java.lang.Object getObject(int index, ObjectF f)
          Get the member at a given index
 Resource getResource(int index)
          Get the member at a given index.
 Resource getResource(int index, ResourceF f)
          Get the member at a given index.
 Seq getSeq(int index)
          Get the member at a given index.
 short getShort(int index)
          Get the member at a given index.
 java.lang.String getString(int index)
          Get the member at a given index.
 int indexOf(boolean o)
          Return the index of a given member of the sequence.
 int indexOf(char o)
          Return the index of a given member of the sequence.
 int indexOf(double o)
          Return the index of a given member of the sequence.
 int indexOf(float o)
          Return the index of a given member of the sequence.
 int indexOf(long o)
          Return the index of a given member of the sequence.
 int indexOf(java.lang.Object o)
          Return the index of a given member of the sequence.
 int indexOf(RDFNode o)
          Return the index of a given member of the sequence.
 int indexOf(java.lang.String o)
          Return the index of a given member of the sequence.
 int indexOf(java.lang.String o, java.lang.String l)
          Return the index of a given member of the sequence.
 NodeIterator iterator()
          Return an iterator over the values.
 Seq remove(int index)
          Remove the member at the specified index.
 Container remove(int index, RDFNode o)
          Remove the given value at the given index.
 Container remove(Statement s)
          Remove a value from the container.
 Seq set(int index, boolean o)
          Set the value at a given index in the sequence.
 Seq set(int index, char o)
          Set the value at a given index in the sequence.
 Seq set(int index, double o)
          Set the value at a given index in the sequence.
 Seq set(int index, float o)
          Set the value at a given index in the sequence.
 Seq set(int index, long o)
          Set the value at a given index in the sequence.
 Seq set(int index, java.lang.Object o)
          Set the value at a given index in the sequence.
 Seq set(int index, RDFNode o)
          Set the value at a given index in the sequence.
 Seq set(int index, java.lang.String o)
          Set the value at a given index in the sequence.
 Seq set(int index, java.lang.String o, java.lang.String l)
          Set the value at a given index in the sequence.
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.EnhContainer
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, size
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.EnhResource
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getEmbeddedResource, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hashCode, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, port, removeProperties, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Container
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, size
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Resource
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString
 

Constructor Detail

EnhSeq

public EnhSeq(java.lang.String uri,
              Model m)
       throws RDFException

EnhSeq

public EnhSeq(Model m)
       throws RDFException
Method Detail

getResource

public Resource getResource(int index)
                     throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getResource in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getLiteral

public Literal getLiteral(int index)
                   throws RDFException
Description copied from interface: Seq
Get the member at a given.
Specified by:
getLiteral in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getObject

public RDFNode getObject(int index)
                  throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getObject in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getBoolean

public boolean getBoolean(int index)
                   throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getBoolean in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getByte

public byte getByte(int index)
             throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getByte in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getShort

public short getShort(int index)
               throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getShort in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getInt

public int getInt(int index)
           throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getInt in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getLong

public long getLong(int index)
             throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getLong in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getChar

public char getChar(int index)
             throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getChar in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getFloat

public float getFloat(int index)
               throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getFloat in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getDouble

public double getDouble(int index)
                 throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getDouble in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getString

public java.lang.String getString(int index)
                           throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getString in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getLanguage

public java.lang.String getLanguage(int index)
                             throws RDFException
Description copied from interface: Seq
Get the language of the member at a given index.
Specified by:
getLanguage in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getObject

public java.lang.Object getObject(int index,
                                  ObjectF f)
                           throws RDFException
Description copied from interface: Seq
Get the member at a given index

The supplied factory object is used to created the object return.

Specified by:
getObject in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
f - A factory object used to create the returned object.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getResource

public Resource getResource(int index,
                            ResourceF f)
                     throws RDFException
Description copied from interface: Seq
Get the member at a given index.

The supplied factory object is used to create the returned object.

Specified by:
getResource in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
f - The factory object used to create the returned object.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getBag

public Bag getBag(int index)
           throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getBag in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getAlt

public Alt getAlt(int index)
           throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getAlt in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

getSeq

public Seq getSeq(int index)
           throws RDFException
Description copied from interface: Seq
Get the member at a given index.
Specified by:
getSeq in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the required member.
Returns:
The member at the given index.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               RDFNode o)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               boolean o)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               long o)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               float o)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               double o)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               char o)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               java.lang.String o)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               java.lang.String o,
               java.lang.String l)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
l - The language of the value set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

set

public Seq set(int index,
               java.lang.Object o)
        throws RDFException
Description copied from interface: Seq
Set the value at a given index in the sequence.

If the index is not in the range 1 to the size of the sequence, then an RDFException is raised.

Specified by:
set in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index whose member is to be set.
o - The value to be set.
Returns:
this object to enable cascading method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               RDFNode o)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               boolean o)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               long o)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               char o)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               float o)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               double o)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               java.lang.String o)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               java.lang.String o,
               java.lang.String l)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
l - the langauge of the value added
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

add

public Seq add(int index,
               java.lang.Object o)
        throws RDFException
Description copied from interface: Seq
Insert a new member into the sequence at the specified position.

The existing member at that position, and all others with higher indexes, have their index increased by one.

Specified by:
add in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the new member,
o - The member to be added.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

iterator

public NodeIterator iterator()
                      throws RDFException
Description copied from interface: Container
Return an iterator over the values.

Note the interator returned is not a standard java.util.iterator. It has a close method which SHOULD be called if the application has not completed the iteration, but no longer requires the iterator. This will enable the freeing of resources in, for example, implementations which store their models in a database.

Specified by:
iterator in interface Container
Overrides:
iterator in class EnhContainer
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Container
Returns:
Return an iterator over the values.
Throws:
RDFException - Generic RDF exception.

remove

public Container remove(Statement s)
                 throws RDFException
Description copied from interface: Container
Remove a value from the container.

The predicate of the statement s identifies the ordinal of the value to be removed. Once removed, the values in the container with a higher ordinal value are renumbered. The renumbering algorithm depends on the type of container.

Specified by:
remove in interface Container
Overrides:
remove in class EnhContainer
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Container
Parameters:
s - The statement to be removed from the model.
Returns:
this container to enable cascading calls.
Throws:
RDFException - Generic RDF Exception

remove

public Seq remove(int index)
           throws RDFException
Description copied from interface: Seq
Remove the member at the specified index.

All other members with a higher index will have their index reduced by one.

Specified by:
remove in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
index - The index of the member to be removed.
Returns:
this object to enable cascading of method calls.
Throws:
RDFException - Generic RDF exception.

remove

public Container remove(int index,
                        RDFNode o)
                 throws RDFException
Description copied from interface: com.hp.hpl.mesa.rdf.jena.common.ContainerI
Remove the given value at the given index.
Overrides:
remove in class EnhContainer
Following copied from interface: com.hp.hpl.mesa.rdf.jena.common.ContainerI
Parameters:
index - The index at which the value should be removed.
object - The object at that index to be removed
Returns:
this object
Throws:
RDFException - Generic RDF exception

indexOf

public int indexOf(RDFNode o)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.

indexOf

public int indexOf(boolean o)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.

indexOf

public int indexOf(long o)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.

indexOf

public int indexOf(char o)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.

indexOf

public int indexOf(float o)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.

indexOf

public int indexOf(double o)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.

indexOf

public int indexOf(java.lang.String o)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.

indexOf

public int indexOf(java.lang.String o,
                   java.lang.String l)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
l - the language of the member sought
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.

indexOf

public int indexOf(java.lang.Object o)
            throws RDFException
Description copied from interface: Seq
Return the index of a given member of the sequence.

If more the the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.

If the member is not found in this sequence, a value of 0 is returned.

Specified by:
indexOf in interface Seq
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Seq
Parameters:
o - The member sought.
Returns:
an index of the member in this sequence or 0 if the member is not found in this sequence.
Throws:
RDFException - Generic RDF exception.


Copyright © 2001 Hewlett-Packard. All Rights Reserved.