public abstract class AttributeFilter extends java.lang.Object implements java.util.Iterator<XBRLAttribute>
Using this class each object will return the set of attributes that belongs to the object as expected.
Constructor and Description |
---|
AttributeFilter(java.util.Iterator<XBRLAttribute> notFilteredIter,
javax.xml.namespace.QName[] exceptions)
Creates a new instance of an AttributeFilter.
|
Modifier and Type | Method and Description |
---|---|
javax.xml.namespace.QName[] |
getExceptions()
Access to the list of exceptions initialized for this AttributeFilter.
|
boolean |
hasNext()
Checks for next.
|
XBRLAttribute |
next()
Next.
|
void |
remove()
Removes the.
|
abstract boolean |
shouldBeSkiped(XBRLAttribute at)
Returns true if the attribute indicated in the parameter should not
be returned by this Iterator .
|
public AttributeFilter(java.util.Iterator<XBRLAttribute> notFilteredIter, javax.xml.namespace.QName[] exceptions)
The AttributeFilter will check if the attributes are in the list of QNames passed in as the array of exceptions. If the attribute node names is not in the list then the abstract method shouldBeSkiped is called.
If the exceptions is null, shouldBySkiped is always called.
notFilteredIter
- surrounding attribute iterator. Can be another Attribute filter.exceptions
- static array of QNames that will be skipped by this filter or null.public abstract boolean shouldBeSkiped(XBRLAttribute at)
at
- the atpublic javax.xml.namespace.QName[] getExceptions()
public boolean hasNext()
hasNext
in interface java.util.Iterator<XBRLAttribute>
public XBRLAttribute next()
next
in interface java.util.Iterator<XBRLAttribute>
public void remove()
remove
in interface java.util.Iterator<XBRLAttribute>
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa