public class MutableMetaNode<T extends MutableMetaNode<T>> extends MetaNode<T>
A mutable annotation node equipped with observers.
MetaMorph.Companion
Modifier and Type | Field and Description |
---|---|
T |
parent |
DEFAULT_META_NAME, name, nodes, values
BOOLEAN_TARGET, NUMBER_TARGET, STRING_TARGET, TIME_TARGET, VALUE_TARGET
META_TARGET
Constructor and Description |
---|
MutableMetaNode() |
MutableMetaNode() |
MutableMetaNode() |
Modifier and Type | Method and Description |
---|---|
void |
attachNode()
Add new node to the current list of nodes with the given name. Replace its parent with this.
|
void |
attachNodeItem()
Attach node item without transformation. Each node's parent is changed to this
|
T |
createChildNode()
Create but do not attach new child node
|
Name |
getFullName()
Full name including all ncestors
|
T |
getParent() |
Name |
getQualifiedName()
Parent aware name of this node including query string
|
void |
notifyNodeChanged()
Notify all observers that element is changed
|
void |
notifyValueChanged()
Notify all observers that value is changed
|
T |
putNode()
Add a copy of given meta to the node list with given name. Create a new one if it does not exist
|
T |
putNode()
putNode(element,true)
|
T |
putNode()
Same as
putNode(Meta) , but also renames new node |
T |
putValue()
Add new value to the value item with the given name. Create new one if it does not exist. null arguments are ignored (Value.NULL is still could be used)
|
T |
putValue()
setValue(name, value, true)
|
T |
putValue()
Adds new value to the list of values with given name. Ignores null value. Does not replace old Value!
|
T |
putValues() |
T |
putValues() |
T |
removeNode()
Remove node list at given path (including descending tree) and notify listener
|
void |
removeValue()
Remove value with given path and notify listener
|
void |
replaceChildNode()
Replace or remove given direct descendant child node if it is present and notify listeners.
|
T |
self()
Return type checked state of this node
|
T |
setName()
Rename this node
|
T |
setNode()
setNode.
|
T |
setNode()
Set or replace current node or node list with this name
|
T |
setNode()
setNode(name,elements,true)
|
T |
setNode()
Добавляет новый элемент, стирая старый
|
void |
setNodeItem()
Replaces node with given path with given item or creates new one
|
T |
setValue()
Replace a value item with given name. If value is null, remove corresponding value from node.
|
T |
setValue()
setValue(name, value, true)
|
T |
setValue() |
void |
setValueItem() |
cloneNode, getChildValue, getHead, getMeta, getMetaList, getMetaList, getName, getNodeNames, getValueNames, isEmpty, isValidElementName, optChildNodeItem, optHead, optMeta, optValue, optValue
buildEmpty, defaultChainTarget, defaultTarget, empty, equals, equalsIgnoreName, getBuilder, getMetaList, getMetaOrEmpty, getNodeNames, getNodeNames, getSealed, getValueNames, getValueNames, hashCode, indexOf, isEmpty, optMeta, toMeta, toString
defaultChainTarget, defaultTarget, listContent, provide, provide, provide
getName, isAnonimous, nameOf
buildFrom, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getInt, getInt, getInt, getString, getString, getString, getStringArray, getStringArray, getStringArray, getValue, getValue, getValue, hasValue, optBoolean, optNumber, optString, optTime, optValue
public MutableMetaNode()
public MutableMetaNode()
public MutableMetaNode()
public Name getQualifiedName()
Parent aware name of this node including query string
public Name getFullName()
Full name including all ncestors
public void notifyNodeChanged()
Notify all observers that element is changed
public void notifyValueChanged()
Notify all observers that value is changed
public T self()
Return type checked state of this node
public T getParent()
public T putNode()
Add a copy of given meta to the node list with given name. Create a new one if it does not exist
public T putNode()
putNode(element,true)
public T putNode()
Same as putNode(Meta)
, but also renames new node
public T putValue()
Add new value to the value item with the given name. Create new one if it does not exist. null arguments are ignored (Value.NULL is still could be used)
public T putValue()
setValue(name, value, true)
public T setNode()
setNode.
public T setNode()
Set or replace current node or node list with this name
public T setNode()
setNode(name,elements,true)
public T setNode()
Добавляет новый элемент, стирая старый
public T setValue()
Replace a value item with given name. If value is null, remove corresponding value from node.
public T setValue()
setValue(name, value, true)
public T setValue()
public T putValue()
Adds new value to the list of values with given name. Ignores null value. Does not replace old Value!
public T putValues()
public T putValues()
public T setName()
Rename this node
public T removeNode()
Remove node list at given path (including descending tree) and notify listener
public void replaceChildNode()
Replace or remove given direct descendant child node if it is present and notify listeners.
public void removeValue()
Remove value with given path and notify listener
public void setNodeItem()
Replaces node with given path with given item or creates new one
public void setValueItem()
public T createChildNode()
Create but do not attach new child node
public void attachNodeItem()
Attach node item without transformation. Each node's parent is changed to this
public void attachNode()
Add new node to the current list of nodes with the given name. Replace its parent with this.