org.apache.directory.shared.ldap.codec.controls.search.entryChange
Class EntryChangeContainer

java.lang.Object
  extended by org.apache.directory.shared.asn1.ber.AbstractContainer
      extended by org.apache.directory.shared.ldap.codec.controls.search.entryChange.EntryChangeContainer
All Implemented Interfaces:
Asn1Container

public class EntryChangeContainer
extends AbstractContainer

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.asn1.ber.AbstractContainer
decodeBytes, grammar, stateStack
 
Constructor Summary
EntryChangeContainer(LdapCodecService codec)
          Creates a new EntryChangeContainer object.
EntryChangeContainer(LdapCodecService codec, EntryChange control)
          Creates a container with decorator, optionally decorating the supplied Control if it is not a decorator implementation.
 
Method Summary
 void clean()
          Clean the container
 void decorate(EntryChange control)
          Checks to see if the supplied EntryChange implementation is a decorator and if so just sets the EntryChangeDecorator to it.
 EntryChangeDecorator getEntryChangeDecorator()
           
 void setEntryChangeDecorator(EntryChangeDecorator control)
          Set a EntryChangeControl Object into the container.
 
Methods inherited from class org.apache.directory.shared.asn1.ber.AbstractContainer
getCurrentTLV, getDecodeBytes, getGrammar, getMaxPDUSize, getNewTlvId, getParentTLV, getState, getStream, getTlvId, getTransition, incrementDecodeBytes, isGathering, isGrammarEndAllowed, rewind, setCurrentTLV, setGathering, setGrammarEndAllowed, setMaxPDUSize, setParentTLV, setState, setStream, setTransition, updateParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryChangeContainer

public EntryChangeContainer(LdapCodecService codec)
Creates a new EntryChangeContainer object. We will store one grammar, it's enough ...


EntryChangeContainer

public EntryChangeContainer(LdapCodecService codec,
                            EntryChange control)
Creates a container with decorator, optionally decorating the supplied Control if it is not a decorator implementation.

Parameters:
control - The EntryChange ControlDecorator, or a Control to be wrapped by a new decorator.
Method Detail

getEntryChangeDecorator

public EntryChangeDecorator getEntryChangeDecorator()
Returns:
Returns the EntryChangeControl.

decorate

public void decorate(EntryChange control)
Checks to see if the supplied EntryChange implementation is a decorator and if so just sets the EntryChangeDecorator to it. Otherwise the supplied control is decorated by creating a new EntryChangeDecorator to wrap the object.

Parameters:
control - The EntryChange Control to wrap, if it is not a decorator.

setEntryChangeDecorator

public void setEntryChangeDecorator(EntryChangeDecorator control)
Set a EntryChangeControl Object into the container. It will be completed by the ldapDecoder.

Parameters:
control - the EntryChangeControl to set.

clean

public void clean()
Clean the container

Overrides:
clean in class AbstractContainer


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.