javax.naming.directory

Class BasicAttribute

public class BasicAttribute extends Object implements Attribute

Since: 1.3

UNKNOWN: June 20, 2001

Field Summary
protected StringattrID
The ID of this attribute.
protected booleanordered
True if this attribute's values are ordered.
protected Vector<Object>values
Values for this attribute.
Constructor Summary
BasicAttribute(String id)
BasicAttribute(String id, boolean ordered)
BasicAttribute(String id, Object value)
BasicAttribute(String id, Object value, boolean ordered)
Method Summary
voidadd(int index, Object val)
booleanadd(Object val)
voidclear()
Objectclone()
booleancontains(Object val)
booleanequals(Object obj)
Objectget()
Objectget(int index)
NamingEnumeration<?>getAll()
DirContextgetAttributeDefinition()
DirContextgetAttributeSyntaxDefinition()
StringgetID()
inthashCode()
booleanisOrdered()
Objectremove(int index)
booleanremove(Object val)
Objectset(int index, Object val)
intsize()
StringtoString()

Field Detail

attrID

protected String attrID
The ID of this attribute.

ordered

protected boolean ordered
True if this attribute's values are ordered.

values

protected transient Vector<Object> values
Values for this attribute.

Constructor Detail

BasicAttribute

public BasicAttribute(String id)

BasicAttribute

public BasicAttribute(String id, boolean ordered)

BasicAttribute

public BasicAttribute(String id, Object value)

BasicAttribute

public BasicAttribute(String id, Object value, boolean ordered)

Method Detail

add

public void add(int index, Object val)

add

public boolean add(Object val)

clear

public void clear()

clone

public Object clone()

contains

public boolean contains(Object val)

equals

public boolean equals(Object obj)

get

public Object get()

get

public Object get(int index)

getAll

public NamingEnumeration<?> getAll()

getAttributeDefinition

public DirContext getAttributeDefinition()

getAttributeSyntaxDefinition

public DirContext getAttributeSyntaxDefinition()

getID

public String getID()

hashCode

public int hashCode()

isOrdered

public boolean isOrdered()

remove

public Object remove(int index)

remove

public boolean remove(Object val)

set

public Object set(int index, Object val)

size

public int size()

toString

public String toString()