Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all data, attributes and child blocks.
|
void |
clearData()
Sets empty block data.
|
XBTBlock |
createNewChild(int childIndex)
This method instantiates new child node.
|
void |
removeAttribute(int attributeIndex)
Removes attribute on given position.
|
void |
removeChild(int childIndex)
Removes child on given position.
|
void |
setAttributeAt(XBAttribute attribute,
int attributeIndex)
Sets attribute of given index.
|
void |
setAttributes(XBAttribute[] attributes)
Sets array of attributes in order of appearance.
|
void |
setAttributesCount(int count)
Sets count of attributes.
|
void |
setBlockType(XBBlockType blockType)
Sets block type.
|
void |
setData(java.io.InputStream data)
Sets block data.
|
void |
setData(XBBlockData data)
Sets block data.
|
void |
setDataMode(XBBlockDataMode dataMode)
Sets data mode.
|
void |
setChildAt(XBTBlock block,
int childIndex)
Sets children of given index.
|
void |
setChildren(XBTBlock[] blocks)
Sets array of all children.
|
void |
setChildrenCount(int count)
Gets count of children.
|
void |
setParent(XBTBlock parent)
Sets parent block.
|
void |
setTerminationMode(XBBlockTerminationMode terminationMode)
Sets terminated mode.
|
getAttributeAt, getAttributes, getAttributesCount, getBlockData, getBlockIndex, getBlockSize, getBlockType, getData, getDataMode, getDataSize, getChildAt, getChildren, getChildrenCount, getParent, getTerminationMode
void setParent(XBTBlock parent)
parent
- blockvoid setTerminationMode(XBBlockTerminationMode terminationMode)
terminationMode
- terminated mode flagvoid setDataMode(XBBlockDataMode dataMode)
dataMode
- data modevoid setAttributes(XBAttribute[] attributes)
attributes
- array of attributesvoid setAttributeAt(XBAttribute attribute, int attributeIndex)
attribute
- attribute valueattributeIndex
- attribute indexvoid setAttributesCount(int count)
count
- count of attributesvoid removeAttribute(int attributeIndex)
attributeIndex
- void setBlockType(XBBlockType blockType)
blockType
- block typevoid setChildren(XBTBlock[] blocks)
blocks
- array of blocksXBTBlock createNewChild(int childIndex)
childIndex
- child indexvoid setChildAt(XBTBlock block, int childIndex)
block
- child blockchildIndex
- child indexvoid setChildrenCount(int count)
count
- count of child blocksvoid removeChild(int childIndex)
childIndex
- void setData(java.io.InputStream data)
data
- data streamvoid setData(XBBlockData data)
data
- data streamvoid clearData()
void clear()