Class SeqImpl

    • Constructor Detail

      • SeqImpl

        public SeqImpl​(ModelCom model)
        Creates new SeqMem
      • SeqImpl

        public SeqImpl​(java.lang.String uri,
                       ModelCom model)
    • Method Detail

      • getResource

        public Resource getResource​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getResource in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getLiteral

        public Literal getLiteral​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getLiteral in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getObject

        public RDFNode getObject​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getObject in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getBoolean

        public boolean getBoolean​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getBoolean in interface Seq
        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.
        Specified by:
        getByte in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getShort

        public short getShort​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getShort in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getInt

        public int getInt​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getInt in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getLong

        public long getLong​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getLong in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getChar

        public char getChar​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getChar in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getFloat

        public float getFloat​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getFloat in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getDouble

        public double getDouble​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getDouble in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getString

        public java.lang.String getString​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getString in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getLanguage

        public java.lang.String getLanguage​(int index)
        Description copied from interface: Seq
        Get the language of the member at a given index.
        Specified by:
        getLanguage in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getResource

        @Deprecated
        public Resource getResource​(int index,
                                    ResourceF f)
        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 interface Seq
        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

        public Bag getBag​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getBag in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getAlt

        public Alt getAlt​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getAlt in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • getSeq

        public Seq getSeq​(int index)
        Description copied from interface: Seq
        Get the member at a given index.
        Specified by:
        getSeq in interface Seq
        Parameters:
        index - The index of the required member. .
        Returns:
        The member at the given index.
      • set

        public Seq set​(int index,
                       RDFNode o)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        Returns:
        this object to enable cascading method calls.
      • set

        public Seq set​(int index,
                       boolean o)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        Returns:
        this object to enable cascading method calls.
      • set

        public Seq set​(int index,
                       long o)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        Returns:
        this object to enable cascading method calls.
      • set

        public Seq set​(int index,
                       float o)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        Returns:
        this object to enable cascading method calls.
      • set

        public Seq set​(int index,
                       double o)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        Returns:
        this object to enable cascading method calls.
      • set

        public Seq set​(int index,
                       char o)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        Returns:
        this object to enable cascading method calls.
      • set

        public Seq set​(int index,
                       java.lang.String o)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        Returns:
        this object to enable cascading method calls.
      • set

        public Seq set​(int index,
                       java.lang.String o,
                       java.lang.String l)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        l - The language of the value set.
        Returns:
        this object to enable cascading method calls.
      • set

        public Seq set​(int index,
                       java.lang.Object o)
        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.

        Specified by:
        set in interface Seq
        Parameters:
        index - The index whose member is to be set.
        o - The value to be set.
        Returns:
        this object to enable cascading method calls.
      • add

        public Seq add​(int index,
                       boolean o)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added. .
        Returns:
        this object to enable cascading of method calls.
      • add

        public Seq add​(int index,
                       long o)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added. .
        Returns:
        this object to enable cascading of method calls.
      • add

        public Seq add​(int index,
                       char o)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added. .
        Returns:
        this object to enable cascading of method calls.
      • add

        public Seq add​(int index,
                       float o)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added. .
        Returns:
        this object to enable cascading of method calls.
      • add

        public Seq add​(int index,
                       double o)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added. .
        Returns:
        this object to enable cascading of method calls.
      • add

        public Seq add​(int index,
                       java.lang.Object o)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added. .
        Returns:
        this object to enable cascading of method calls.
      • add

        public Seq add​(int index,
                       java.lang.String o)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added. .
        Returns:
        this object to enable cascading of method calls.
      • add

        public Seq add​(int index,
                       java.lang.String o,
                       java.lang.String l)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added.
        l - the language of the value added .
        Returns:
        this object to enable cascading of method calls.
      • add

        public Seq add​(int index,
                       RDFNode o)
        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.

        Specified by:
        add in interface Seq
        Parameters:
        index - The index of the new member,
        o - The member to be added. .
        Returns:
        this object to enable cascading of method calls.
      • iterator

        public NodeIterator 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 interface Container
        Overrides:
        iterator in class ContainerImpl
        Returns:
        Return an iterator over the values.
      • remove

        public Container remove​(Statement s)
        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 interface Container
        Overrides:
        remove in class ContainerImpl
        Parameters:
        s - The statement to be removed from the model.
        Returns:
        this container to enable cascading calls.
      • remove

        public Seq remove​(int index)
        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.

        Specified by:
        remove in interface Seq
        Parameters:
        index - The index of the member to be removed. .
        Returns:
        this object to enable cascading of method calls.
      • indexOf

        public int indexOf​(RDFNode 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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought. .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.
      • 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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought. .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.
      • 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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought. .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.
      • 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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought. .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.
      • 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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought. .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.
      • 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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought. .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.
      • indexOf

        public int indexOf​(java.lang.Object 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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought. .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.
      • indexOf

        public int indexOf​(java.lang.String 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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought. .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.
      • indexOf

        public int indexOf​(java.lang.String o,
                           java.lang.String l)
        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.

        Specified by:
        indexOf in interface Seq
        Parameters:
        o - The member sought.
        l - the language of the member sought .
        Returns:
        an index of the member in this sequence or 0 if the member is not found in this sequence.