com.vhosting.netconf.transport
Class Capability.CapabilityParams

java.lang.Object
  extended by com.vhosting.netconf.transport.Capability.CapabilityParams
Enclosing class:
Capability

public final class Capability.CapabilityParams
extends java.lang.Object

This class defines the parameters for a capability provided by the server.

Author:
Giuseppe Palmeri

Method Summary
 java.lang.String getParam(java.lang.String name)
          Get the value of a parameter.
 java.lang.String[] getYANGModuleDeviations()
          Get any YANG module deviations from the parameters.
 java.lang.String[] getYANGModuleFeatures()
          Get any YANG module features from the parameters.
 java.lang.String getYANGModuleName()
          Get any YANG module name from the parameters.
 java.lang.String getYANGModuleRevision()
          Get any YANG module revision date from the parameters.
 boolean isASpecImplCapability()
          Check if the parameters can be deduced that the capability is a specific implementation of a capability.
 boolean isNetconfCapability()
          Check to see if its features can be deduced that the capability is a Netconf capability.
 boolean isYANGImplSpecCapability()
          Check if the parameters can be deduced that the capability represents a YANG module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getYANGModuleName

public java.lang.String getYANGModuleName()
Get any YANG module name from the parameters.

Returns:
The any YANG module name; null if it not exists.

getYANGModuleRevision

public java.lang.String getYANGModuleRevision()
Get any YANG module revision date from the parameters.

Returns:
The any YANG module revision date; null if it not exists.

getYANGModuleFeatures

public java.lang.String[] getYANGModuleFeatures()
Get any YANG module features from the parameters.

Returns:
The any YANG module features; null if its not exist.

getYANGModuleDeviations

public java.lang.String[] getYANGModuleDeviations()
Get any YANG module deviations from the parameters.

Returns:
The any YANG module deviations; null if its not exist.

getParam

public java.lang.String getParam(java.lang.String name)
Get the value of a parameter.

Parameters:
name - The name of the parameter.
Returns:
The value of the paramenter; null if not exists.

isNetconfCapability

public boolean isNetconfCapability()
Check to see if its features can be deduced that the capability is a Netconf capability.

Returns:
true if the capability is a Netconf capability; false otherwise.

isYANGImplSpecCapability

public boolean isYANGImplSpecCapability()
Check if the parameters can be deduced that the capability represents a YANG module.

Returns:
true if the capability represents a YANG module; false otherwise.

isASpecImplCapability

public boolean isASpecImplCapability()
Check if the parameters can be deduced that the capability is a specific implementation of a capability.

Returns:
true if the capability is a specific implementation of a capability; false otherwise.