com.hp.hpl.jena.graph.query
Class Domain

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended bycom.hp.hpl.jena.graph.query.Domain
All Implemented Interfaces:
java.util.Collection, IndexValues, java.util.List

public class Domain
extends java.util.AbstractList
implements IndexValues

A Domain is an answer to a Binding query. It satisfies the List interface so that casual users don't have to worry about its special features - for them, it is immutable (they only ever get to see Domains that have emerged from the query process).

Author:
kers

Constructor Summary
Domain(int size)
           
Domain(Node[] value)
          Initialise a Domain with a copy of a Node value array.
 
Method Summary
 Domain copy()
           
 boolean equals(java.lang.Object x)
           
 java.lang.Object get(int i)
          Answer the value at index.
 void setElement(int i, Node x)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

Domain

public Domain(Node[] value)
Initialise a Domain with a copy of a Node value array.


Domain

public Domain(int size)
Method Detail

size

public int size()
Specified by:
size in interface java.util.List

get

public java.lang.Object get(int i)
Description copied from interface: IndexValues
Answer the value at index.

Specified by:
get in interface IndexValues

setElement

public void setElement(int i,
                       Node x)

copy

public Domain copy()

equals

public boolean equals(java.lang.Object x)
Specified by:
equals in interface java.util.List

toString

public java.lang.String toString()


Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.