public class NavuChoice extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
containsCase(MaapiSchemas.CSCase cAse)
Checks if a given case node is a case of this choice.
|
boolean |
containsChoice(MaapiSchemas.CSChoice choice)
Checks if a choice is contained in a case of this choice.
|
boolean |
containsNode(MaapiSchemas.CSNode node)
Checks if a node is contained directly within this choice.
|
Set<Map.Entry<MaapiSchemas.CSNode,MaapiSchemas.CSCase>> |
entrySet()
Deprecated.
|
MaapiSchemas.CSCase |
getCase(MaapiSchemas.CSChoice choice)
Returns the case in which a choice is contained within.
|
MaapiSchemas.CSCase |
getCase(MaapiSchemas.CSNode node)
Returns the case in which a node is contained within.
|
List<MaapiSchemas.CSChoice> |
getCaseChoices(String casename) |
List<MaapiSchemas.CSNode> |
getCaseNodes(String casename) |
String |
getName()
Returns the choice name according to the YANG model.
|
MaapiSchemas.CSCase |
getPreviousCase()
Returns the previous case of the choice.
|
MaapiSchemas.CSCase |
getSelectedCase()
Returns the current case.
|
boolean |
isCurrentCase(MaapiSchemas.CSCase cAse)
Checks if a given case is the currently selected case.
|
boolean |
isEmpty()
Checks if it is an empty choice.
|
boolean |
isOper() |
boolean |
isWritable()
Checks if the node is writable.
|
boolean |
isWritableAll()
Checks if the node is writable for all data.
|
MaapiSchemas.CSCase |
put(MaapiSchemas.CSNode node,
MaapiSchemas.CSCase cAse)
Adds node-case relation to the choice.
|
void |
putAll(Map<? extends MaapiSchemas.CSNode,? extends MaapiSchemas.CSCase> m)
Adds a node-case map to the choice.
|
int |
size()
The number of cases contained in the choice.
|
boolean |
update() |
Collection<MaapiSchemas.CSCase> |
values()
Return a list of cases contained within this choice.
|
public boolean containsNode(MaapiSchemas.CSNode node)
node
- - the schema node to check for.public boolean containsChoice(MaapiSchemas.CSChoice choice)
choice
- - the schema choice to check for.public boolean containsCase(MaapiSchemas.CSCase cAse)
cAse
- the case to check.@Deprecated public Set<Map.Entry<MaapiSchemas.CSNode,MaapiSchemas.CSCase>> entrySet()
public List<MaapiSchemas.CSNode> getCaseNodes(String casename)
casename
- public List<MaapiSchemas.CSChoice> getCaseChoices(String casename)
casename
- public MaapiSchemas.CSCase getCase(MaapiSchemas.CSNode node)
node
- the node to get the case for.public MaapiSchemas.CSCase getCase(MaapiSchemas.CSChoice choice)
choice
- the choice to get the case for.public String getName()
public MaapiSchemas.CSCase getPreviousCase()
public MaapiSchemas.CSCase getSelectedCase()
public boolean isCurrentCase(MaapiSchemas.CSCase cAse)
cAse
- the case to check against.public boolean isEmpty()
public MaapiSchemas.CSCase put(MaapiSchemas.CSNode node, MaapiSchemas.CSCase cAse)
node
- cAse
- public void putAll(Map<? extends MaapiSchemas.CSNode,? extends MaapiSchemas.CSCase> m)
m
- a node-case map.public int size()
public Collection<MaapiSchemas.CSCase> values()
public boolean update()
public boolean isOper()
public boolean isWritable()
public boolean isWritableAll()