public class Leaf extends Element
YangElement classes generated from the JNC pyang plugin may instantiate this class for leaf values.
YangElement,
Serialized Formchildren, CREATE_MERGE, CREATE_MERGE_MULTI, CREATE_NEW, defaultPrefixes, name, namespace, NETCONF_NAMESPACE, OP_CREATE, OP_DELETE, OP_MERGE, OP_REPLACE, OPERATION, parent, prefixes, value| Constructor and Description |
|---|
Leaf(java.lang.String ns,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
Leaf |
clone()
Clones the tree, making an exact copy.
|
protected void |
encode(Transport out,
boolean newline_at_end,
Capabilities capas)
Encode to XML and send it to the provided stream.
|
boolean |
isKey() |
addAttr, addChild, cloneAttrs, cloneShallow, cloneValue, compare, create, create, create, createChild, createChild, createChild, createPath, createPath, createPath, createPath, createPath, createPath, delete, delete, deleteChild, deleteValue, deleteValue, encode, encode, encode, equals, exists, get, getAttr, getAttrs, getAttrValue, getChild, getChild, getChildren, getChildren, getContextPrefixMap, getElementPath, getElementPath, getFirst, getLast, getParent, getRootElement, getValue, getValue, getValueOfChild, getValues, getValuesAsSet, hasChildren, hashCode, insertChild, insertChild, insertChild, insertFirst, insertLast, iterator, iterator, lookupContextPrefix, markCreate, markCreate, markDelete, markDelete, markMerge, markMerge, markReplace, markReplace, merge, nsToPrefix, position, prefix, qualifiedName, readFile, removeAttr, removeAttr, removeDefaultPrefix, removeMark, removeMarks, removePrefix, setAttr, setAttr, setDebugLevel, setDefaultPrefix, setPrefix, setPrefix, setPrefix, setValue, setValue, tagpath, toString, toXMLString, writeFileprotected void encode(Transport out, boolean newline_at_end, Capabilities capas) throws JNCException
ElementThe newline_at_end argument controls whether a newline char is permitted at the end or not.
encode in class Elementout - Stream to send the encoded version of this element to.newline_at_end - If 'true' a newline is printed at the end.JNCException - If a YangElement encode implementation fails.public Leaf clone()
Elementpublic boolean isKey()