org.pasoa.common.structure
Class Relationship

java.lang.Object
  extended by org.pasoa.common.structure.PAssertion
      extended by org.pasoa.common.structure.Relationship
All Implemented Interfaces:
Serializable

public class Relationship
extends PAssertion

A Relationship p-assertion. Represents a relationship between a p-assertion or its parts with other p-assertions (and their parts).

Author:
pgroth
See Also:
Serialized Form

Constructor Summary
Relationship(String localPAssertionID, String subjectLocalPAssertionID, Element subjectDataAccessor, String subjectParameterName, String relation, List objectIDs)
          Construct a relationship between p-assertions.
Relationship(String localPAssertionID, SubjectID subjectID, String relation, List objectIDs)
           
 
Method Summary
 List getObjectIDs()
           
 String getRelation()
           
 SubjectID getSubject()
           
 
Methods inherited from class org.pasoa.common.structure.PAssertion
getLocalPAssertionID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Relationship

public Relationship(String localPAssertionID,
                    String subjectLocalPAssertionID,
                    Element subjectDataAccessor,
                    String subjectParameterName,
                    String relation,
                    List objectIDs)
Construct a relationship between p-assertions. Relationships are one to many tuples consisting of a subject, relationship, and many objects

Parameters:
localPAssertionID - the id of this relationship p-assertion
subjectLocalPAssertionID -
subjectDataAccessor - if there is no subject data accessor pass null
subjectParameterName -
relation -
objectIDs - a list of object ids

Relationship

public Relationship(String localPAssertionID,
                    SubjectID subjectID,
                    String relation,
                    List objectIDs)
Method Detail

getObjectIDs

public List getObjectIDs()

getRelation

public String getRelation()

getSubject

public SubjectID getSubject()