com.ontotext.ordi.tripleset.impl
Class TStatementImpl

java.lang.Object
  extended by org.openrdf.model.impl.StatementImpl
      extended by org.openrdf.model.impl.ContextStatementImpl
          extended by com.ontotext.ordi.tripleset.impl.TStatementImpl
All Implemented Interfaces:
TStatement, Serializable, Statement

public class TStatementImpl
extends ContextStatementImpl
implements TStatement

See Also:
Serialized Form

Field Summary
protected  Set<URI> tripleSets
           
 
Constructor Summary
TStatementImpl(Resource subject, URI predicate, Value object, Resource context, Set<URI> ts)
           
TStatementImpl(Resource subject, URI predicate, Value object, Resource context, URI... ts)
           
TStatementImpl(Statement statement, Resource context, Set<URI> ts)
           
TStatementImpl(Statement statement, Resource context, URI... ts)
           
 
Method Summary
 boolean equals(Object other)
           
 Iterator<URI> getTriplesetIterator()
          Gets iterator to the associated triplesets for this statement instance.
 int hashCode()
           
 boolean isMemberOf(URI uri)
          Checks if this statement is associated with a specific tripleset URI.
 
Methods inherited from class org.openrdf.model.impl.ContextStatementImpl
getContext, toString
 
Methods inherited from class org.openrdf.model.impl.StatementImpl
getObject, getPredicate, getSubject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.model.Statement
getContext, getObject, getPredicate, getSubject
 

Field Detail

tripleSets

protected final Set<URI> tripleSets
Constructor Detail

TStatementImpl

public TStatementImpl(Resource subject,
                      URI predicate,
                      Value object,
                      Resource context,
                      URI... ts)

TStatementImpl

public TStatementImpl(Resource subject,
                      URI predicate,
                      Value object,
                      Resource context,
                      Set<URI> ts)

TStatementImpl

public TStatementImpl(Statement statement,
                      Resource context,
                      URI... ts)

TStatementImpl

public TStatementImpl(Statement statement,
                      Resource context,
                      Set<URI> ts)
Method Detail

getTriplesetIterator

public Iterator<URI> getTriplesetIterator()
Description copied from interface: TStatement
Gets iterator to the associated triplesets for this statement instance.

Specified by:
getTriplesetIterator in interface TStatement
Returns:
iterator with the associated triplests

isMemberOf

public boolean isMemberOf(URI uri)
Description copied from interface: TStatement
Checks if this statement is associated with a specific tripleset URI.

Specified by:
isMemberOf in interface TStatement
Parameters:
uri - the tripleset identifier to be checked
Returns:
true if the statement is associated or false if otherwise

equals

public boolean equals(Object other)
Specified by:
equals in interface Statement
Overrides:
equals in class StatementImpl

hashCode

public int hashCode()
Specified by:
hashCode in interface Statement
Overrides:
hashCode in class StatementImpl


Copyright © 2008. All Rights Reserved.