com.ihr.xbrl.filters
Class XBRLContextFilter

java.lang.Object
  extended by com.ihr.xbrl.filters.XBRLContextFilter
All Implemented Interfaces:
XBRLFacetFilter

public class XBRLContextFilter
extends java.lang.Object
implements XBRLFacetFilter

This is a filter matches if the fact belongs to a specific context or a c_equal context

Author:
Ignacio

Constructor Summary
XBRLContextFilter()
           
XBRLContextFilter(XBRLContext ctx)
           
 
Method Summary
 XBRLContext getContext()
           
 boolean matches(XBRLFact fact)
          Return a boolean value indicating if the fact passes the filter.
 void setContext(XBRLContext ctx)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XBRLContextFilter

public XBRLContextFilter()

XBRLContextFilter

public XBRLContextFilter(XBRLContext ctx)
Method Detail

matches

public boolean matches(XBRLFact fact)
Description copied from interface: XBRLFacetFilter
Return a boolean value indicating if the fact passes the filter. true - match false - no match

Specified by:
matches in interface XBRLFacetFilter
Parameters:
fact - XBRLFact to test
Returns:
boolean

getContext

public XBRLContext getContext()
Returns:
the ctx

setContext

public void setContext(XBRLContext ctx)
Parameters:
ctx - the ctx to set