public interface RefineBuilder extends DocumentedNodeBuilder
refine
Represents a local change to node introduced by uses statement
e.g. change in documentation, configuration or properties.| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultStr()
Returns string representation of default value or null, if default value was not refined.
|
int |
getLine()
Line on which element was defined.
|
Integer |
getMaxElements()
Returns number of maximum elements or NULL if maximum elements was not overriden.
|
Integer |
getMinElements()
Returns number of minimum required elements or NULL if minimum elements was not overriden.
|
String |
getModuleName()
Returns module (source) name in which refine statement was defined.
|
org.opendaylight.yangtools.yang.model.api.MustDefinition |
getMust()
Returns
must definition associated with this builder. |
String |
getTargetPathString()
Returns string representation of path to refine target, which is relative to grouping root
This string representation does not need to contain prefixes, since parent uses
element introduces elements with namespace local to parent module.
|
List<UnknownSchemaNodeBuilder> |
getUnknownNodes()
Returns list of unknown schema node builders, which are associated
with refine statement.
|
Boolean |
isConfiguration()
Get value of config statement.
|
Boolean |
isMandatory()
Returns mandatory state of node or NULL if state was not refined.
|
Boolean |
isPresence()
Returns presence state of refined container.
|
void |
setConfiguration(Boolean config)
Set config statement to the product.
|
void |
setMandatory(Boolean mandatory) |
void |
setMaxElements(Integer maxElements)
Sets number of maximum required elements.
|
void |
setMinElements(Integer minElements)
Sets number of minimum required elements.
|
void |
setMust(org.opendaylight.yangtools.yang.model.api.MustDefinition must)
Adds must definition to product of this builder.
|
void |
setPresence(Boolean presence) |
getDescription, getReference, getStatus, setDescription, setReference, setStatusBoolean isConfiguration()
void setConfiguration(Boolean config)
config - true if config true was set, false if config false was set.Boolean isMandatory()
void setMandatory(Boolean mandatory)
Boolean isPresence()
void setPresence(Boolean presence)
org.opendaylight.yangtools.yang.model.api.MustDefinition getMust()
must definition associated with this builder.must definition associated with this builder.void setMust(org.opendaylight.yangtools.yang.model.api.MustDefinition must)
must - must definition which should be associated with parent node.Integer getMinElements()
void setMinElements(Integer minElements)
minElements - number of minimum required elements.Integer getMaxElements()
void setMaxElements(Integer maxElements)
maxElements - number of maximum required elements.String getTargetPathString()
String getModuleName()
int getLine()
List<UnknownSchemaNodeBuilder> getUnknownNodes()
String getDefaultStr()
Copyright © 2014. All rights reserved.