public interface Alt extends Container
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.
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
Resource |
getDefaultResource()
Return the default value for this resource.
|
Resource |
getDefaultResource(ResourceF f)
Deprecated.
|
Seq |
getDefaultSeq()
Return the default value for this resource.
|
short |
getDefaultShort()
Return the default value for this resource.
|
String |
getDefaultString()
Return the default value for this resource.
|
Container |
remove(Statement s)
Remove a value from the container.
|
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(Object o)
Set the default value of this container.
|
Alt |
setDefault(RDFNode o)
Set the default value of this container.
|
Alt |
setDefault(String o)
Set the default value of this container.
|
Alt |
setDefault(String o,
String l)
Set the default value of this container.
|
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, isAlt, isBag, isSeq, iterator, size
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isURIResource, visitWith
asNode
Alt setDefault(RDFNode o)
o
- The value to be set.Alt setDefault(boolean o)
o
- The value to be set.Alt setDefault(long o)
o
- The value to be set.Alt setDefault(char o)
o
- The value to be set.Alt setDefault(float o)
o
- The value to be set.Alt setDefault(double o)
o
- The value to be set.Alt setDefault(String o)
o
- The value to be set.Alt setDefault(String o, String l)
o
- The value to be set.Alt setDefault(Object o)
o
- The value to be set.RDFNode getDefault()
Resource getDefaultResource()
Literal getDefaultLiteral()
boolean getDefaultBoolean()
byte getDefaultByte()
short getDefaultShort()
int getDefaultInt()
long getDefaultLong()
char getDefaultChar()
float getDefaultFloat()
double getDefaultDouble()
String getDefaultString()
String getDefaultLanguage()
@Deprecated Resource getDefaultResource(ResourceF f)
The factory class f is used to create the object which is returned.
f
- A factory class which will be used to create the
object returned.Alt getDefaultAlt()
Bag getDefaultBag()
Seq getDefaultSeq()
Licenced under the Apache License, Version 2.0