|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.naming.directory.BasicAttribute
public class BasicAttribute
| Field Summary | |
|---|---|
protected String |
attrID
The ID of this attribute. |
protected boolean |
ordered
True if this attribute's values are ordered. |
protected Vector |
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 | |
|---|---|
void |
add(int index,
Object val)
|
boolean |
add(Object val)
|
void |
clear()
|
Object |
clone()
clone creates a shallow clone of this. |
boolean |
contains(Object val)
|
boolean |
equals(Object obj)
equals compares this object to another object. |
Object |
get()
|
Object |
get(int index)
|
NamingEnumeration |
getAll()
|
DirContext |
getAttributeDefinition()
|
DirContext |
getAttributeSyntaxDefinition()
|
String |
getID()
|
int |
hashCode()
hashCode returns a hash code for this object. |
boolean |
isOrdered()
|
Object |
remove(int index)
|
boolean |
remove(Object val)
|
Object |
set(int index,
Object val)
|
int |
size()
|
String |
toString()
toString creates a printable string that represents this object for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String attrID
protected boolean ordered
protected transient Vector values
| Constructor Detail |
|---|
public BasicAttribute(String id)
public BasicAttribute(String id,
boolean ordered)
public BasicAttribute(String id,
Object value)
public BasicAttribute(String id,
Object value,
boolean ordered)
| Method Detail |
|---|
public void add(int index,
Object val)
add in interface Attributepublic boolean add(Object val)
add in interface Attributepublic void clear()
clear in interface Attributepublic Object clone()
Object
clone in interface Attributeclone in class Objectpublic boolean contains(Object val)
contains in interface Attributepublic boolean equals(Object obj)
ObjectEquals must be symmetric (a.equals(b) == b.equals(a)), reflexive (a.equals(a)==true) and transitive (a.equals(b) && b.equals(c) IMPLIES (a.equals(c))) and not change over time (a.equals(b) == a.equals(b)). a.equals(null) should always return false.
If a.equals(b) is true for two objects a and b, then a.hashCode()==b.hashCode() must hold.
The default implementation of equals returns this==other.
equals in class Objectobj - the other object.
public Object get()
throws NamingException
get in interface AttributeNamingException
public Object get(int index)
throws NamingException
get in interface AttributeNamingException
public NamingEnumeration getAll()
throws NamingException
getAll in interface AttributeNamingException
public DirContext getAttributeDefinition()
throws OperationNotSupportedException,
NamingException
getAttributeDefinition in interface AttributeOperationNotSupportedException
NamingException
public DirContext getAttributeSyntaxDefinition()
throws OperationNotSupportedException,
NamingException
getAttributeSyntaxDefinition in interface AttributeOperationNotSupportedException
NamingExceptionpublic String getID()
getID in interface Attributepublic int hashCode()
ObjectThe default implementation returns System.identityHashCode(this).
hashCode in class Objectpublic boolean isOrdered()
isOrdered in interface Attributepublic Object remove(int index)
remove in interface Attributepublic boolean remove(Object val)
remove in interface Attribute
public Object set(int index,
Object val)
set in interface Attributepublic int size()
size in interface Attributepublic String toString()
ObjectThe default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||