MICO Platform
 All Classes Namespaces Functions Variables Friends
Public Member Functions | Protected Attributes | List of all members
mico::persistence::model::ItemAnno4cpp Class Reference
Inheritance diagram for mico::persistence::model::ItemAnno4cpp:
mico::persistence::model::Item mico::persistence::model::ResourceAnno4cpp mico::persistence::model::Resource

Public Member Functions

 ItemAnno4cpp (jnipp::Ref< jnipp::eu::mico::platform::anno4j::model::ItemMMM > itemMMM, PersistenceService &persistenceService)
 
std::shared_ptr< PartcreatePart (const mico::persistence::model::URI &extractorID)
 Create a new content part with a random URI and return a handle. More...
 
std::shared_ptr< PartgetPart (const mico::persistence::model::URI &uri)
 Return a handle to the ContentPart with the given URI, or null in case the content item does not have this content part. More...
 
std::list< std::shared_ptr
< Part > > 
getParts ()
 Return a list over all content parts contained in this item. More...
 
std::string getSerializedAt ()
 
jnipp::Ref
< jnipp::java::lang::Object > & 
createObject (const jnipp::Ref< jnipp::Class > &clazz)
 Create a new jnipp Object of the desired class.
 
jnipp::Ref
< jnipp::java::lang::Object > & 
createObjectNoCommit (jnipp::Ref< jnipp::org::openrdf::repository::object::ObjectConnection > con, const jnipp::Ref< jnipp::Class > &clazz)
 Create a new jnipp Object of the desired class using the connection. More...
 
jnipp::Ref
< jnipp::java::lang::Object > & 
findObject (const mico::persistence::model::URI &uri, const jnipp::Ref< jnipp::Class > &clazz)
 Retrieve an existing jnipp Object of the desired class.
 
- Public Member Functions inherited from mico::persistence::model::ResourceAnno4cpp
virtual
mico::persistence::model::URI 
getURI ()
 Return the identifier (a unique URI) for this item. More...
 
virtual jnipp::Ref
< jnipp::eu::mico::platform::anno4j::model::ResourceMMM > 
getRDFObject ()
 
virtual std::string getSyntacticalType ()
 the mime type, e.g. More...
 
virtual void setSyntacticalType (std::string syntacticalType)
 
virtual std::string getSemanticType ()
 
virtual void setSemanticType (std::string semanticType)
 
virtual std::shared_ptr< AssetgetAsset ()
 
virtual std::shared_ptr< AssetgetAssetWithLocation (mico::persistence::model::URI)
 
virtual bool hasAsset ()
 
virtual
mico::persistence::PersistenceService
getPersistenceService ()
 

Protected Attributes

jnipp::GlobalRef
< jnipp::eu::mico::platform::anno4j::model::ItemMMM > 
m_itemMMM
 
- Protected Attributes inherited from mico::persistence::model::ResourceAnno4cpp
PersistenceServicem_persistenceService
 
std::string m_jnippErrorMessage
 

Additional Inherited Members

- Protected Member Functions inherited from mico::persistence::model::ResourceAnno4cpp
 ResourceAnno4cpp (jnipp::Ref< jnipp::eu::mico::platform::anno4j::model::ResourceMMM > resourceMMM, PersistenceService &persistenceService)
 

Member Function Documentation

jnipp::Ref< JavaLangObject > & mico::persistence::model::ItemAnno4cpp::createObjectNoCommit ( jnipp::Ref< jnipp::org::openrdf::repository::object::ObjectConnection >  con,
const jnipp::Ref< jnipp::Class > &  clazz 
)
virtual

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

Notice that this method does not commit the transaction.

Implements mico::persistence::model::Item.

std::shared_ptr< Part > mico::persistence::model::ItemAnno4cpp::createPart ( const mico::persistence::model::URI extractorID)
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

Implements mico::persistence::model::Item.

std::shared_ptr< Part > mico::persistence::model::ItemAnno4cpp::getPart ( const mico::persistence::model::URI uri)
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

Implements mico::persistence::model::Item.

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

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

Returns
a list that holds the content parts

Implements mico::persistence::model::Item.


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