Constructor and Description |
---|
XBTDefaultBlock(XBBlockTerminationMode terminationMode,
XBBlockData data) |
XBTDefaultBlock(XBBlockTerminationMode terminationMode,
XBBlockType blockType,
XBAttribute[] attributes,
XBTBlock[] children) |
XBTDefaultBlock(XBTBlock parent,
XBBlockTerminationMode terminationMode,
XBBlockData data) |
XBTDefaultBlock(XBTBlock parent,
XBBlockTerminationMode terminationMode,
XBBlockType blockType,
XBAttribute[] attributes,
XBTBlock[] children) |
Modifier and Type | Method and Description |
---|---|
XBAttribute |
getAttributeAt(int attributeIndex)
Gets attribute of given index.
|
XBAttribute[] |
getAttributes()
Gets array of attributes in order of appearance.
|
int |
getAttributesCount()
Gets count of attributes.
|
XBBlockData |
getBlockData()
Gets block data.
|
int |
getBlockIndex()
Gets block position in tree in depth-first scan.
|
long |
getBlockSize()
Gets block size.
|
XBBlockType |
getBlockType()
Gets block type.
|
java.io.InputStream |
getData()
Gets block data.
|
XBBlockDataMode |
getDataMode()
Returns whether this block is data block.
|
long |
getDataSize()
Gets data size.
|
XBTBlock |
getChildAt(int childIndex)
Gets children of given index.
|
XBTBlock[] |
getChildren()
Gets array of all children.
|
int |
getChildrenCount()
Gets count of children blocks.
|
XBTBlock |
getParent()
Gets parent block or null if block has no parent.
|
XBBlockTerminationMode |
getTerminationMode()
Returns whether this block is using sequence of children ended with
termination block.
|
void |
setParent(XBTBlock parent) |
public XBTDefaultBlock(XBBlockTerminationMode terminationMode, XBBlockType blockType, XBAttribute[] attributes, XBTBlock[] children)
public XBTDefaultBlock(XBTBlock parent, XBBlockTerminationMode terminationMode, XBBlockType blockType, XBAttribute[] attributes, XBTBlock[] children)
public XBTDefaultBlock(XBBlockTerminationMode terminationMode, XBBlockData data)
public XBTDefaultBlock(XBTBlock parent, XBBlockTerminationMode terminationMode, XBBlockData data)
public XBTBlock getParent()
XBTBlock
public void setParent(XBTBlock parent)
public XBBlockDataMode getDataMode()
XBTBlock
getDataMode
in interface XBTBlock
public XBBlockTerminationMode getTerminationMode()
XBTBlock
getTerminationMode
in interface XBTBlock
public XBBlockType getBlockType()
XBTBlock
getBlockType
in interface XBTBlock
public XBAttribute[] getAttributes()
XBTBlock
getAttributes
in interface XBTBlock
public XBAttribute getAttributeAt(int attributeIndex)
XBTBlock
getAttributeAt
in interface XBTBlock
attributeIndex
- index of attributepublic int getAttributesCount()
XBTBlock
getAttributesCount
in interface XBTBlock
public XBTBlock[] getChildren()
XBTBlock
getChildren
in interface XBTBlock
public XBTBlock getChildAt(int childIndex)
XBTBlock
getChildAt
in interface XBTBlock
childIndex
- index of child blockpublic int getChildrenCount()
XBTBlock
getChildrenCount
in interface XBTBlock
public java.io.InputStream getData()
XBTBlock
public XBBlockData getBlockData()
XBTBlock
getBlockData
in interface XBTBlock
public long getDataSize()
XBTBlock
getDataSize
in interface XBTBlock
public long getBlockSize()
XBTBlock
getBlockSize
in interface XBTBlock
public int getBlockIndex()
XBTBlock
getBlockIndex
in interface XBTBlock