| Modifier and Type | Field and Description |
|---|---|
| private transient DirContext | |
| private Hashtable | |
| private String | |
| private Name | |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | LdapAttribute(String
The attribute's id. It cannot be null. id)Constructs a new instance of an attribute. |
| private | LdapAttribute(String
The attribute's id. It cannot be null. id, DirContext the baseCtx object of this attribute baseCtx, Name the RDN of the entry (relative to baseCtx) rdn)Constructs a new instance of an attribute. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true Always returns true.The value to be added. If null, a null value is added to
the attribute. attrVal)Overrides javax. Implements javax. Adds a new value to this attribute. |
| public Object | clone()
Overrides javax. Implements javax. Makes a copy of the attribute. |
| public DirContext | Returns: This attribute's schema definition.Overrides javax. Implements javax. Retrieves this attribute's schema definition. |
| public DirContext | Returns: This attribute's syntax definition.Overrides javax. Implements javax. Retrieves the syntax definition associated with this attribute. |
| private DirContext | |
| private void | |
| pack-priv void | setParent(DirContext baseCtx, Name rdn)
Sets the baseCtx and rdn used to find the attribute's schema Used by LdapCtx.setParents(). |
| private void | writeObject(ObjectOutputStream out)
Hides javax. This is called when the object is serialized. |
| baseCtx | back to summary |
|---|---|
| private transient DirContext baseCtx | |
| baseCtxEnv | back to summary |
|---|---|
| private Hashtable<String, ? super String> baseCtxEnv | |
| baseCtxURL | back to summary |
|---|---|
| private String baseCtxURL | |
| rdn | back to summary |
|---|---|
| private Name rdn | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides javax. | |
| LdapAttribute | back to summary |
|---|---|
| pack-priv LdapAttribute(String id) Constructs a new instance of an attribute.
| |
| LdapAttribute | back to summary |
|---|---|
| private LdapAttribute(String id, DirContext baseCtx, Name rdn) Constructs a new instance of an attribute.
| |
| add | back to summary |
|---|---|
| public boolean add(Object attrVal) Overrides javax. Implements javax. Adds a new value to this attribute.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides javax. Implements javax. Doc from javax. Makes a copy of the attribute. The copy contains the same attribute values as the original attribute: the attribute values are not themselves cloned. Changes to the copy will not affect the original and vice versa.
| |
| getAttributeDefinition | back to summary |
|---|---|
| public DirContext getAttributeDefinition() throws NamingException Overrides javax. Implements javax. Retrieves this attribute's schema definition.
| |
| getAttributeSyntaxDefinition | back to summary |
|---|---|
| public DirContext getAttributeSyntaxDefinition() throws NamingException Overrides javax. Implements javax. Retrieves the syntax definition associated with this attribute.
| |
| getBaseCtx | back to summary |
|---|---|
| private DirContext getBaseCtx() throws NamingException returns the ctx this attribute came from. This call allows LDAPAttribute to be serializable. 'baseCtx' is transient so if it is null, the `baseCtxURL` is used to reconstruct the context to which calls are made. | |
| setBaseCtxInfo | back to summary |
|---|---|
| private void setBaseCtxInfo() sets the information needed to reconstruct the baseCtx if we are serialized. This must be called _before_ the object is serialized!!!
| |
| setParent | back to summary |
|---|---|
| pack-priv void setParent(DirContext baseCtx, Name rdn) Sets the baseCtx and rdn used to find the attribute's schema Used by LdapCtx.setParents(). | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException Hides javax. This is called when the object is serialized. It is overridden so that the appropriate class variables can be set to re-construct the baseCtx when deserialized. Setting these variables is costly, so it is only done if the object is actually serialized.
| |