- All Implemented Interfaces:
FrontsNode
,Container
,RDFNode
,Resource
-
Field Summary
Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
factory, rdfNodeFactory
-
Constructor Summary
ConstructorsConstructorDescriptionContainerImpl
(String uri, ModelCom model) ContainerImpl
(Node n, EnhGraph g) ContainerImpl
(ModelCom model) Creates new ContainerImplContainerImpl
(Resource r, ModelCom model) -
Method Summary
Modifier and TypeMethodDescriptionadd
(boolean o) Add a new value to a container.add
(char o) Add a new value to a container.add
(double o) Add a new value to a container.add
(float o) Add a new value to a container.add
(long o) Add a new value to a container.Add a new value to a container.Add a new value to a container.Add a new value to a container.Add a new value to a container.boolean
int
boolean
contains
(boolean o) Determine whether the container contains a valueboolean
contains
(char o) Determine whether the container contains a valueboolean
contains
(double o) Determine whether the container contains a valueboolean
contains
(float o) Determine whether the container contains a valueboolean
contains
(long o) Determine whether the container contains a valueboolean
Determine whether the container contains a valueboolean
Determine whether the container contains a valueboolean
Determine whether the container contains a valueboolean
Determine whether the container contains a valueboolean
isAlt()
Verify that the container is an Alt.boolean
isBag()
Verify that the container is a Bag.boolean
isSeq()
Verify that the container is a Seq.iterator()
Return an iterator over the values.Answer an iterator over the members of this container.Remove a value from the container.int
size()
return the number values in the container.Methods inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, 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, visitWith
Methods inherited from class org.apache.jena.enhanced.EnhNode
as, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAs
Methods inherited from class org.apache.jena.enhanced.Polymorphic
addView, supports
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
-
Constructor Details
-
ContainerImpl
Creates new ContainerImpl -
ContainerImpl
-
ContainerImpl
-
ContainerImpl
-
-
Method Details
-
isAlt
public boolean isAlt()Description copied from interface:Container
Verify that the container is an Alt. This method will return true if the object is in a model and that model contains the triple < this, RDF.type, RDF.Alt > otherwise returns false. -
isBag
public boolean isBag()Description copied from interface:Container
Verify that the container is a Bag. This method will return true if the object is in a model and that model contains the triple < this, RDF.type, RDF.Bag > otherwise returns false. -
isSeq
public boolean isSeq()Description copied from interface:Container
Verify that the container is a Seq. This method will return true if the object is in a model and that model contains the triple < this, RDF.type, RDF.Seq > otherwise returns false. -
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
add
Description copied from interface:Container
Add a new value to a container.The size of the container is extended by 1 and the new value is added as the last element of the container.
-
contains
Description copied from interface:Container
Determine whether the container contains a value -
contains
public boolean contains(boolean o) Description copied from interface:Container
Determine whether the container contains a value -
contains
public boolean contains(long o) Description copied from interface:Container
Determine whether the container contains a value -
contains
public boolean contains(char o) Description copied from interface:Container
Determine whether the container contains a value -
contains
public boolean contains(float o) Description copied from interface:Container
Determine whether the container contains a value -
contains
public boolean contains(double o) Description copied from interface:Container
Determine whether the container contains a value -
contains
Description copied from interface:Container
Determine whether the container contains a value -
contains
Description copied from interface:Container
Determine whether the container contains a value -
contains
Description copied from interface:Container
Determine whether the container contains a value -
iterator
Description copied from interface:Container
Return an iterator over the values.Note the iterator 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. -
size
public int size()Description copied from interface:Container
return the number values in the container. -
remove
Description copied from interface:Container
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 depends on the type of container. -
remove
-
listContainerMembers
Answer an iterator over the members of this container.- Parameters:
f
- the factory for constructing the final iterator- Returns:
- the member iterator
-
containerIndexOf
-
containerContains
-