E
- the element type that must extends XMLFragmentpublic class FastXMLFragmentContent<E extends XMLFragment>
extends java.lang.Object
Goals of this class are:
Due to the reason methods that works with "children" member is final in the ParentNodeImpl class this class can't be automatically synchronized with the surrounding class
Constructor and Description |
---|
FastXMLFragmentContent(XMLFragment parent,
FastXMLFragmentContent<? extends XMLFragment> previous)
Creates a new instance of a FastXMLFragmentContent
|
FastXMLFragmentContent(XMLFragment parent,
FastXMLFragmentContent<? extends XMLFragment> previous,
boolean bBatchMode)
Creates a new instance of a FastXMLFragmentContent
|
FastXMLFragmentContent(XMLFragment parent,
FastXMLFragmentContent<? extends XMLFragment> previous,
boolean bBatchMode,
java.lang.String addEventName,
java.lang.String delEventName)
Creates a new instance of a FastXMLFragmentContent
|
FastXMLFragmentContent(XMLFragment parent,
FastXMLFragmentContent<? extends XMLFragment> previous,
java.lang.String addEventName,
java.lang.String delEventName)
Creates a new instance of a FastXMLFragmentContent
|
FastXMLFragmentContent(XMLFragment parent,
FastXMLFragmentContent<? super XMLFragment> previous,
java.lang.Class<? extends XMLFragment>... classes)
Creates a new instance of a FastXMLFragmentContent
|
FastXMLFragmentContent(XMLFragment parent,
FastXMLFragmentContent<? super XMLFragment> previous,
java.lang.String addEventName,
java.lang.String delEventName,
java.lang.Class<? extends XMLFragment>... classes)
Creates a new instance of a FastXMLFragmentContent
|
Modifier and Type | Method and Description |
---|---|
void |
add(E newChild)
Adds the new child, Can only be called when newChild is not already a child of
this node's parent.
|
void |
add(E newChild,
int position)
adds a new child to this surrounding container at the indicated
position.
|
void |
addIndex(E newChild)
This method adds a new child to the container but does not
adds the child to the instance document.
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property.
|
boolean |
childExists(E newChild)
Checks if this container already contains the node
indicated in the
newChild parameter. |
void |
clear()
Clear all content.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.util.Iterator<E> |
getIterator()
Gets the iterator.
|
java.util.Iterator<E> |
getIterator(java.lang.Class<? extends XMLFragment> clazz)
Gets the iterator.
|
FastXMLFragmentContent<? extends XMLFragment> |
getPrevious()
Obtains the previous FastXMLFragmentContent to this one.
|
int |
hashCode()
Hash code.
|
boolean |
remove(E child)
Removes the.
|
boolean |
removeIndex(E child)
Removes the.
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property.
|
int |
size()
Size.
|
int |
size(java.lang.Class<? extends XMLFragment> clazz)
Size.
|
java.lang.String |
toString()
To string.
|
@SafeVarargs public FastXMLFragmentContent(XMLFragment parent, FastXMLFragmentContent<? super XMLFragment> previous, java.lang.Class<? extends XMLFragment>... classes)
parent
- the parentprevious
- null if this is the first containerclasses
- this parameter allows this class to prepare internal accelerator
classes to return the number of elements of specific sub classes. It is
used in the XBRLExtendedLink because children might contain an unordered
number of XBRLLocator, XBRLResource and XBRLRelationship/XBRLArc nodes but
the implementation is generic enough to allow this class to be used for
other purposes@SafeVarargs public FastXMLFragmentContent(XMLFragment parent, FastXMLFragmentContent<? super XMLFragment> previous, java.lang.String addEventName, java.lang.String delEventName, java.lang.Class<? extends XMLFragment>... classes)
parent
- the parentprevious
- null if this is the first containeraddEventName
- the add event namedelEventName
- the del event nameclasses
- this parameter allows this class to prepare internal accelerator
classes to return the number of elements of specific sub classes. It is
used in the XBRLExtendedLink because children might contain an unordered
number of XBRLLocator, XBRLResource and XBRLRelationship/XBRLArc nodes but
the implementation is generic enough to allow this class to be used for
other purposespublic FastXMLFragmentContent(XMLFragment parent, FastXMLFragmentContent<? extends XMLFragment> previous, java.lang.String addEventName, java.lang.String delEventName)
parent
- the parentprevious
- null if this is the first containeraddEventName
- the add event namedelEventName
- the del event namepublic FastXMLFragmentContent(XMLFragment parent, FastXMLFragmentContent<? extends XMLFragment> previous)
parent
- the parentprevious
- null if this is the first containerpublic FastXMLFragmentContent(XMLFragment parent, FastXMLFragmentContent<? extends XMLFragment> previous, boolean bBatchMode)
parent
- the parentprevious
- null if this is the first containerbBatchMode
- the b batch modepublic FastXMLFragmentContent(XMLFragment parent, FastXMLFragmentContent<? extends XMLFragment> previous, boolean bBatchMode, java.lang.String addEventName, java.lang.String delEventName)
parent
- the parentprevious
- null if this is the first containerbBatchMode
- the b batch modeaddEventName
- the add event namedelEventName
- the del event namepublic FastXMLFragmentContent<? extends XMLFragment> getPrevious()
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
or listener
is null, no
exception is thrown and no action is taken.propertyName
- The name of the property to listen on. see XBRLEvent
listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
listener
was added more than once to the same event
source for the specified property, it will be notified one less time
after being removed.
If propertyName
is null, no exception is thrown and no
action is taken.
If listener
is null, or was never added for the specified
property, no exception is thrown and no action is taken.propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removedpublic void add(E newChild)
newChild
- the new childpublic void add(E newChild, int position)
newChild
- the new childposition
- the positionpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the objpublic void addIndex(E newChild)
newChild
- the new childpublic int size()
public int size(java.lang.Class<? extends XMLFragment> clazz)
clazz
- the clazzpublic boolean childExists(E newChild)
newChild
parameter.newChild
- the new childpublic void clear()
public boolean removeIndex(E child)
child
- the factpublic boolean remove(E child)
child
- the childpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<E> getIterator()
public java.util.Iterator<E> getIterator(java.lang.Class<? extends XMLFragment> clazz)
clazz
- the clazzCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa