Class ResSeq

Description

This interface defines methods for accessing RDF Sequence resources.

These methods operate on the RDF statements contained in a model.

Located in /resModel/ResSeq.php (line 16)

Object
   |
   --Node
      |
      --Resource
         |
         --ResResource
            |
            --ResContainer
               |
               --ResSeq
Method Summary
ResSeq ResSeq ([string $uri = null])
boolean addAtIndex (integer $index,  $object, object ResResource/ResLiteral $resResource)
object ResResource/ResLiteral getMember (integer $index)
integer indexOf (object ResResource/ResLiteral $object)
void removeAtIndex (integer $index)
boolean set (integer $index,  $object)
Methods
Constructor ResSeq (line 26)

Constructor You can supply a URI

  • access: public
ResSeq ResSeq ([string $uri = null])
  • string $uri
addAtIndex (line 42)

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.

  • access: public
boolean addAtIndex (integer $index,  $object, object ResResource/ResLiteral $resResource)
  • integer $index
  • object ResResource/ResLiteral $resResource
  • $object
getMember (line 72)

Get the member at a given index

  • access: public
object ResResource/ResLiteral getMember (integer $index)
  • integer $index
indexOf (line 95)

Return the index of a given member of the sequence.

If 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.

  • access: public
integer indexOf (object ResResource/ResLiteral $object)
  • object ResResource/ResLiteral $object
removeAtIndex (line 119)

Remove the member at the specified index.

All other members with a higher index will have their index reduced by one.

  • access: public
void removeAtIndex (integer $index)
  • integer $index
set (line 143)

Set the value at a given index in the sequence.

If the index is not in the range of the sequence, false is returned

  • access: public
boolean set (integer $index,  $object)
  • integer $index
  • $object

Inherited Methods

Inherited From ResContainer

ResContainer::ResContainer()
ResContainer::add()
ResContainer::contains()
ResContainer::getMembers()
ResContainer::isAlt()
ResContainer::isBag()
ResContainer::isSeq()
ResContainer::remove()
ResContainer::size()

Inherited From ResResource

ResResource::ResResource()
ResResource::addProperty()
ResResource::equals()
ResResource::getAssociatedModel()
ResResource::getIsAnon()
ResResource::getProperty()
ResResource::hasProperty()
ResResource::listProperties()
ResResource::removeAll()
ResResource::removeProperties()
ResResource::setAssociatedModel()
ResResource::setIsAnon()
ResResource::setURI()

Inherited From Resource

Resource::Resource()
Resource::equals()
Resource::getLabel()
Resource::getLocalName()
Resource::getNamespace()
Resource::getURI()
Resource::toString()

Inherited From Object

Object::toString()

Documentation generated on Fri, 1 Jun 2007 16:51:39 +0200 by phpDocumentor 1.3.2