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

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
        |
        +--com.hp.hpl.mesa.rdf.jena.common.ContainerImpl
              |
              +--com.hp.hpl.mesa.rdf.jena.common.AltImpl
All Implemented Interfaces:
Alt, Container, com.hp.hpl.mesa.rdf.jena.common.ContainerI, RDFNode, Resource, ResourceI

public class AltImpl
extends ContainerImpl
implements Alt

An implementation of Alt.

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

Constructor Summary
AltImpl(Model model)
          Creates new AltMem
AltImpl(Resource r, Model m)
           
AltImpl(java.lang.String uri, Model model)
           
 
Method Summary
 RDFNode getDefault()
          Return the default value for this resource.
 Alt getDefaultAlt()
          Return the default value for this resource.
 Bag getDefaultBag()
          Return the default value for this resource.
 boolean getDefaultBoolean()
          Return the default value for this resource.
 byte getDefaultByte()
          Return the default value for this resource.
 char getDefaultChar()
          Return the default value for this resource.
 double getDefaultDouble()
          Return the default value for this resource.
 float getDefaultFloat()
          Return the default value for this resource.
 int getDefaultInt()
          Return the default value for this resource.
 java.lang.String getDefaultLanguage()
          Return the language of the default value for this resource.
 Literal getDefaultLiteral()
          Return the default value for this resource.
 long getDefaultLong()
          Return the default value for this resource.
 java.lang.Object getDefaultObject(ObjectF f)
          Return the default value for this resource.
 Resource getDefaultResource()
          Return the default value for this resource.
 Resource getDefaultResource(ResourceF f)
          Return the default value for this resource.
 Seq getDefaultSeq()
          Return the default value for this resource.
 short getDefaultShort()
          Return the default value for this resource.
 java.lang.String getDefaultString()
          Return the default value for this resource.
 Resource port(Model m)
          For internal use only
 Alt setDefault(boolean o)
          Set the default value of this container.
 Alt setDefault(char o)
          Set the default value of this container.
 Alt setDefault(double o)
          Set the default value of this container.
 Alt setDefault(float o)
          Set the default value of this container.
 Alt setDefault(long o)
          Set the default value of this container.
 Alt setDefault(java.lang.Object o)
          Set the default value of this container.
 Alt setDefault(RDFNode o)
          Set the default value of this container.
 Alt setDefault(java.lang.String o)
          Set the default value of this container.
 Alt setDefault(java.lang.String o, java.lang.String l)
          Set the default value of this container.
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.ContainerImpl
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, iterator, remove, remove, size
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
abort, 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, isAnon, listProperties, listProperties, 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.Alt
remove
 
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, iterator, 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

AltImpl

public AltImpl(Model model)
        throws RDFException
Creates new AltMem

AltImpl

public AltImpl(java.lang.String uri,
               Model model)
        throws RDFException

AltImpl

public AltImpl(Resource r,
               Model m)
        throws RDFException
Method Detail

getDefault

public RDFNode getDefault()
                   throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource.
Throws:
RDFException - Generic RDF Exception

getDefaultResource

public Resource getDefaultResource()
                            throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultResource in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultLiteral

public Literal getDefaultLiteral()
                          throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultLiteral in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultBoolean

public boolean getDefaultBoolean()
                          throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultBoolean in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultByte

public byte getDefaultByte()
                    throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultByte in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultShort

public short getDefaultShort()
                      throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultShort in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultInt

public int getDefaultInt()
                  throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultInt in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultLong

public long getDefaultLong()
                    throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultLong in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultChar

public char getDefaultChar()
                    throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultChar in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultFloat

public float getDefaultFloat()
                      throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultFloat in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultDouble

public double getDefaultDouble()
                        throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultDouble in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultString

public java.lang.String getDefaultString()
                                  throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultString in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultLanguage

public java.lang.String getDefaultLanguage()
                                    throws RDFException
Description copied from interface: Alt
Return the language of the default value for this resource.
Specified by:
getDefaultLanguage in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the language of the default value for this resource
Throws:
RDFException - Generic RDF Exception

getDefaultResource

public Resource getDefaultResource(ResourceF f)
                            throws RDFException
Description copied from interface: Alt
Return the default value for this resource.

The factory class f is used to create the object which is returned.

Specified by:
getDefaultResource in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
f - A factory class which will be used to create the object returned.
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultObject

public java.lang.Object getDefaultObject(ObjectF f)
                                  throws RDFException
Description copied from interface: Alt
Return the default value for this resource.

The object returned is created by calling the createObject method of the factory object f.

Specified by:
getDefaultObject in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
f - A factory object used to create the object returned.
Returns:
the default value for this resource as an object created by the factory object f.
Throws:
RDFException - Generic RDF Exception

getDefaultAlt

public Alt getDefaultAlt()
                  throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultAlt in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultBag

public Bag getDefaultBag()
                  throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultBag in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

getDefaultSeq

public Seq getDefaultSeq()
                  throws RDFException
Description copied from interface: Alt
Return the default value for this resource.
Specified by:
getDefaultSeq in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Returns:
the default value for this resource interpreted as the return type.
Throws:
RDFException - Generic RDF Exception

setDefault

public Alt setDefault(RDFNode o)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

setDefault

public Alt setDefault(boolean o)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

setDefault

public Alt setDefault(long o)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

setDefault

public Alt setDefault(char o)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

setDefault

public Alt setDefault(float o)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

setDefault

public Alt setDefault(double o)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

setDefault

public Alt setDefault(java.lang.String o)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

setDefault

public Alt setDefault(java.lang.String o,
                      java.lang.String l)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

setDefault

public Alt setDefault(java.lang.Object o)
               throws RDFException
Description copied from interface: Alt
Set the default value of this container.
Specified by:
setDefault in interface Alt
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Alt
Parameters:
o - The value to be set.
l - The language of the value to be set
Returns:
This object to permit cascading calls.
Throws:
RDFException - Generic RDF exception

port

public Resource port(Model m)
              throws RDFException
Description copied from interface: ResourceI
For internal use only
Overrides:
port in class ResourceImpl


Copyright 2001 Hewlett-Packard. All Rights Reserved.