|
Oracle Virtual Directory Java API Reference 11g Release 1 (11.1.1) E10688-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.octetstring.vde.EntryChange
public class EntryChange
Class whose instances contain a single LDAP modification. A single modification is a request to add, remove, or replace values for a single attribute.
Field Summary | |
---|---|
DirectoryString |
attr |
static int |
MOD_ADD |
static int |
MOD_DELETE |
static int |
MOD_REPLACE |
java.util.Vector<? extends Syntax> |
values |
Constructor Summary | |
---|---|
EntryChange() Creates a new EntryChange without initializing any internal values. |
|
EntryChange(byte[] entryChangeBytes) Creates a new EntryChange using an array of bytes. |
|
EntryChange(int modType, DirectoryString attr, java.util.Vector<? extends Syntax> values) Creates a new EntryChange given basic information about the change. |
Method Summary | |
---|---|
byte[] |
getAsByteArray() Get this EntryChange as a byte array. |
DirectoryString |
getAttr() Retrieves the attribute type associated with this change. |
int |
getModType() Retrieves the modification type associated with this change. |
java.util.Vector<? extends Syntax> |
getValues() Retrieves the values associated with this change. |
void |
setAttr(DirectoryString newAttr) Sets the attribute type associated with this change. |
void |
setModType(int newModType) Sets the modification type associated with this change. |
void |
setValues(java.util.Vector<? extends Syntax> newValues) Set the list of changes associated with this change. |
java.lang.String |
toLDIF() Retrieves the value of this change as an LDIF-formatted string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MOD_ADD
public static final int MOD_DELETE
public static final int MOD_REPLACE
public DirectoryString attr
public java.util.Vector<? extends Syntax> values
Constructor Detail |
---|
public EntryChange()
EntryChange
without initializing any internal values.public EntryChange(byte[] entryChangeBytes)
EntryChange
using an array of bytes.
entryChangeBytes
- an array of bytes. Such an array can be generated using the getAsByteArray
method. Typically used for reading an EntryChange
from disk or other media holding information as an array of bytes.public EntryChange(int modType, DirectoryString attr, java.util.Vector<? extends Syntax> values)
EntryChange
given basic information about the change.
modType
- the modification typeattr
- the attribute type being modified ("cn" for example)values
- a list of values that will be used as per the modType
Method Detail |
---|
public DirectoryString getAttr()
public void setAttr(DirectoryString newAttr)
newAttr
- the new attribute typepublic int getModType()
public void setModType(int newModType)
newModType
- a modification typepublic java.util.Vector<? extends Syntax> getValues()
Syntax
interface.public void setValues(java.util.Vector<? extends Syntax> newValues)
newValues
- values associated with this change. Each element of the Vector is an object of a class implementing the Syntax
interface.public byte[] getAsByteArray()
public java.lang.String toLDIF()
|
Oracle Virtual Directory Java API Reference 11g Release 1 (11.1.1) E10688-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |