Package com.tailf.conf
Class ConfIPv6AndPrefixLen
Object
com.tailf.conf.ConfObject
com.tailf.conf.ConfValue
com.tailf.conf.ConfIPAndPrefixLen
com.tailf.conf.ConfIPv6AndPrefixLen
- All Implemented Interfaces:
 Serializable,Cloneable,Comparable<ConfIPv6AndPrefixLen>
public class ConfIPv6AndPrefixLen
extends ConfIPAndPrefixLen
implements Comparable<ConfIPv6AndPrefixLen>
DATA_CONTAINER - Corresponds to the YANG tailf:ipv6-address-and-prefix-length
 type.
 
  type string {
    pattern '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}'
          + '((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|'
          + '(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}'
          + '(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))'
          + '(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))';
    pattern '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|'
          + '((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?)'
          + '(/.+)';
  }
  
  The ipv6-address-and-prefix-length type represents a combination
  of an IPv6 address and a prefix length. The prefix length is given
  by the number following the slash character and must be less than
  or equal to 128.- See Also:
 
- 
Field Summary
Fields inherited from class com.tailf.conf.ConfObject
J_BINARY, J_BIT32, J_BIT64, J_BITBIG, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_EMPTY, J_ENUMERATION, J_HEXSTR, J_IDENTITYREF, J_INSTANCE_IDENTIFIER, J_INT16, J_INT32, J_INT64, J_INT8, J_IPV4, J_IPV4_AND_PLEN, J_IPV4PREFIX, J_IPV6, J_IPV6_AND_PLEN, J_IPV6PREFIX, J_LIST, J_NOEXISTS, J_OBJECTREF, J_OID, J_PTR, J_QNAME, J_STR, J_SYMBOL, J_TIME, J_UINT16, J_UINT32, J_UINT64, J_UINT8, J_UNION, J_XMLBEGIN, J_XMLBEGINDEL, J_XMLEND, J_XMLMOVEAFTER, J_XMLMOVEFIRST, J_XMLTAG - 
Constructor Summary
ConstructorsConstructorDescriptionConfIPv6AndPrefixLen(int[] addr, int masklen) ConfIPv6AndPrefixLen(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int masklen) Construct a new ConfIPv6AndPrefixLen from individual integer values.ConfIPv6AndPrefixLen(InetAddress addr, int masklen)  - 
Method Summary
Methods inherited from class com.tailf.conf.ConfValue
getStringByValue, getStringByValue, getValueByString, getValueByStringMethods inherited from class com.tailf.conf.ConfObject
clone, decode, decode, decode 
- 
Constructor Details
- 
ConfIPv6AndPrefixLen
- Throws:
 ConfException
 - 
ConfIPv6AndPrefixLen
 - 
ConfIPv6AndPrefixLen
public ConfIPv6AndPrefixLen(int[] addr, int masklen)  - 
ConfIPv6AndPrefixLen
public ConfIPv6AndPrefixLen(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int masklen) Construct a new ConfIPv6AndPrefixLen from individual integer values.- Parameters:
 a1- Address bytes 0-3.a2- Address bytes 4-7.a3- Address bytes 8-11.a4- Address bytes 12-15.a5- Address bytes 16-19.a6- Address bytes 20-23.a7- Address bytes 24-27.a8- Address bytes 28-31.masklen- Prefix mask length.
 - 
ConfIPv6AndPrefixLen
 
 - 
 - 
Method Details
- 
getRawAddress
public int[] getRawAddress()- Specified by:
 getRawAddressin classConfIPAndPrefixLen
 - 
equals
Description copied from class:ConfValueDetermine if two ConfValue are equal. In general, ConfObjects are equal if the components they consist of are equal. - 
hashCode
public int hashCode() - 
getAddress
- Specified by:
 getAddressin classConfIPAndPrefixLen
 - 
getMaskLength
public int getMaskLength()- Specified by:
 getMaskLengthin classConfIPAndPrefixLen
 - 
toString
 - 
encode
Description copied from class:ConfValueencode value.- Specified by:
 encodein classConfIPAndPrefixLen
 - 
compareTo
- Specified by:
 compareToin interfaceComparable<ConfIPv6AndPrefixLen>
 
 -