public class YdtSingleInstanceLeafNode extends YdtNode
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(String value)
Adds the given value to the non single instance leaf node.
|
void |
addValueWithoutValidation(String value,
boolean isKeyLeaf)
Adds the given value to the non single instance leaf node.
|
String |
getValue()
Returns value of node, this is only valid for single instance leaf
node, to obtain the nature of the node protocols need to use
getYdtType().
|
Boolean |
isKeyLeaf()
Returns the flag indicating that requested leaf is key-leaf or not.
|
void |
validDuplicateEntryProcessing()
Validates requested node allowed to have duplicate entry or not.
|
addAppInfo, addChild, addValueSet, addValueSetWithoutValidation, clone, createKeyNodeList, getAppContextSwitch, getAppInfo, getClonedNode, getCollidingChild, getFirstChild, getLastChild, getModuleNameAsNameSpace, getName, getNamespace, getNextSibling, getParent, getPreviousSibling, getSchemaNodeContextInfo, getValueSet, getYangSchemaNode, getYdtContextExtendedInfo, getYdtContextOperationType, getYdtExtendedInfoType, getYdtType, setAppContextSwitch, setChild, setClonedNode, setLastChild, setNextSibling, setParent, setPreviousSibling, setYangSchemaNode, setYdtContextOperationType, validateMultiInstanceNodepublic Boolean isKeyLeaf()
public String getValue()
YdtContextgetValue in interface YdtContextgetValue in class YdtNodepublic void addValue(String value) throws YdtException
YdtNodeThis default implementation throws an exception stating that the value cannot be added. Subclasses may override this method to provide the correct behavior for their specific implementation.
addValue in class YdtNodevalue - value in a single instance nodeYdtException - when fails to add value for non single instance
leaf nodepublic void addValueWithoutValidation(String value, boolean isKeyLeaf)
YdtNodeThis default implementation throws an exception stating that the value cannot be added. Subclasses may override this method to provide the correct behavior for their specific implementation. This will be applicable in case of call from SBI so no need to validate the value.
addValueWithoutValidation in class YdtNodevalue - value in a single instance leaf nodeisKeyLeaf - true, for key leaf; false non key leafpublic void validDuplicateEntryProcessing()
throws YdtException
YdtNodeThis default implementation throws an exception stating that the duplicate entry found. Subclasses may override this method to provide the correct behavior for their specific implementation.
YdtException - when fails to process valid duplicate entry in YDT