com.mockobjects.naming.directory

Class MockAttribute

Implemented Interfaces:
Attribute, Verifiable

public class MockAttribute
extends MockObject
implements Attribute

Method Summary

boolean
add(Object object)
void
add(int index, Object object)
void
clear()
Object
clone()
boolean
contains(Object object)
Object
get()
Object
get(int index)
NamingEnumeration
getAll()
DirContext
getAttributeDefinition()
DirContext
getAttributeSyntaxDefinition()
String
getID()
boolean
isOrdered()
boolean
remove(Object object)
Object
remove(int index)
Object
set(int index, Object object)
void
setupGet(Object aObjectToReturn)
int
size()
String
toString()

Methods inherited from class com.mockobjects.MockObject

notImplemented, notYetImplemented, verify

Method Details

add

public boolean add(Object object)

add

public void add(int index,
                Object object)

clear

public void clear()

clone

public Object clone()

contains

public boolean contains(Object object)

get

public Object get()
            throws NamingException

get

public Object get(int index)
            throws NamingException

getAll

public NamingEnumeration getAll()
            throws NamingException

getAttributeDefinition

public DirContext getAttributeDefinition()
            throws NamingException

getAttributeSyntaxDefinition

public DirContext getAttributeSyntaxDefinition()
            throws NamingException

getID

public String getID()

isOrdered

public boolean isOrdered()

remove

public boolean remove(Object object)

remove

public Object remove(int index)

set

public Object set(int index,
                  Object object)

setupGet

public void setupGet(Object aObjectToReturn)

size

public int size()

toString

public String toString()

Copyright © 2002 Mock Objects. All Rights Reserved.