Class Component


public class Component extends AbstractComponent<Component>
The specification for a particular field component in a message profile.
Author:
Bryan Tripp
  • Constructor Details

    • Component

      public Component()
      Creates a new instance of Component
  • Method Details

    • getSubComponent

      public SubComponent getSubComponent(int index)
      Indexed getter for property components (index starts at 1 following HL7 convention).
      Parameters:
      index - Index of the property (starts at 1 following HL7 convention).
      Returns:
      Value of the property at index.
    • setSubComponent

      public void setSubComponent(int index, SubComponent component) throws ProfileException
      Indexed setter for property components (index starts at 1 following HL7 convention).
      Parameters:
      index - Index of the property (starts at 1 following HL7 convention).
      component - New value of the property at index.
      Throws:
      ProfileException
    • getSubComponents

      public int getSubComponents()
      Returns the number of subcomponents in this component
    • getChildrenAsList

    • toString

      public String toString()
      Overrides:
      toString in class Object