Package org.exbin.xbup.parser_tree
Class XBBlockToXBTBlock
- java.lang.Object
-
- org.exbin.xbup.parser_tree.XBBlockToXBTBlock
-
- All Implemented Interfaces:
org.exbin.xbup.core.block.XBTBlock
,org.exbin.xbup.core.block.XBTEditableBlock
public class XBBlockToXBTBlock extends java.lang.Object implements org.exbin.xbup.core.block.XBTEditableBlock
Conversion from level 0 block to level 1 block
-
-
Constructor Summary
Constructors Constructor Description XBBlockToXBTBlock(org.exbin.xbup.core.block.XBBlock block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
org.exbin.xbup.core.block.XBTBlock
createNewChild(int childIndex)
org.exbin.xbup.core.parser.token.XBAttribute
getAttributeAt(int attributeIndex)
org.exbin.xbup.core.parser.token.XBAttribute[]
getAttributes()
int
getAttributesCount()
org.exbin.xbup.core.block.XBBlock
getBlock()
org.exbin.auxiliary.paged_data.BinaryData
getBlockData()
org.exbin.xbup.core.block.XBBlockType
getBlockType()
java.io.InputStream
getData()
org.exbin.xbup.core.block.XBBlockDataMode
getDataMode()
org.exbin.xbup.core.block.XBTBlock
getChildAt(int childIndex)
org.exbin.xbup.core.block.XBTBlock[]
getChildren()
int
getChildrenCount()
java.util.Optional<org.exbin.xbup.core.block.XBTBlock>
getParentBlock()
org.exbin.xbup.core.block.XBBlockTerminationMode
getTerminationMode()
void
removeAttribute(int attributeIndex)
void
removeChild(int childIndex)
void
setAttributeAt(org.exbin.xbup.core.parser.token.XBAttribute attribute, int attributeIndex)
void
setAttributes(org.exbin.xbup.core.parser.token.XBAttribute[] attributes)
void
setAttributesCount(int count)
void
setBlockType(org.exbin.xbup.core.block.XBBlockType blockType)
void
setData(java.io.InputStream data)
void
setData(org.exbin.auxiliary.paged_data.BinaryData data)
void
setDataMode(org.exbin.xbup.core.block.XBBlockDataMode dataMode)
void
setChildAt(org.exbin.xbup.core.block.XBTBlock child, int childIndex)
void
setChildren(org.exbin.xbup.core.block.XBTBlock[] blocks)
void
setChildrenCount(int count)
void
setParent(org.exbin.xbup.core.block.XBTBlock parent)
void
setTerminationMode(org.exbin.xbup.core.block.XBBlockTerminationMode terminationMode)
-
-
-
Method Detail
-
getBlock
public org.exbin.xbup.core.block.XBBlock getBlock()
-
getParentBlock
@Nonnull public java.util.Optional<org.exbin.xbup.core.block.XBTBlock> getParentBlock()
- Specified by:
getParentBlock
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getDataMode
public org.exbin.xbup.core.block.XBBlockDataMode getDataMode()
- Specified by:
getDataMode
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getTerminationMode
public org.exbin.xbup.core.block.XBBlockTerminationMode getTerminationMode()
- Specified by:
getTerminationMode
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getBlockType
public org.exbin.xbup.core.block.XBBlockType getBlockType()
- Specified by:
getBlockType
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
setBlockType
public void setBlockType(org.exbin.xbup.core.block.XBBlockType blockType)
- Specified by:
setBlockType
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
getAttributes
public org.exbin.xbup.core.parser.token.XBAttribute[] getAttributes()
- Specified by:
getAttributes
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getAttributeAt
public org.exbin.xbup.core.parser.token.XBAttribute getAttributeAt(int attributeIndex)
- Specified by:
getAttributeAt
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getAttributesCount
public int getAttributesCount()
- Specified by:
getAttributesCount
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getChildren
public org.exbin.xbup.core.block.XBTBlock[] getChildren()
- Specified by:
getChildren
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getChildAt
public org.exbin.xbup.core.block.XBTBlock getChildAt(int childIndex)
- Specified by:
getChildAt
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getChildrenCount
public int getChildrenCount()
- Specified by:
getChildrenCount
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getData
@Nonnull public java.io.InputStream getData()
- Specified by:
getData
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
getBlockData
@Nonnull public org.exbin.auxiliary.paged_data.BinaryData getBlockData()
- Specified by:
getBlockData
in interfaceorg.exbin.xbup.core.block.XBTBlock
-
setParent
public void setParent(org.exbin.xbup.core.block.XBTBlock parent)
- Specified by:
setParent
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setTerminationMode
public void setTerminationMode(org.exbin.xbup.core.block.XBBlockTerminationMode terminationMode)
- Specified by:
setTerminationMode
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setDataMode
public void setDataMode(org.exbin.xbup.core.block.XBBlockDataMode dataMode)
- Specified by:
setDataMode
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setAttributes
public void setAttributes(org.exbin.xbup.core.parser.token.XBAttribute[] attributes)
- Specified by:
setAttributes
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setAttributeAt
public void setAttributeAt(org.exbin.xbup.core.parser.token.XBAttribute attribute, int attributeIndex)
- Specified by:
setAttributeAt
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setAttributesCount
public void setAttributesCount(int count)
- Specified by:
setAttributesCount
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
removeAttribute
public void removeAttribute(int attributeIndex)
- Specified by:
removeAttribute
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setChildren
public void setChildren(org.exbin.xbup.core.block.XBTBlock[] blocks)
- Specified by:
setChildren
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setChildAt
public void setChildAt(org.exbin.xbup.core.block.XBTBlock child, int childIndex)
- Specified by:
setChildAt
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setChildrenCount
public void setChildrenCount(int count)
- Specified by:
setChildrenCount
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
removeChild
public void removeChild(int childIndex)
- Specified by:
removeChild
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
setData
public void setData(java.io.InputStream data) throws java.io.IOException
- Specified by:
setData
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
- Throws:
java.io.IOException
-
setData
public void setData(org.exbin.auxiliary.paged_data.BinaryData data)
- Specified by:
setData
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
createNewChild
public org.exbin.xbup.core.block.XBTBlock createNewChild(int childIndex)
- Specified by:
createNewChild
in interfaceorg.exbin.xbup.core.block.XBTEditableBlock
-
-