org.jboss.test.security.ejb.project.support
Class DirBinding

java.lang.Object
  extended byjavax.naming.NameClassPair
      extended byjavax.naming.Binding
          extended byorg.jboss.test.security.ejb.project.support.DirBinding
All Implemented Interfaces:
java.io.Serializable

public class DirBinding
extends javax.naming.Binding

A subclass of Binding that adds support for Attributes. This class is used to pass a contexts raw bindings to NameBindingIterator.

See Also:
Serialized Form

Constructor Summary
DirBinding(java.lang.String name, java.lang.Object obj, javax.naming.directory.Attributes attributes)
          Constructs an instance of a Binding given its relative name, object, attributes and whether the name is relative.
DirBinding(java.lang.String name, java.lang.String className, java.lang.Object obj, javax.naming.directory.Attributes attributes)
          Constructs an instance of a Binding given its relative name, class name, object, attributes and whether the name is relative.
DirBinding(java.lang.String name, java.lang.String className, java.lang.Object obj, boolean isRelative, javax.naming.directory.Attributes attributes)
          Constructs an instance of a Binding given its name, object, attributes and whether the name is relative.
 
Method Summary
 javax.naming.directory.Attributes getAttributes()
           
 void setAttributes(javax.naming.directory.Attributes attributes)
           
 
Methods inherited from class javax.naming.Binding
getClassName, getObject, setObject, toString
 
Methods inherited from class javax.naming.NameClassPair
getName, isRelative, setClassName, setName, setRelative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirBinding

public DirBinding(java.lang.String name,
                  java.lang.Object obj,
                  javax.naming.directory.Attributes attributes)
Constructs an instance of a Binding given its relative name, object, attributes and whether the name is relative.

Parameters:
obj - - The possibly null object bound to name.
attributes - - the attributes associated with obj

DirBinding

public DirBinding(java.lang.String name,
                  java.lang.String className,
                  java.lang.Object obj,
                  javax.naming.directory.Attributes attributes)
Constructs an instance of a Binding given its relative name, class name, object, attributes and whether the name is relative.

Parameters:
name - - The non-null string name of the object.
className - - The possibly null class name of the object bound to name. If null, the class name of obj is returned by getClassName(). If obj is also null, getClassName() will return null.
obj - - The possibly null object bound to name.
attributes - - the attributes associated with obj

DirBinding

public DirBinding(java.lang.String name,
                  java.lang.String className,
                  java.lang.Object obj,
                  boolean isRelative,
                  javax.naming.directory.Attributes attributes)
Constructs an instance of a Binding given its name, object, attributes and whether the name is relative.

Parameters:
name - - The non-null string name of the object.
obj - - The possibly null object bound to name.
isRelative - - true if name is a name relative to the target context (which is named by the first parameter of the listBindings() method); false if name is a URL string.
attributes - - the attributes associated with obj
Method Detail

getAttributes

public javax.naming.directory.Attributes getAttributes()

setAttributes

public void setAttributes(javax.naming.directory.Attributes attributes)