- All Superinterfaces:
Container
,FrontsNode
,RDFNode
,Resource
- All Known Implementing Classes:
AltImpl
An RDF Alternative container.
This interface defines methods for accessing RDF Alternative resources. These methods operate on the RDF statements contained in a model. The Alternative implementation may cache state from the underlying model, so objects should not be added to or removed from the Alternative by directly manipulating its properties, whilst the Alternative is being accessed through this interface.
When a member is deleted from an Alternative using this interface, or an iterator returned through this interface, all the other members with higher ordinals are renumbered using an implementation dependent algorithm.
This interface provides methods supporting typed literals. This means
that methods are provided which will translate a built in type, or an
object to an RDF Literal. This translation is done by invoking the
toString()
method of the object, or its built in equivalent.
The reverse translation is also supported. This is built in for built
in types. Factory objects, provided by the application, are used
for application objects.
This interface provides methods for supporting enhanced resources. An enhanced resource is a resource to which the application has added behaviour. RDF containers are examples of enhanced resources built in to this package. Enhanced resources are supported by encapsulating a resource created by an implementation in another class which adds the extra behaviour. Factory objects are used to construct such enhanced resources.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the default value for this resource.Return the default value for this resource.Return the default value for this resource.boolean
Return the default value for this resource.byte
Return the default value for this resource.char
Return the default value for this resource.double
Return the default value for this resource.float
Return the default value for this resource.int
Return the default value for this resource.Return the language of the default value for this resource.Return the default value for this resource.long
Return the default value for this resource.Return the default value for this resource.Return the default value for this resource.short
Return the default value for this resource.Return the default value for this resource.Remove a value from the container.setDefault
(boolean o) Set the default value of this container.setDefault
(char o) Set the default value of this container.setDefault
(double o) Set the default value of this container.setDefault
(float o) Set the default value of this container.setDefault
(long o) Set the default value of this container.setDefault
(Object o) Set the default value of this container.setDefault
(String o) Set the default value of this container.setDefault
(String o, String l) Set the default value of this container.Set the default value of this container.Methods inherited from interface org.apache.jena.rdf.model.Container
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, isAlt, isBag, isSeq, iterator, size
Methods inherited from interface org.apache.jena.graph.FrontsNode
asNode
Methods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWith
Methods inherited from interface org.apache.jena.rdf.model.Resource
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
-
Method Details
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
setDefault
Set the default value of this container.- Parameters:
o
- The value to be set.- Returns:
- This object to permit cascading calls.
-
getDefault
RDFNode getDefault()Return the default value for this resource.- Returns:
- the default value for this resource.
-
getDefaultResource
Resource getDefaultResource()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultLiteral
Literal getDefaultLiteral()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultBoolean
boolean getDefaultBoolean()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultByte
byte getDefaultByte()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultShort
short getDefaultShort()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultInt
int getDefaultInt()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultLong
long getDefaultLong()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultChar
char getDefaultChar()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultFloat
float getDefaultFloat()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultDouble
double getDefaultDouble()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultString
String getDefaultString()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultLanguage
String getDefaultLanguage()Return the language of the default value for this resource.- Returns:
- the language of the default value for this resource
-
getDefaultAlt
Alt getDefaultAlt()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultBag
Bag getDefaultBag()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
getDefaultSeq
Seq getDefaultSeq()Return the default value for this resource.- Returns:
- the default value for this resource interpreted as the return type.
-
remove
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 is implementation dependent.
-