public final class RepeatingGroup extends Object implements Iterable<RepeatingGroup.Entry>
Modifier and Type | Class and Description |
---|---|
static class |
RepeatingGroup.Entry
Class for work with entry data.
|
Constructor and Description |
---|
RepeatingGroup() |
Modifier and Type | Method and Description |
---|---|
RepeatingGroup.Entry |
addEntry()
Adds entry to the end of group
|
RepeatingGroup.Entry |
addEntry(int index)
Adds entry to the specific index at group.
|
void |
addEntry(int index,
RepeatingGroup.Entry entry)
Adds passed entry to the specific index at group.
|
RepeatingGroup.Entry |
copyEntry(RepeatingGroup.Entry src)
Copy entry to end of repeating group
|
RepeatingGroup.Entry |
copyEntry(RepeatingGroup.Entry src,
int index)
Copy entry at specified index of repeating group
|
void |
copyEntry(RepeatingGroup.Entry src,
RepeatingGroup.Entry dst)
Copy entry to end of repeating group
|
void |
copyEntry(RepeatingGroup.Entry src,
RepeatingGroup.Entry dst,
int index)
Copy entry at specified index of repeating group
|
RepeatingGroup.Entry |
getEntry(int index)
Returns entry from specific instance.
|
void |
getEntry(int index,
RepeatingGroup.Entry entry)
Fills passed entry instance by entry data.
|
int |
getLeadingTag()
Returns group's leading tag
|
int |
getLeadingTagValue()
Returns value of group's leading tag.
|
int |
getSize()
Returns number of entries in group.
|
boolean |
isValidationTurnOn()
Returns true if validation turn of for this group
|
Iterator<RepeatingGroup.Entry> |
iterator()
Returns iterator by entries of repeating group
|
void |
release()
Returns group to pool if group was got by RepeatingGroupPool.getRepeatingGroup().
|
void |
remove()
Removes current group
|
void |
removeEntry(int index)
Removes passed entry from the specific index.
|
void |
removeEntry(RepeatingGroup.Entry entry)
Removes passed entry from group
|
void |
removeEntryAndClean(int index)
Removes passed entry from the specific index.
|
void |
removeEntryAndClean(RepeatingGroup.Entry entry)
Removes passed entry from group and clean message - remove group instance if it is empty
|
void |
setValidation(boolean validation)
Turn on/off validation
|
byte[] |
toByteArray() |
String |
toPrintableString() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public void removeEntry(RepeatingGroup.Entry entry)
entry
- entry for removepublic void removeEntryAndClean(RepeatingGroup.Entry entry)
entry
- entry for removepublic boolean isValidationTurnOn()
public void setValidation(boolean validation)
validation
- validationpublic void release()
RepeatingGroup addRepeatingGroup()
method or RepeatingGroup getRepeatingGroup()
, then it does nothing.public RepeatingGroup.Entry addEntry()
public RepeatingGroup.Entry addEntry(int index)
index
- number of entry in group. In other words, if adds first entry, then index equals to 0, if adds second entry, then index equals to 1 and so on.public void addEntry(int index, RepeatingGroup.Entry entry)
index
- number of entry in group. In other words, if adds first entry, then index equals to 0, if adds second entry, then index equals to 1 and so on.entry
- entry for addpublic void remove()
public void removeEntry(int index)
index
- number of entry in group. In other words, if adds first entry, then index equals to 0, if adds second entry, then index equals to 1 and so on.public void removeEntryAndClean(int index)
index
- number of entry in group. In other words, if adds first entry, then index equals to 0, if adds second entry, then index equals to 1 and so on.public int getLeadingTagValue()
public int getSize()
public void getEntry(int index, RepeatingGroup.Entry entry)
index
- number of entry in group. In other words, if adds first entry, then index equals to 0, if adds second entry, then index equals to 1 and so on.entry
- entry for fill.public RepeatingGroup.Entry getEntry(int index)
index
- number of entry in group. In other words, if adds first entry, then index equals to 0, if adds second entry, then index equals to 1 and so on.public int getLeadingTag()
public Iterator<RepeatingGroup.Entry> iterator()
iterator
in interface Iterable<RepeatingGroup.Entry>
public String toPrintableString()
public byte[] toByteArray()
public RepeatingGroup.Entry copyEntry(RepeatingGroup.Entry src)
src
- entry for copypublic RepeatingGroup.Entry copyEntry(RepeatingGroup.Entry src, int index)
src
- entry for copyindex
- index at which the source entry is to be copiedpublic void copyEntry(RepeatingGroup.Entry src, RepeatingGroup.Entry dst)
src
- entry for copydst
- entry for hold copied entrypublic void copyEntry(RepeatingGroup.Entry src, RepeatingGroup.Entry dst, int index)
src
- entry for copydst
- entry for hold copied entryindex
- index at which the source entry is to be copiedCopyright © 2000–2022 EPAM Systems. All rights reserved.