|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.util.AttributeFilter
public abstract class AttributeFilter
This class is abstract and serves for XBRL defined objects to remove from the declared attributes in the node all that belongs to a different layer as for example the XML Schema layer or the XLink layer.
Using this class each object will return the set of attributes that belongs to the object as expected.
| Constructor Summary | |
|---|---|
AttributeFilter(java.util.Iterator<XBRLAttribute> notFilteredIter,
javax.xml.namespace.QName[] exceptions)
Creates a new instance of an AttributeFilter. |
|
| Method Summary | |
|---|---|
javax.xml.namespace.QName[] |
getExceptions()
Access to the list of exceptions initialized for this AttributeFilter |
boolean |
hasNext()
|
XBRLAttribute |
next()
|
void |
remove()
|
abstract boolean |
shouldBeSkiped(XBRLAttribute at)
Returns true if the attribute indicated in the parameter should not be returned by this Iterator |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public abstract boolean shouldBeSkiped(XBRLAttribute at)
at -
public 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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||