com.io7m.jstructural.annotated

## Class SAParagraphNumber

- java.lang.Object
- - com.io7m.jstructural.annotated.SAParagraphNumber

- All Implemented Interfaces:
    SASubsectionContentNumber, Comparable<SAParagraphNumber>
  Direct Known Subclasses:
    SAParagraphNumberPSP, SAParagraphNumberPSSP, SAParagraphNumberSP, SAParagraphNumberSSP

      @Immutable
      public abstract class SAParagraphNumber
      extends Object
      implements Comparable<SAParagraphNumber>, SASubsectionContentNumber

  An abstract paragraph number.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SAParagraphNumber()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract int` | `getParagraph()`
    `abstract <T> T` | `paragraphNumberAccept(SAParagraphNumberVisitor<T> v)` Accept a paragraph number visitor.
    `abstract String` | `paragraphNumberFormat()`
    `<T> T` | `subsectionContentNumberAccept(SASubsectionContentNumberVisitor<T> v)` Accept a subsection content number visitor.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.lang.Comparable

      `compareTo`

- - ### Constructor Detail

    - #### SAParagraphNumber

          public SAParagraphNumber()

  - ### Method Detail

    - #### getParagraph

          public abstract int getParagraph()

      Returns:
        The paragraph number

    - #### paragraphNumberAccept

          public abstract <T> T paragraphNumberAccept(SAParagraphNumberVisitor<T> v)
                                               throws Exception

      Accept a paragraph number visitor.
      Type Parameters:
        `T` - The type of values returned by the visitor
      Parameters:
        `v` - The visitor
      Returns:
        The value returned by the visitor
      Throws:
        `Exception` - If the visitor raises an `Exception`

    - #### paragraphNumberFormat

          public abstract String paragraphNumberFormat()

      Returns:
        A human-readable string representing the paragraph number (such as "1.2.3.4")

    - #### subsectionContentNumberAccept

          public final <T> T subsectionContentNumberAccept(SASubsectionContentNumberVisitor<T> v)
                                                    throws Exception

      Description copied from interface: `SASubsectionContentNumber`
      Accept a subsection content number visitor.
      Specified by:
        `subsectionContentNumberAccept` in interface `SASubsectionContentNumber`
      Type Parameters:
        `T` - The type of values returned by the visitor
      Parameters:
        `v` - The visitor
      Returns:
        The value returned by the visitor
      Throws:
        `Exception` - If the visitor raises an `Exception`

Copyright © 2015 <code@io7m.com> http://io7m.com