org.apache.directory.shared.ldap.util
Class ImmutableAttributeWrapper
java.lang.Object
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
ImmutableAttributeWrapper
public ImmutableAttributeWrapper(Attribute wrapped)
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.