| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
BlockImpl(nu.xom.Node node,
IPlugin plugin,
Map<String,Object> map)
Creates a block with node, plugin and mapping.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
protected boolean changed
protected nu.xom.Node node
protected IPlugin plugin
public boolean isValid()
IBlockhasNode) or plugin (
hasPlugin). They cannot be both 'null'.public boolean hasChildren()
IBlockhasChildren in interface IBlockpublic boolean isChanged()
IBlockpublic void setChanged(boolean changed)
IBlocksetChanged in interface IBlockchanged - The new status.public boolean hasNode()
IBlockpublic nu.xom.Node getNode()
IBlockpublic void setNode(nu.xom.Node node)
IBlockpublic boolean hasPlugin()
IBlockpublic IPlugin getPlugin()
IBlockpublic void setPlugin(IPlugin plugin)
IBlockpublic boolean hasMap()
IBlockpublic Map<String,Object> getMap()
IBlockpublic void setMap(Map<String,Object> map)
IBlockCopyright © 2016. All rights reserved.