- All Implemented Interfaces:
FrontsNode
,Container
,RDFNode
,Resource
,Seq
-
Field Summary
FieldsFields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
rdfNodeFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(int index, boolean o) Insert a new member into the sequence at the specified position.add
(int index, char o) Insert a new member into the sequence at the specified position.add
(int index, double o) Insert a new member into the sequence at the specified position.add
(int index, float o) Insert a new member into the sequence at the specified position.add
(int index, long o) Insert a new member into the sequence at the specified position.Insert a new member into the sequence at the specified position.Insert a new member into the sequence at the specified position.Insert a new member into the sequence at the specified position.Insert a new member into the sequence at the specified position.getAlt
(int index) Get the member at a given index.getBag
(int index) Get the member at a given index.boolean
getBoolean
(int index) Get the member at a given index.byte
getByte
(int index) Get the member at a given index.char
getChar
(int index) Get the member at a given index.double
getDouble
(int index) Get the member at a given index.float
getFloat
(int index) Get the member at a given index.int
getInt
(int index) Get the member at a given index.getLanguage
(int index) Get the language of the member at a given index.getLiteral
(int index) Get the member at a given index.long
getLong
(int index) Get the member at a given index.getObject
(int index) Get the member at a given index.getResource
(int index) Get the member at a given index.getResource
(int index, ResourceF f) Deprecated.getSeq
(int index) Get the member at a given index.short
getShort
(int index) Get the member at a given index.getString
(int index) Get the member at a given index.int
indexOf
(boolean o) Return the index of a given member of the sequence.int
indexOf
(char o) Return the index of a given member of the sequence.int
indexOf
(double o) Return the index of a given member of the sequence.int
indexOf
(float o) Return the index of a given member of the sequence.int
indexOf
(long o) Return the index of a given member of the sequence.int
Return the index of a given member of the sequence.int
Return the index of a given member of the sequence.int
Return the index of a given member of the sequence.int
Return the index of a given member of the sequence.iterator()
Return an iterator over the values.remove
(int index) Remove the member at the specified index.Remove a value from the container.set
(int index, boolean o) Set the value at a given index in the sequence.set
(int index, char o) Set the value at a given index in the sequence.set
(int index, double o) Set the value at a given index in the sequence.set
(int index, float o) Set the value at a given index in the sequence.set
(int index, long o) Set the value at a given index in the sequence.Set the value at a given index in the sequence.Set the value at a given index in the sequence.Set the value at a given index in the sequence.Set the value at a given index in the sequence.Methods inherited from class org.apache.jena.rdf.model.impl.ContainerImpl
add, add, add, add, add, add, add, add, add, containerContains, containerIndexOf, contains, contains, contains, contains, contains, contains, contains, contains, contains, isAlt, isBag, isSeq, listContainerMembers, size
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.rdf.model.Container
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, isAlt, isBag, isSeq, 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
-
Field Details
-
factory
-
-
Constructor Details
-
SeqImpl
Creates new SeqMem -
SeqImpl
-
SeqImpl
-
SeqImpl
-
-
Method Details
-
getResource
Description copied from interface:Seq
Get the member at a given index.- Specified by:
getResource
in interfaceSeq
- Parameters:
index
- The index of the required member. .- Returns:
- The member at the given index.
-
getLiteral
Description copied from interface:Seq
Get the member at a given index.- Specified by:
getLiteral
in interfaceSeq
- Parameters:
index
- The index of the required member. .- Returns:
- The member at the given index.
-
getObject
Description copied from interface:Seq
Get the member at a given index. -
getBoolean
public boolean getBoolean(int index) Description copied from interface:Seq
Get the member at a given index.- Specified by:
getBoolean
in interfaceSeq
- Parameters:
index
- The index of the required member. .- Returns:
- The member at the given index.
-
getByte
public byte getByte(int index) Description copied from interface:Seq
Get the member at a given index. -
getShort
public short getShort(int index) Description copied from interface:Seq
Get the member at a given index. -
getInt
public int getInt(int index) Description copied from interface:Seq
Get the member at a given index. -
getLong
public long getLong(int index) Description copied from interface:Seq
Get the member at a given index. -
getChar
public char getChar(int index) Description copied from interface:Seq
Get the member at a given index. -
getFloat
public float getFloat(int index) Description copied from interface:Seq
Get the member at a given index. -
getDouble
public double getDouble(int index) Description copied from interface:Seq
Get the member at a given index. -
getString
Description copied from interface:Seq
Get the member at a given index. -
getLanguage
Description copied from interface:Seq
Get the language of the member at a given index.- Specified by:
getLanguage
in interfaceSeq
- Parameters:
index
- The index of the required member. .- Returns:
- The member at the given index.
-
getResource
Deprecated.Description copied from interface:Seq
Get the member at a given index.The supplied factory object is used to create the returned object.
- Specified by:
getResource
in interfaceSeq
- Parameters:
index
- The index of the required member.f
- The factory object used to create the returned object. .- Returns:
- The member at the given index.
-
getBag
Description copied from interface:Seq
Get the member at a given index. -
getAlt
Description copied from interface:Seq
Get the member at a given index. -
getSeq
Description copied from interface:Seq
Get the member at a given index. -
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then an exception is raised.
-
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then a Jena exception is raised.
-
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then a Jena exception is raised.
-
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then a Jena exception is raised.
-
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then a Jena exception is raised.
-
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then a Jena exception is raised.
-
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then a Jena exception is raised.
-
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then a Jena exception is raised.
-
set
Description copied from interface:Seq
Set the value at a given index in the sequence.If the index is not in the range 1 to the size of the sequence, then a Jena exception is raised.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
add
Description copied from interface:Seq
Insert a new member into the sequence at the specified position.The existing member at that position, and all others with higher indexes, have their index increased by one.
-
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.- Specified by:
iterator
in interfaceContainer
- Overrides:
iterator
in classContainerImpl
- Returns:
- Return an iterator over the values.
-
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.- Specified by:
remove
in interfaceContainer
- Overrides:
remove
in classContainerImpl
- Parameters:
s
- The statement to be removed from the model.- Returns:
- this container to enable cascading calls.
-
remove
Description copied from interface:Seq
Remove the member at the specified index.All other members with a higher index will have their index reduced by one.
-
remove
- Overrides:
remove
in classContainerImpl
-
indexOf
Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-
indexOf
public int indexOf(boolean o) Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-
indexOf
public int indexOf(long o) Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-
indexOf
public int indexOf(char o) Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-
indexOf
public int indexOf(float o) Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-
indexOf
public int indexOf(double o) Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-
indexOf
Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-
indexOf
Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-
indexOf
Description copied from interface:Seq
Return the index of a given member of the sequence.If more the same value appears more than once in the sequence, it is undefined which of the indexes will be returned.
If the member is not found in this sequence, a value of 0 is returned.
-