Constructor and Description |
---|
XBDefaultBlock(XBBlockTerminationMode terminationMode,
XBAttribute[] attributes,
XBBlock[] children) |
XBDefaultBlock(XBBlockTerminationMode terminationMode,
XBBlockData data) |
XBDefaultBlock(XBBlock parent,
XBBlockTerminationMode terminationMode,
XBAttribute[] attributes,
XBBlock[] children) |
XBDefaultBlock(XBBlock parent,
XBBlockTerminationMode terminationMode,
XBBlockData data) |
Modifier and Type | Method and Description |
---|---|
XBAttribute |
getAttributeAt(int attributeIndex)
Gets attribute of given index / order.
|
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.
|
java.io.InputStream |
getData()
Gets block data.
|
XBBlockDataMode |
getDataMode()
Returns whether this block is data block.
|
long |
getDataSize()
Gets data size.
|
XBBlock |
getChildAt(int childIndex)
Gets child block of given index.
|
XBBlock[] |
getChildren()
Gets array of all children blocks.
|
int |
getChildrenCount()
Gets count of children.
|
XBBlock |
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(XBBlock parent) |
public XBDefaultBlock(XBBlockTerminationMode terminationMode, XBAttribute[] attributes, XBBlock[] children)
public XBDefaultBlock(XBBlock parent, XBBlockTerminationMode terminationMode, XBAttribute[] attributes, XBBlock[] children)
public XBDefaultBlock(XBBlockTerminationMode terminationMode, XBBlockData data)
public XBDefaultBlock(XBBlock parent, XBBlockTerminationMode terminationMode, XBBlockData data)
public XBBlock getParent()
XBBlock
public void setParent(XBBlock parent)
public XBBlockDataMode getDataMode()
XBBlock
getDataMode
in interface XBBlock
public XBBlockTerminationMode getTerminationMode()
XBBlock
getTerminationMode
in interface XBBlock
public XBAttribute[] getAttributes()
XBBlock
getAttributes
in interface XBBlock
public XBAttribute getAttributeAt(int attributeIndex)
XBBlock
getAttributeAt
in interface XBBlock
attributeIndex
- index/order of attributepublic int getAttributesCount()
XBBlock
getAttributesCount
in interface XBBlock
public XBBlock[] getChildren()
XBBlock
getChildren
in interface XBBlock
public XBBlock getChildAt(int childIndex)
XBBlock
getChildAt
in interface XBBlock
childIndex
- index of child blockpublic int getChildrenCount()
XBBlock
getChildrenCount
in interface XBBlock
public java.io.InputStream getData()
XBBlock
public XBBlockData getBlockData()
XBBlock
getBlockData
in interface XBBlock
public long getDataSize()
XBBlock
getDataSize
in interface XBBlock
public long getBlockSize()
XBBlock
getBlockSize
in interface XBBlock
public int getBlockIndex()
XBBlock
getBlockIndex
in interface XBBlock