aicas logo Jamaica 3.4 release 8

javax.naming
Class Reference

java.lang.Object
  extended by javax.naming.Reference
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
LinkRef

public class Reference
extends Object
implements Cloneable, Serializable

See Also:
Serialized Form
Date:
May 16, 2001

Field Summary
protected  Vector addrs
           
protected  String classFactory
           
protected  String classFactoryLocation
           
protected  String className
           
 
Constructor Summary
Reference(String className)
           
Reference(String className, RefAddr addr)
           
Reference(String className, RefAddr addr, String factory, String factoryLocation)
           
Reference(String className, String factory, String factoryLocation)
           
 
Method Summary
 void add(int posn, RefAddr addr)
           
 void add(RefAddr addr)
           
 void clear()
           
 Object clone()
          clone creates a shallow clone of this.
 boolean equals(Object obj)
          equals compares this object to another object.
 RefAddr get(int posn)
           
 RefAddr get(String addrType)
           
 Enumeration getAll()
           
 String getClassName()
           
 String getFactoryClassLocation()
           
 String getFactoryClassName()
           
 int hashCode()
          hashCode returns a hash code for this object.
 Object remove(int posn)
           
 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

addrs

protected Vector addrs

classFactory

protected String classFactory

classFactoryLocation

protected String classFactoryLocation

className

protected String className
Constructor Detail

Reference

public Reference(String className)

Reference

public Reference(String className,
                 RefAddr addr)

Reference

public Reference(String className,
                 String factory,
                 String factoryLocation)

Reference

public Reference(String className,
                 RefAddr addr,
                 String factory,
                 String factoryLocation)
Method Detail

add

public void add(int posn,
                RefAddr addr)

add

public void add(RefAddr addr)

clear

public void clear()

clone

public Object clone()
Description copied from class: Object
clone creates a shallow clone of this.

Overrides:
clone in class Object
Returns:
a clone of this object.

equals

public boolean equals(Object obj)
Description copied from class: Object
equals compares this object to another object.

Equals 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.

Overrides:
equals in class Object
Parameters:
obj - the other object.
Returns:
if this and other are considered equal.

get

public RefAddr get(int posn)

get

public RefAddr get(String addrType)

getAll

public Enumeration getAll()

getClassName

public String getClassName()

getFactoryClassLocation

public String getFactoryClassLocation()

getFactoryClassName

public String getFactoryClassName()

hashCode

public int hashCode()
Description copied from class: Object
hashCode returns a hash code for this object. The hash code must be equal for two objects a and b if a.equals(b) is true.

The default implementation returns System.identityHashCode(this).

Overrides:
hashCode in class Object
Returns:
a hash code value.

remove

public Object remove(int posn)

size

public int size()

toString

public String toString()
Description copied from class: Object
toString creates a printable string that represents this object for debugging purposes.

The default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).

Overrides:
toString in class Object
Returns:
a string identifying this object.

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.