org.dcm4che.srom
Interface RelationConstraints


public interface RelationConstraints

This interface will check the Relationship constraints between two SR Content Items.

Version:
0.9.9
Author:
gunter.zeilinger@tiani.com
See Also:
"DICOM Part 3: Information Object Definitions, Annex C.17.3 SR Document Content Module"

Method Summary
 void check(Content source, Content.RelationType relation, Content target)
          Checks if a Relation is valid.
 

Method Detail

check

void check(Content source,
           Content.RelationType relation,
           Content target)
Checks if a Relation is valid. SR Content Items have to have valid Relationship Types in order to have a valid SR Document.
e.g. the source of Relationship CONTAINS has to be of Content Type CONTAINER.

Parameters:
source - the source Content Item.
relation - the Relationship Type.
target - the target Content Item.
Throws:
java.lang.IllegalArgumentException - if Relationship is not valid.