public class ETypeInfo2
extends org.apache.directory.api.asn1.AbstractAsn1Object
ETYPE-INFO2 ::= SEQUENCE SIZE (1..MAX) OF ETYPE-INFO2-ENTRY
| Constructor and Description |
|---|
ETypeInfo2()
Creates a new instance of ETypeInfo2.
|
ETypeInfo2(ETypeInfo2Entry[] etypeInfo2Entries)
Creates a new instance of ETypeInfo2.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addETypeInfo2Entry(ETypeInfo2Entry etypeInfo2Entry)
Adds an
ETypeInfo2Entry to the list |
int |
computeLength()
Compute the ETypeInfo2 length
|
boolean |
contains(ETypeInfo2Entry etypeInfo2Entry)
Returns true if this
ETypeInfo2Entry contains a specified ETypeInfo2Entry. |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ETypeInfo2 message to a PDU.
|
boolean |
equals(ETypeInfo2 that)
Returns true if two
ETypeInfo2 are equal. |
ETypeInfo2Entry[] |
getETypeInfo2Entries()
Returns the contained
ETypeInfo2Entrys as an array. |
int |
hashCode() |
String |
toString() |
public ETypeInfo2()
public ETypeInfo2(ETypeInfo2Entry[] etypeInfo2Entries)
etypeInfo2Entries - The associated etypeInfo2Entriespublic void addETypeInfo2Entry(ETypeInfo2Entry etypeInfo2Entry)
ETypeInfo2Entry to the listetypeInfo2Entry - The ETypeInfo2Entry to addpublic boolean contains(ETypeInfo2Entry etypeInfo2Entry)
ETypeInfo2Entry contains a specified ETypeInfo2Entry.address - The etypeInfo2Entry we are looking for in the existing listETypeInfo2Entry contains a specified ETypeInfo2Entry.public boolean equals(ETypeInfo2 that)
ETypeInfo2 are equal.that - The ETypeInfo2 we want to compare with the current oneETypeInfo2 are equal.public ETypeInfo2Entry[] getETypeInfo2Entries()
ETypeInfo2Entrys as an array.ETypeInfo2Entrys.public int computeLength()
ETypeInfo2 :
0x30 L1 ETypeInfo2 sequence of ETypeInfo2Entry
|
+--> 0x30 L2[1] ETypeInfo2Entry[1]
|
+--> 0x30 L2[2] ETypeInfo2Entry[2]
|
...
|
+--> 0x30 L2[n] ETypeInfo2Entry[n]
where L1 = sum( L2[1], l2[2], ..., L2[n] )
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
ETypeInfo2 : 0x30 LL 0x30 LL ETypeInfo2Entry[1] 0x30 LL ETypeInfo2Entry[1] ... 0x30 LL ETypeInfo2Entry[1]
encode in interface org.apache.directory.api.asn1.Asn1Objectencode in class org.apache.directory.api.asn1.AbstractAsn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderExceptionpublic String toString()
toString in class ObjectObject.toString()Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.