org.dishevelled.vocabulary.simple
Class SimpleAssignment

java.lang.Object
  extended by org.dishevelled.vocabulary.simple.SimpleAssignment
All Implemented Interfaces:
Assignment

public class SimpleAssignment
extends java.lang.Object
implements Assignment

Simple implementation of the Assignment interface.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Field Summary
private  Assignable assignable
          Assignable.
private  Authority authority
          Authority.
private  SimpleConcept concept
          Concept.
private  java.util.Set<Evidence> evidence
          Set of evidence.
 
Constructor Summary
SimpleAssignment(Authority authority, SimpleConcept concept, Assignable assignable, java.util.Set<Evidence> evidence)
          Create a new assignment maintained by the specified authority of concept to assignable, supported by evidence.
 
Method Summary
 void addEvidence(Evidence evidence)
          Add the specified evidence.
 Assignable getAssignable()
          Return the "assignable" entity of this assignment.
 Authority getAuthority()
          Return the authority for this assignment.
 Concept getConcept()
          Return the concept of this assignment.
 java.util.Set<Evidence> getEvidence()
          Return the set of evidence supporting this assignment.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

evidence

private final java.util.Set<Evidence> evidence
Set of evidence.


concept

private final SimpleConcept concept
Concept.


assignable

private final Assignable assignable
Assignable.


authority

private final Authority authority
Authority.

Constructor Detail

SimpleAssignment

SimpleAssignment(Authority authority,
                 SimpleConcept concept,
                 Assignable assignable,
                 java.util.Set<Evidence> evidence)
Create a new assignment maintained by the specified authority of concept to assignable, supported by evidence. None of authority, concept, or assignable may be null.

Parameters:
authority - authority
concept - assignment source concept
assignable - assignment target assignable
evidence - set of evidence
Method Detail

getEvidence

public java.util.Set<Evidence> getEvidence()
Description copied from interface: Assignment
Return the set of evidence supporting this assignment. The set must not be null, but may be empty.

Specified by:
getEvidence in interface Assignment
Returns:
the set of evidence
See Also:
Assignment

getConcept

public Concept getConcept()
Description copied from interface: Assignment
Return the concept of this assignment. The concept must not be null.

Specified by:
getConcept in interface Assignment
Returns:
the concept
See Also:
Assignment

getAssignable

public Assignable getAssignable()
Description copied from interface: Assignment
Return the "assignable" entity of this assignment. The assignable entity must not be null.

Specified by:
getAssignable in interface Assignment
Returns:
the "assignable" entity
See Also:
Assignment

getAuthority

public Authority getAuthority()
Description copied from interface: Assignment
Return the authority for this assignment. The authority must not be null.

Specified by:
getAuthority in interface Assignment
Returns:
the authority
See Also:
Assignment

addEvidence

public void addEvidence(Evidence evidence)
Add the specified evidence.

Parameters:
evidence - evidence to add

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object


Copyright (c) 2002-2004 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).