public class XBDBlockDecl extends java.lang.Object implements XBBlockDecl, XBTSerializable
| Constructor and Description |
|---|
XBDBlockDecl()
Creates a new instance of XBBlockDecl
|
XBDBlockDecl(XBBlockDef blockDef) |
XBDBlockDecl(XBBlockDef blockDef,
int revision) |
XBDBlockDecl(XBBlockDef blockDef,
UBNatural revision) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
TODO: Include definition
|
XBBlockDef |
getBlockDef() |
int |
getBlocksLimit() |
XBTBlock |
getParameter(XBTBlock block,
int index)
Get n-th parameter of the given block.
|
int |
getParametersCount(XBTBlock block)
Get count of parameters defined in given block.
|
XBParamPosition |
getParamPosition(XBTConversible source,
int index)
Get n-th parameter of the given block.
|
int |
getRevision() |
XBTSerialMethod |
getXBTSerializationMethod()
Serialization method serialization from and to XBUP level 0 protocol.
|
int |
hashCode() |
boolean |
matchType(XBBlockType type) |
void |
setBlockDef(XBBlockDef blockDef) |
void |
setBlocksLimit(int blocksLimit) |
void |
setParameter(XBTEditableBlock block,
int index,
XBTBlock parameter)
Set n-th parameter of the given block.
|
void |
setRevision(int revision) |
public XBDBlockDecl()
public XBDBlockDecl(XBBlockDef blockDef, UBNatural revision)
public XBDBlockDecl(XBBlockDef blockDef, int revision)
public XBDBlockDecl(XBBlockDef blockDef)
public boolean matchType(XBBlockType type)
public int getRevision()
getRevision in interface XBBlockDeclpublic void setRevision(int revision)
revision - the revision to setpublic int getBlocksLimit()
public void setBlocksLimit(int blocksLimit)
blocksLimit - the blocksLimit to setpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic XBParamPosition getParamPosition(XBTConversible source, int index)
source - block to get parameter fromindex - index of the requested parameterpublic XBTBlock getParameter(XBTBlock block, int index)
block - block to get parameter fromindex - index of the requested parameterpublic void setParameter(XBTEditableBlock block, int index, XBTBlock parameter)
block - block to modify parameter inindex - index of parameter to modifyparameter - parameter contentpublic int getParametersCount(XBTBlock block)
block - block to get count of parameters frompublic XBBlockDef getBlockDef()
public void setBlockDef(XBBlockDef blockDef)
blockDef - the blockDef to setpublic XBTSerialMethod getXBTSerializationMethod()
XBTSerializablegetXBTSerializationMethod in interface XBTSerializable