org.apache.directory.shared.ldap.util
Class ImmutableAttributeWrapper

java.lang.Object
  extended by org.apache.directory.shared.ldap.util.ImmutableAttributeWrapper
All Implemented Interfaces:
Serializable, Cloneable, Attribute

public class ImmutableAttributeWrapper
extends Object
implements Attribute

A read only wrapper around an Attributes object.

Version:
$Rev$, $Date$
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.naming.directory.Attribute
serialVersionUID
 
Constructor Summary
ImmutableAttributeWrapper(Attribute wrapped)
           
 
Method Summary
 void add(int ix, Object attrVal)
           
 boolean add(Object attrVal)
           
 void clear()
           
 Object clone()
           
 boolean contains(Object attrVal)
           
 Object get()
           
 Object get(int ix)
           
 NamingEnumeration<?> getAll()
           
 DirContext getAttributeDefinition()
           
 DirContext getAttributeSyntaxDefinition()
           
 String getID()
           
 boolean isOrdered()
           
 Object remove(int ix)
           
 boolean remove(Object attrval)
           
 Object set(int ix, Object attrVal)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableAttributeWrapper

public ImmutableAttributeWrapper(Attribute wrapped)
Method Detail

getAll

public NamingEnumeration<?> getAll()
                            throws NamingException
Specified by:
getAll in interface Attribute
Throws:
NamingException

get

public Object get()
           throws NamingException
Specified by:
get in interface Attribute
Throws:
NamingException

size

public int size()
Specified by:
size in interface Attribute

getID

public String getID()
Specified by:
getID in interface Attribute

contains

public boolean contains(Object attrVal)
Specified by:
contains in interface Attribute

add

public boolean add(Object attrVal)
Specified by:
add in interface Attribute

remove

public boolean remove(Object attrval)
Specified by:
remove in interface Attribute

clear

public void clear()
Specified by:
clear in interface Attribute

getAttributeSyntaxDefinition

public DirContext getAttributeSyntaxDefinition()
                                        throws NamingException
Specified by:
getAttributeSyntaxDefinition in interface Attribute
Throws:
NamingException

getAttributeDefinition

public DirContext getAttributeDefinition()
                                  throws NamingException
Specified by:
getAttributeDefinition in interface Attribute
Throws:
NamingException

clone

public Object clone()
Specified by:
clone in interface Attribute
Overrides:
clone in class Object

isOrdered

public boolean isOrdered()
Specified by:
isOrdered in interface Attribute

get

public Object get(int ix)
           throws NamingException
Specified by:
get in interface Attribute
Throws:
NamingException

remove

public Object remove(int ix)
Specified by:
remove in interface Attribute

add

public void add(int ix,
                Object attrVal)
Specified by:
add in interface Attribute

set

public Object set(int ix,
                  Object attrVal)
Specified by:
set in interface Attribute


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.