MICO Platform
 All Classes Namespaces Functions Variables Friends
Public Member Functions | List of all members
mico::persistence::model::Item Class Referenceabstract

Representation of a Item. More...

#include <Item.hpp>

Inheritance diagram for mico::persistence::model::Item:
mico::persistence::model::ItemAnno4cpp

Public Member Functions

virtual std::shared_ptr< PartcreatePart (const mico::persistence::model::URI &extractorID)=0
 Create a new content part with a random URI and return a handle. More...
 
virtual std::shared_ptr< PartgetPart (const mico::persistence::model::URI &uri)=0
 Return a handle to the ContentPart with the given URI, or null in case the content item does not have this content part. More...
 
virtual std::list
< std::shared_ptr< Part > > 
getParts ()=0
 Return a list over all content parts contained in this item. More...
 
virtual jnipp::Ref
< jnipp::java::lang::Object > & 
createObject (const jnipp::Ref< jnipp::Class > &clazz)=0
 Create a new jnipp Object of the desired class.
 
virtual jnipp::Ref
< jnipp::java::lang::Object > & 
createObjectNoCommit (jnipp::Ref< jnipp::org::openrdf::repository::object::ObjectConnection > con, const jnipp::Ref< jnipp::Class > &clazz)=0
 Create a new jnipp Object of the desired class using the connection. More...
 
virtual jnipp::Ref
< jnipp::java::lang::Object > & 
findObject (const mico::persistence::model::URI &uri, const jnipp::Ref< jnipp::Class > &clazz)=0
 Retrieve an existing jnipp Object of the desired class.
 
virtual std::string getSerializedAt ()=0
 

Detailed Description

Representation of a Item.

A Item is a collection of ContentParts, e.g. an HTML page together with its embedded images. ContentParts can be either original content or created during analysis. For compatibility with the Linked Data platform, its RDF type is ldp:BasicContainer

Member Function Documentation

virtual jnipp::Ref<jnipp::java::lang::Object>& mico::persistence::model::Item::createObjectNoCommit ( jnipp::Ref< jnipp::org::openrdf::repository::object::ObjectConnection >  con,
const jnipp::Ref< jnipp::Class > &  clazz 
)
pure virtual

Create a new jnipp Object of the desired class using the connection.

Notice that this method does not commit the transaction.

Implemented in mico::persistence::model::ItemAnno4cpp.

virtual std::shared_ptr<Part> mico::persistence::model::Item::createPart ( const mico::persistence::model::URI extractorID)
pure virtual

Create a new content part with a random URI and return a handle.

The handle can then be used for updating the content and metadata of the content part.

Parameters
extractorIDThe id of the extractor which creates the current part
Returns
a handle to a ContentPart object that is suitable for reading and updating

Implemented in mico::persistence::model::ItemAnno4cpp.

virtual std::shared_ptr<Part> mico::persistence::model::Item::getPart ( const mico::persistence::model::URI uri)
pure virtual

Return a handle to the ContentPart with the given URI, or null in case the content item does not have this content part.

Parameters
urithe URI of the content part to return
Returns
a handle to a ContentPart object that is suitable for reading and updating

Implemented in mico::persistence::model::ItemAnno4cpp.

virtual std::list< std::shared_ptr<Part> > mico::persistence::model::Item::getParts ( )
pure virtual

Return a list over all content parts contained in this item.

Returns
a list that holds the content parts

Implemented in mico::persistence::model::ItemAnno4cpp.


The documentation for this class was generated from the following file: