public class XBRLContextFilter extends java.lang.Object implements XBRLFacetFilter
Constructor and Description |
---|
XBRLContextFilter(java.lang.String id,
XBRLContext ctx)
Instantiates a new XBRL context filter.
|
Modifier and Type | Method and Description |
---|---|
XMLFragment |
createFilterNode(DTSContainer dts)
Returns a node representing the serialization of this filter so it can be
created later from the node.
|
XBRLContext |
getContext()
Gets the context.
|
java.lang.String |
getId()
Gets the id.
|
boolean |
matches(XBRLFact fact,
XBRLFilterContext context)
Return a boolean value indicating if the fact passes the filter.
|
void |
setContext(XBRLContext ctx)
Sets the context.
|
void |
setId(java.lang.String id)
Sets the id.
|
public XBRLContextFilter(java.lang.String id, XBRLContext ctx)
id
- the idctx
- the ctxpublic boolean matches(XBRLFact fact, XBRLFilterContext context)
XBRLFacetFilter
matches
in interface XBRLFacetFilter
fact
- XBRLFact to testcontext
- the contextpublic XBRLContext getContext()
public void setContext(XBRLContext ctx)
ctx
- the ctx to setpublic XMLFragment createFilterNode(DTSContainer dts) throws LoaderException
XBRLFacetFilter
createFilterNode
in interface XBRLFacetFilter
dts
- the dtsLoaderException
- the loader exceptionpublic java.lang.String getId()
XBRLFacetFilter
getId
in interface XBRLFacetFilter
public void setId(java.lang.String id)
XBRLFacetFilter
setId
in interface XBRLFacetFilter
id
- the new idCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa