gr.forth.ics.rdfsuite.swkm.model
Interface IRDF_Container

All Superinterfaces:
Identifiable, IRDF_Resource
All Known Implementing Classes:
RDF_Container

public interface IRDF_Container
extends IRDF_Resource

Container represents a collection of Resources or Literals. A kind attribute is attached to the Container with value either 1 for "BAG",2 for "SEQUENCE" or 3 for "ALTERNATIVE"


Method Summary
 int getKind()
          This method retrieves the kind of the Container
 java.lang.Object getMember(java.lang.String member_uri)
          This method retrieves the member of the Container with the given URI
 java.util.Collection<IRDF_Resource> getMembers()
          Retrieves the members of this container
 java.util.Collection<IRDF_Member> getMembersTriples()
          Retrieves the member triples of this container
 IRDF_Member getMemberTriple(java.lang.String member_uri)
          This method retrieves the member triple of the Container with the given URI
 IRDF_Model getModel()
           
 boolean hasMember(java.lang.String member_uri)
          This method opines whether the Resource with the given uri is a member of the Container
 boolean isAlternative()
          This method opines whether the Container represents an Alternative
 boolean isBag()
          This method opines whether the Container represents a Bag
 boolean isSequence()
          This method opines whether the Container represents a Sequence
 void setKind(int kind)
          This method sets the kind of the Container
 
Methods inherited from interface gr.forth.ics.rdfsuite.swkm.model.IRDF_Resource
getAllTypes, getColumn, getComments, getCommentsTriples, getIsDefinedBys, getIsDefinedBysTriples, getLabels, getLabelsTriples, getLine, getLocalName, getNamespace, getNamespacePart, getSeeAlsos, getSeeAlsosTriples, getTypes, getTypesTriples, getURI, hasTypeOf, setColumn, setLine, setLocalName, setNamespace, setURI, toString
 

Method Detail

getKind

int getKind()
This method retrieves the kind of the Container

Returns:
The type of the Container,either 0 for "BAG", 1 for "SEQUENCE" or 2 for "ALTERNATIVE"

setKind

void setKind(int kind)
This method sets the kind of the Container

Parameters:
kind - The kind to set the Container,either 0 for"BAG",1 for "SEQUENCE" or 2 for "ALTERNATIVE"

getMembersTriples

java.util.Collection<IRDF_Member> getMembersTriples()
Retrieves the member triples of this container

Returns:
A Collection object

getMemberTriple

IRDF_Member getMemberTriple(java.lang.String member_uri)
This method retrieves the member triple of the Container with the given URI

Parameters:
member_uri - The URI of the member of the Container that is looked for
Returns:
An IRDF_Member object

getMembers

java.util.Collection<IRDF_Resource> getMembers()
Retrieves the members of this container

Returns:
A Collection object

getMember

java.lang.Object getMember(java.lang.String member_uri)
This method retrieves the member of the Container with the given URI

Parameters:
member_uri - The URI of the member of the Container that is looked for
Returns:
The Resource(member) that is looked for

hasMember

boolean hasMember(java.lang.String member_uri)
This method opines whether the Resource with the given uri is a member of the Container

Parameters:
member_uri - The uri of the Resource that is looked for in the Container
Returns:
true if the given resource is a member of the Container

isBag

boolean isBag()
This method opines whether the Container represents a Bag

Returns:
true if the Container represents a Bag

isSequence

boolean isSequence()
This method opines whether the Container represents a Sequence

Returns:
true if the Container represents a Sequence

isAlternative

boolean isAlternative()
This method opines whether the Container represents an Alternative

Returns:
true if the Container represents a Alternative

getModel

IRDF_Model getModel()