|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.context.core.BlockImpl
public class BlockImpl
Default block implementation.
| Field Summary | |
|---|---|
protected boolean |
changed
Hold if changes have been made to the block. |
protected Map<String,Object> |
map
The mapping of objects. |
protected nu.xom.Node |
node
The block node. |
protected IPlugin |
plugin
The plugin node. |
| Constructor Summary | |
|---|---|
BlockImpl(nu.xom.Node node,
IPlugin plugin,
Map<String,Object> map)
Creates a block with node, plugin and mapping. |
|
| Method Summary | |
|---|---|
Map<String,Object> |
getMap()
Mapping of elements related to the block. |
nu.xom.Node |
getNode()
Returns the specification node object related to the block. |
IPlugin |
getPlugin()
The plugin related to the block. |
boolean |
hasChildren()
Indicates if the block node has children. |
boolean |
hasMap()
Indicates if block has a mapping or not. |
boolean |
hasNode()
Indicates if block has been created form a specification or not. |
boolean |
hasPlugin()
Indicates if block has a plugin or not. |
boolean |
isChanged()
Indicates if a given block has changed. |
boolean |
isValid()
A valid block has node ( hasNode) or plugin (
hasPlugin). |
void |
setChanged(boolean changed)
Sets the changed status. |
void |
setMap(Map<String,Object> map)
Sets the block mapping of object. |
void |
setNode(nu.xom.Node node)
Change block node. |
void |
setPlugin(IPlugin plugin)
Sets the block plugin. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean changed
protected nu.xom.Node node
protected IPlugin plugin
protected Map<String,Object> map
| Constructor Detail |
|---|
public BlockImpl(nu.xom.Node node,
IPlugin plugin,
Map<String,Object> map)
node - The node.plugin - The plugin.map - The mapping.| Method Detail |
|---|
public boolean isValid()
IBlockhasNode) or plugin (
hasPlugin). They cannot be both 'null'.
isValid in interface IBlockpublic boolean hasChildren()
IBlock
hasChildren in interface IBlockpublic boolean isChanged()
IBlock
isChanged in interface IBlockpublic void setChanged(boolean changed)
IBlock
setChanged in interface IBlockchanged - The new status.public boolean hasNode()
IBlock
hasNode in interface IBlockpublic nu.xom.Node getNode()
IBlock
getNode in interface IBlockpublic void setNode(nu.xom.Node node)
IBlock
setNode in interface IBlocknode - The new node.public boolean hasPlugin()
IBlock
hasPlugin in interface IBlockpublic IPlugin getPlugin()
IBlock
getPlugin in interface IBlockpublic void setPlugin(IPlugin plugin)
IBlock
setPlugin in interface IBlockplugin - The new plugin.public boolean hasMap()
IBlock
hasMap in interface IBlockpublic Map<String,Object> getMap()
IBlock
getMap in interface IBlockpublic void setMap(Map<String,Object> map)
IBlock
setMap in interface IBlockmap - The new mapping.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||