org.pasoa.common.structure
Class Relationship
java.lang.Object
org.pasoa.common.structure.PAssertion
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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-assertionsubjectLocalPAssertionID
- subjectDataAccessor
- if there is no subject data accessor pass nullsubjectParameterName
- relation
- objectIDs
- a list of object ids
Relationship
public Relationship(String localPAssertionID,
SubjectID subjectID,
String relation,
List objectIDs)
getObjectIDs
public List getObjectIDs()
getRelation
public String getRelation()
getSubject
public SubjectID getSubject()