|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.binding.def.NestedCollection.CollectionLoad
org.jibx.binding.def.NestedCollection.IteratorLoad
static class NestedCollection.IteratorLoad
Collection item load strategy for collection with items accessed by iterator or enumeration.
Field Summary | |
---|---|
private ClassItem |
m_iterMethod
Method used to get iterator for collection. |
private java.lang.String |
m_moreName
Fully qualified method name to test if more in iteration. |
private java.lang.String |
m_nextName
Fully qualified method name to get next item in iteration. |
Constructor Summary | |
---|---|
NestedCollection.IteratorLoad(ClassItem iter,
java.lang.String more,
java.lang.String next)
Constructor. |
Method Summary | |
---|---|
protected void |
genLoadDone(ContextMethodBuilder mb)
Generate code to clean up after loading items from collection. |
protected void |
genLoadInit(ContextMethodBuilder mb)
Generate code to initialize collection for loading items. |
protected BranchWrapper |
genLoadItem(ContextMethodBuilder mb)
Generate code to load next item from collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final ClassItem m_iterMethod
private final java.lang.String m_moreName
private final java.lang.String m_nextName
Constructor Detail |
---|
NestedCollection.IteratorLoad(ClassItem iter, java.lang.String more, java.lang.String next)
iter
- method to get iterator or enumerator from collectionmore
- fully qualified method name to test if more in iterationnext
- fully qualified method name to get next item in iterationMethod Detail |
---|
protected void genLoadInit(ContextMethodBuilder mb) throws JiBXException
NestedCollection.CollectionLoad
NestedCollection.CollectionLoad.genLoadItem(org.jibx.binding.classes.ContextMethodBuilder)
method. The base class implementation does nothing.
genLoadInit
in class NestedCollection.CollectionLoad
mb
- method builder
JiBXException
- if error in configurationprotected BranchWrapper genLoadItem(ContextMethodBuilder mb) throws JiBXException
NestedCollection.CollectionLoad
NestedCollection.CollectionLoad.genLoadInit(org.jibx.binding.classes.ContextMethodBuilder)
method must be called before
calling this method, and the NestedCollection.CollectionLoad.genLoadDone(org.jibx.binding.classes.ContextMethodBuilder)
method must be
called after the last call to this method. This method must be
overridden by each subclass.
genLoadItem
in class NestedCollection.CollectionLoad
mb
- method builder
JiBXException
- if error in configurationprotected void genLoadDone(ContextMethodBuilder mb) throws JiBXException
NestedCollection.CollectionLoad
NestedCollection.CollectionLoad.genLoadItem(org.jibx.binding.classes.ContextMethodBuilder)
. The base class
implementation does nothing.
genLoadDone
in class NestedCollection.CollectionLoad
mb
- method builder
JiBXException
- if error in configuration
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |