com.ihr.xbrl.mapper.filters

## Class XBRLCTimeFilter.DurationFilter

- java.lang.Object
- - com.ihr.xbrl.mapper.filters.XBRLCTimeFilter.DurationFilter

- All Implemented Interfaces:
    XBRLFacetFilter
  Direct Known Subclasses:
    XBRLCTimeFilter.XBRLCDurationAnyFilter, XBRLCTimeFilter.XBRLCDurationDurationFilter, XBRLCTimeFilter.XBRLCDurationLongestFilter, XBRLCTimeFilter.XBRLCDurationShortestFilter
  Enclosing class:
    XBRLCTimeFilter

      public abstract static class XBRLCTimeFilter.DurationFilter
      extends java.lang.Object
      implements XBRLFacetFilter

  The Class DurationFilter.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract javax.xml.datatype.Duration` | `getDuration(XBRLFilterContext context)` Gets the duration.
    `abstract boolean` | `matches(XBRLPeriod p, XBRLFilterContext context)` Matches.
    `void` | `setParent(XBRLCTimeFilter parent)` Sets the parent.

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

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

    - ### Methods inherited from interface com.ihr.xbrl.mapper.filters.XBRLFacetFilter

      `createFilterNode, getId, matches, setId`

- - ### Method Detail

    - #### getDuration

          public abstract javax.xml.datatype.Duration getDuration(XBRLFilterContext context)

      Gets the duration.
      Parameters:
        `context` - the context
      Returns:
        the duration

    - #### matches

          public abstract boolean matches(XBRLPeriod p,
                        XBRLFilterContext context)

      Matches.
      Parameters:
        `p` - the p
        `context` - the context
      Returns:
        true, if successful

    - #### setParent

          public void setParent(XBRLCTimeFilter parent)

      Sets the parent.
      Parameters:
        `parent` - the new parent