| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.EnhResource
        |
        +--com.hp.hpl.mesa.rdf.jena.common.EnhContainer
A base class for supporting enhanced containers. 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 container 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 Container funcationality and some basic housekeeping functions to support the encapsulation.
| Method Summary | |
 Container | 
add(boolean o)
Add a new value to a container.  | 
 Container | 
add(char o)
Add a new value to a container.  | 
 Container | 
add(double o)
Add a new value to a container.  | 
 Container | 
add(float o)
Add a new value to a container.  | 
 Container | 
add(long o)
Add a new value to a container.  | 
 Container | 
add(java.lang.Object o)
Add a new value to a container.  | 
 Container | 
add(RDFNode o)
Add a new value to a container.  | 
 Container | 
add(java.lang.String o)
Add a new value to a container.  | 
 Container | 
add(java.lang.String o,
    java.lang.String l)
Add a new value to a container.  | 
 boolean | 
contains(boolean o)
Determine whether the container contains a value  | 
 boolean | 
contains(char o)
Determine whether the container contains a value  | 
 boolean | 
contains(double o)
Determine whether the container contains a value  | 
 boolean | 
contains(float o)
Determine whether the container contains a value  | 
 boolean | 
contains(long o)
Determine whether the container contains a value  | 
 boolean | 
contains(java.lang.Object o)
Determine whether the container contains a value  | 
 boolean | 
contains(RDFNode o)
Determine whether the container contains a value  | 
 boolean | 
contains(java.lang.String o)
Determine whether the container contains a value  | 
 boolean | 
contains(java.lang.String o,
         java.lang.String l)
Determine whether the container contains a value  | 
 NodeIterator | 
iterator()
Return an iterator over the values.  | 
 Container | 
remove(int index,
       RDFNode object)
Remove the given value at the given index.  | 
 Container | 
remove(Statement s)
Remove a value from the container.  | 
 int | 
size()
return the number values in the container.  | 
| 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.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 | 
| Method Detail | 
public Container add(RDFNode o)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.RDFException - Generic RDF expection
public Container add(boolean o)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.RDFException - Generic RDF expection
public Container add(long o)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.RDFException - Generic RDF expection
public Container add(char o)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.RDFException - Generic RDF expection
public Container add(float o)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.RDFException - Generic RDF expection
public Container add(double o)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.RDFException - Generic RDF expection
public Container add(java.lang.String o)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.RDFException - Generic RDF expection
public Container add(java.lang.String o,
                     java.lang.String l)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.l - The language of the string to be addedRDFException - Generic RDF expection
public Container add(java.lang.Object o)
              throws RDFException
ContainerThe size of the container is extended by 1 and the new value is added as the last element of the container.
add in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - The value to be added.RDFException - Generic RDF expection
public boolean contains(RDFNode o)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forRDFException - Generic RDF exception
public boolean contains(boolean o)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forRDFException - Generic RDF exception
public boolean contains(long o)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forRDFException - Generic RDF exception
public boolean contains(char o)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forRDFException - Generic RDF exception
public boolean contains(float o)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forRDFException - Generic RDF exception
public boolean contains(double o)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forRDFException - Generic RDF exception
public boolean contains(java.lang.String o)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forRDFException - Generic RDF exception
public boolean contains(java.lang.String o,
                        java.lang.String l)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forl - the language of the string testedRDFException - Generic RDF exception
public boolean contains(java.lang.Object o)
                 throws RDFException
Containercontains in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containero - the value being tested forRDFException - Generic RDF exception
public NodeIterator iterator()
                      throws RDFException
ContainerNote 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.
iterator in interface Containercom.hp.hpl.mesa.rdf.jena.model.ContainerRDFException - Generic RDF exception.
public int size()
         throws RDFException
Containersize in interface Containercom.hp.hpl.mesa.rdf.jena.model.ContainerRDFException - Generic RDF exception
public Container remove(Statement s)
                 throws RDFException
ContainerThe 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.
remove in interface Containercom.hp.hpl.mesa.rdf.jena.model.Containers - The statement to be removed from the model.RDFException - Generic RDF Exception
public Container remove(int index,
                        RDFNode object)
                 throws RDFException
com.hp.hpl.mesa.rdf.jena.common.ContainerIremove in interface com.hp.hpl.mesa.rdf.jena.common.ContainerIcom.hp.hpl.mesa.rdf.jena.common.ContainerIindex - The index at which the value should be removed.object - The object at that index to be removedRDFException - Generic RDF exception
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||