ca.uhn.hl7v2.conf.classes.abs
Class FiniteList

java.lang.Object
  extended by ca.uhn.hl7v2.conf.classes.abs.FiniteList

public class FiniteList
extends Object

Holds a group of repetitions for a given Profile and exercises cardinality constraints

Author:
James AgnewPaul BrohmanMitch DelachevrotiereShawn DyckCory Metcalf

Constructor Summary
FiniteList(Class<? extends Repeatable> repType, Object underlyingObject)
          Constructor for FiniteList
 
Method Summary
 Repeatable getRep(int rep)
          Returns the desired repetition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FiniteList

public FiniteList(Class<? extends Repeatable> repType,
                  Object underlyingObject)
Constructor for FiniteList

Parameters:
repType - the Class which is repeating
underlyingObject - the underlying object that the extending class represents
Method Detail

getRep

public Repeatable getRep(int rep)
                  throws ConfRepException
Returns the desired repetition

Parameters:
rep - The desired repetition number. Note that in accordance with the HL7 standard
Returns:
The desired repetition
Throws:
ConformanceException - if repetition is not accessible
ConfRepException


Copyright © 2001-2012 University Health Network. All Rights Reserved.