| 
|||||||||
| 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
              |
              +--com.hp.hpl.mesa.rdf.jena.common.EnhAlt
A base class for supporting enhanced Alt'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 Alt 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 Alt funcationality and some basic housekeeping functions to support the encapsulation.
| Constructor Summary | |
EnhAlt(Model m)
 | 
|
EnhAlt(java.lang.String uri,
       Model m)
 | 
|
| 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.  | 
 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.EnhContainer | 
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.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.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 | 
public EnhAlt(java.lang.String uri,
              Model m)
       throws RDFException
public EnhAlt(Model m)
       throws RDFException
| Method Detail | 
public RDFNode getDefault()
                   throws RDFException
AltgetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public Resource getDefaultResource()
                            throws RDFException
AltgetDefaultResource in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public Literal getDefaultLiteral()
                          throws RDFException
AltgetDefaultLiteral in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public boolean getDefaultBoolean()
                          throws RDFException
AltgetDefaultBoolean in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public byte getDefaultByte()
                    throws RDFException
AltgetDefaultByte in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public short getDefaultShort()
                      throws RDFException
AltgetDefaultShort in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public int getDefaultInt()
                  throws RDFException
AltgetDefaultInt in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public long getDefaultLong()
                    throws RDFException
AltgetDefaultLong in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public char getDefaultChar()
                    throws RDFException
AltgetDefaultChar in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public float getDefaultFloat()
                      throws RDFException
AltgetDefaultFloat in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public double getDefaultDouble()
                        throws RDFException
AltgetDefaultDouble in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public java.lang.String getDefaultString()
                                  throws RDFException
AltgetDefaultString in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public java.lang.String getDefaultLanguage()
                                    throws RDFException
AltgetDefaultLanguage in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public Resource getDefaultResource(ResourceF f)
                            throws RDFException
AltThe factory class f is used to create the object which is returned.
getDefaultResource in interface Altcom.hp.hpl.mesa.rdf.jena.model.Altf - A factory class which will be used to create the
 object returned.RDFException - Generic RDF Exception
public java.lang.Object getDefaultObject(ObjectF f)
                                  throws RDFException
AltThe object returned is created by calling the
 createObject method of the factory object f.
 
getDefaultObject in interface Altcom.hp.hpl.mesa.rdf.jena.model.Altf - A factory object used to create the object returned.RDFException - Generic RDF Exception
public Alt getDefaultAlt()
                  throws RDFException
AltgetDefaultAlt in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public Bag getDefaultBag()
                  throws RDFException
AltgetDefaultBag in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public Seq getDefaultSeq()
                  throws RDFException
AltgetDefaultSeq in interface Altcom.hp.hpl.mesa.rdf.jena.model.AltRDFException - Generic RDF Exception
public Alt setDefault(RDFNode o)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.RDFException - Generic RDF exception
public Alt setDefault(boolean o)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.RDFException - Generic RDF exception
public Alt setDefault(long o)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.RDFException - Generic RDF exception
public Alt setDefault(char o)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.RDFException - Generic RDF exception
public Alt setDefault(float o)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.RDFException - Generic RDF exception
public Alt setDefault(double o)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.RDFException - Generic RDF exception
public Alt setDefault(java.lang.String o)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.RDFException - Generic RDF exception
public Alt setDefault(java.lang.String o,
                      java.lang.String l)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.RDFException - Generic RDF exception
public Alt setDefault(java.lang.Object o)
               throws RDFException
AltsetDefault in interface Altcom.hp.hpl.mesa.rdf.jena.model.Alto - The value to be set.l - The language of the value to be setRDFException - Generic RDF exception
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||