public class XBRLCTimeFilter extends java.lang.Object implements XBRLFacetFilter
Modifier and Type | Class and Description |
---|---|
static class |
XBRLCTimeFilter.DurationFilter
The Class DurationFilter.
|
static class |
XBRLCTimeFilter.TimeFilter
The Class TimeFilter.
|
static class |
XBRLCTimeFilter.TimeFilterPosition
The Enum TimeFilterPosition.
|
static class |
XBRLCTimeFilter.XBRLCDurationAnyFilter
The Class XBRLCDurationAnyFilter.
|
static class |
XBRLCTimeFilter.XBRLCDurationDurationFilter
The Class XBRLCDurationDurationFilter.
|
static class |
XBRLCTimeFilter.XBRLCDurationLongestFilter
The Class XBRLCDurationLongestFilter.
|
static class |
XBRLCTimeFilter.XBRLCDurationShortestFilter
The Class XBRLCDurationShortestFilter.
|
static class |
XBRLCTimeFilter.XBRLCTimeAnyFilter
The Class XBRLCTimeAnyFilter.
|
static class |
XBRLCTimeFilter.XBRLCTimeDateFilter
The Class XBRLCTimeDateFilter.
|
static class |
XBRLCTimeFilter.XBRLCTimeLatestFilter
The Class XBRLCTimeLatestFilter.
|
static class |
XBRLCTimeFilter.XBRLCTimeOldestFilter
The Class XBRLCTimeOldestFilter.
|
static class |
XBRLCTimeFilter.XBRLCTimeSameEndFilter
The Class XBRLCTimeSameEndFilter.
|
static class |
XBRLCTimeFilter.XBRLCTimeSameInstantFilter
The Class XBRLCTimeSameInstantFilter.
|
static class |
XBRLCTimeFilter.XBRLCTimeSameStartFilter
The Class XBRLCTimeSameStartFilter.
|
Constructor and Description |
---|
XBRLCTimeFilter(java.lang.String id,
XBRLCTimeFilter.DurationFilter durationFilter,
XBRLCTimeFilter.TimeFilter startFilter,
XBRLCTimeFilter.TimeFilter endFilter)
Instantiates a new XBRLC time filter.
|
XBRLCTimeFilter(java.lang.String id,
XBRLCTimeFilter.TimeFilter instantFilter)
Instantiates a new XBRLC time filter.
|
Modifier and Type | Method and Description |
---|---|
static XBRLFacetFilter |
compileFilter(net.sf.saxon.s9api.XdmNode filterNode,
net.sf.saxon.s9api.XPathCompiler xp)
Compile filter.
|
XMLFragment |
createFilterNode(DTSContainer dts)
Returns a node representing the serialization of this filter so it can be
created later from the node.
|
java.util.GregorianCalendar |
getDateEnd(XBRLFilterContext context)
Gets the date end.
|
java.util.GregorianCalendar |
getDateInstant(XBRLFilterContext context)
Gets the date instant.
|
java.util.GregorianCalendar |
getDateStart(XBRLFilterContext context)
Gets the date start.
|
java.lang.String |
getId()
Gets the id.
|
boolean |
isDuration()
Checks if is duration.
|
boolean |
isInstant()
Checks if is instant.
|
boolean |
matches(XBRLFact fact,
XBRLFilterContext context)
Return a boolean value indicating if the fact passes the filter.
|
boolean |
matches(XBRLPeriod p,
XBRLFilterContext context)
Matches.
|
void |
setId(java.lang.String id)
Sets the id.
|
public XBRLCTimeFilter(java.lang.String id, XBRLCTimeFilter.TimeFilter instantFilter)
id
- the idinstantFilter
- the instant filterpublic XBRLCTimeFilter(java.lang.String id, XBRLCTimeFilter.DurationFilter durationFilter, XBRLCTimeFilter.TimeFilter startFilter, XBRLCTimeFilter.TimeFilter endFilter)
id
- the iddurationFilter
- the duration filterstartFilter
- the start filterendFilter
- the end filterpublic java.util.GregorianCalendar getDateEnd(XBRLFilterContext context)
context
- the contextpublic java.util.GregorianCalendar getDateStart(XBRLFilterContext context)
context
- the contextpublic java.util.GregorianCalendar getDateInstant(XBRLFilterContext context)
context
- the contextpublic boolean isDuration()
public boolean isInstant()
public boolean matches(XBRLFact fact, XBRLFilterContext context)
XBRLFacetFilter
matches
in interface XBRLFacetFilter
fact
- XBRLFact to testcontext
- the contextpublic boolean matches(XBRLPeriod p, XBRLFilterContext context)
p
- the pcontext
- the contextpublic XMLFragment createFilterNode(DTSContainer dts) throws LoaderException
XBRLFacetFilter
createFilterNode
in interface XBRLFacetFilter
dts
- the dtsLoaderException
- the loader exceptionpublic java.lang.String getId()
getId
in interface XBRLFacetFilter
public static XBRLFacetFilter compileFilter(net.sf.saxon.s9api.XdmNode filterNode, net.sf.saxon.s9api.XPathCompiler xp) throws LoaderException
filterNode
- the filter nodexp
- the xpLoaderException
- the loader exceptionpublic void setId(java.lang.String id)
setId
in interface XBRLFacetFilter
id
- the new idCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa