org.apache.asn1.ber
Interface MutableTupleNode

All Superinterfaces:
TupleNode
All Known Implementing Classes:
DefaultMutableTupleNode

public interface MutableTupleNode
extends TupleNode

A mutable TupleNode used for building TLV Tuple trees.

Version:
$Rev: 157644 $
Author:
Apache Directory Project

Method Summary
 void addValueChunk(java.nio.ByteBuffer valueChunk)
          Adds a buffer containing the entire buffer or a chunked peice of it.
 void insert(MutableTupleNode child, int index)
          Adds child to the receiver at index.
 void remove(int index)
          Removes the child at index from the receiver.
 void remove(MutableTupleNode node)
          Removes node from the receiver.
 void removeFromParent()
          Removes the receiver from its parent.
 void setParent(MutableTupleNode newParent)
          Sets the parent of the receiver to newParent.
 void setTuple(Tuple t)
          Resets the Tuple of the receiver object.
 void setTuple(Tuple t, java.util.List valueChunks)
          Resets the Tuple of the receiver object.
 
Methods inherited from interface org.apache.asn1.ber.TupleNode
accept, encode, equals, getChildCount, getChildren, getChildTupleNodeAt, getIndex, getParentTupleNode, getTuple, getValueChunks, size
 

Method Detail

insert

void insert(MutableTupleNode child,
            int index)
Adds child to the receiver at index.

Parameters:
child - the child to add
index - the index at which to insert the child

remove

void remove(int index)
Removes the child at index from the receiver.

Parameters:
index - the index at which to remove the child

remove

void remove(MutableTupleNode node)
Removes node from the receiver.

Parameters:
node - the node to remove

removeFromParent

void removeFromParent()
Removes the receiver from its parent.


setParent

void setParent(MutableTupleNode newParent)
Sets the parent of the receiver to newParent.

Parameters:
newParent - the new parent to set

setTuple

void setTuple(Tuple t)
Resets the Tuple of the receiver object. Also clears the value chunk buffers accumulated for the previous tuple if any.

Parameters:
t - the tuple to set for this node

setTuple

void setTuple(Tuple t,
              java.util.List valueChunks)
Resets the Tuple of the receiver object. Also clears the value chunk buffers accumulated for the previous tuple if any.

Parameters:
t - the tuple to set for this node
valueChunks - the list of value chunk buffers

addValueChunk

void addValueChunk(java.nio.ByteBuffer valueChunk)
Adds a buffer containing the entire buffer or a chunked peice of it.

Parameters:
valueChunk - a chunk of the value as a byte buffer


Copyright © 2004-2009 . All Rights Reserved.